Acrosser AR-B104D User Manual
Page 14
AR-B104D Software Programming Guide
10
2.3.4 SetDebounce
♦
Description
Set the debounce time for the selected channel (in ms).
♦
Syntax
XXX_SetDebounce (i16 CardNum, i16 ChannelNum, u8 Dtime)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
ChannelNum: Input channel number. Range from 0~11.
Dtime: The de-bounce time. 0 indicates the debounce function is
disabled; others indicate the debounce time in ms, e.g., 1 means
debounce time is 1 ms.
2.3.5 GetDebounce
♦
Description
Get the debounce time for the selected channel (in ms).
♦
Syntax
XXX_GetDebounce (i16 CardNum, i16 ChannelNum, u8* Dtime)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
ChannelNum: Input channel number. Range from 0~11.
Dtime: The memory address to put the debounce time value. 0
indicates the debounce function is disabled; others indicate the
debounce time in ms.
2.3.6 SetInputInterruptEnable
♦
Description
Enable the interrupt of the selected input channel.
♦
Syntax
XXX_SetInputInterruptEnable (i16 CardNum, i16 ChannelNum, u8 Enable)
♦
Argument
CardNum: The card number of AR-B104D. Range from 1~4.
ChannelNum: Input channel number. Range from 0~11.
Enable: 0 indicates the interrupt of the selected channel is disabled;
others indicate the interrupt of the selected channel is enabled.
2.3.7 GetInputInterruptEnable