ADLINK ACL-8112 Series User Manual
Page 91

C Language Library
• 83
7.22 _8112_TIMER_Read
Description
This function is used to read the counter value of Timer #0.
Syntax
int _8112_TIMER_Read( unsigned int *counter_value )
int _8112pg_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'
7.23 _8112_TIMER_Stop
Description
This function is used to stop the timer operation. The timer is set to
'One-shot' mode with counter value ' 0 '. That is, the clocks’ output
signal will be set high after executing this function.
Syntax
int _8112_TIMER_Stop( unsigned int *counter_value )
int _8112pg_TIMER_Stop( unsigned int *counter_value )
Argument:
*counter_value: the current counter value of the
Timer #0
Return Code:
ERR_NoError
ERR_BoardNoInit
Example:
See demo program 'TMR_DEMO.C'