Api For Timer - ICP DAS USA I-8411 User Manual

I-8000 series for c language
Hide thumbs Also See for I-8411:
Table of Contents

Advertisement

4.7. API for Timer

The I-8000 can support a single main time tick, 8 stop watch timers and 8 counts down
timers.
The I-8000 uses a single 16-bit timer to perform these timer functions, with a timer
accuracy of 1 ms..
 API for starting the Timer
1. TimerOpen()
Before using the Timer functions, the TimerOpen() must be called at the beginning of
the program.
 API for reading the Timer
2. TimerResetValue()
Before reading the Timer, the TimerResetValue() must be called to reset the main time
ticks to 0.
3. TimerReadValue()
After the TimerResetValue() has reset the main time ticks to 0, the TimerReadValue()
must be called to read the main time tick.
 API for stopping the Timer
4. TimerClose()
Before ending the program, the TimerClose() must be called to stop the Timer.
I-8000 Series (C Language Based) User Manual, Version 1.0.1
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Page: 105

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-8811I-8431-80I-8831-80I-8431I-8831

Table of Contents