Acrosser AR-B104D User Manual
Page 25
AR-B104D Software Programming Guide
21
2.4 Timer
2.4.1 SetTimerInterruptEnable
♦
Description
Enable the selected timer interrupt. Timer will start automatically once
interrupt is set to enable.
♦
Syntax
XXX_SetTimerInterruptEnable (i16 CardNum, i16 TimerNum, u8 Enable)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
TimerNum: Timer number. Range from 0~12.
Enable: 0 indicates the timer interrupt is disabled; 1 indicates the timer
interrupt is enabled.
2.4.2 GetTimerInterruptEnable
♦
Description
Get the interrupt status of the selected timer.
♦
Syntax
XXX_GetTimerInterruptEnable (i16 CardNum, i16 TimerNum, u8* Enable)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
TimerNum: Timer number. Range from 0~12.
Enable: 0 indicates the timer interrupt is disabled; 1 indicates the timer
interrupt is enabled.
2.4.3 SetTimerBase
♦
Description
Set the time base of the selected timer.
♦
Syntax
XXX_SetTimerBase (i16 CardNum, i16 TimerNum, u8 Base)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
TimerNum: Timer number. Range from 0~12.
Base: The time base of the selected output channel. 0 indicates the
base is 1 ms; 1 indicates the base is 100 ms.
2.4.4 GetTimerBase