ADLINK ACL-8216 User Manual
Page 68

60 • C/C++ Library
5.22 _8216_Timer_Start
@ Description
The Timer #0 on the ACL-8216 can be freely programmed by the
users. This function is used to program the Timer #0. This timer can
be used as frequency generator if internal clock is used. It also can be
used as event counter if external clock is used. All the 8254 mode are
available.
@ Syntax
int _8216_Timer_Start( int timer_mode, unsigned int
c0 )
@ Argument
timer_mode:
the 8253 timer mode, the possible
values
are:
TIMER_MODE0, TIMER_MODE1,
TIMER_MODE2, TIMER_MODE3,
TIMER_MODE4,
TIMER_MODE5.
c0:
the counter value of timer
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_InvalidTimerMode
ERR_InvalidTimerValue
@ Example
See demo program 'TMR_DEMO.C'
5.23 _8216_Timer_Read
@ Description
This function is used to read the counter value of the Timer #0.
@ Syntax
int _8216_Timer_Read( unsigned int *counter_value )
@ Argument
counter_value: the counter value of the Timer #0
@ Return Code
ERR_NoError
ERR_BoardNoInit
@ Example
See demo program 'TMR_DEMO.C'