Initializes and starts the timer component
- Parameters
-
[in] | h_DeviceHandle | Handle of the board |
[in] | dw_DelayValue | Time interval of the timer
N.B. : The time value has to be a multiple of 50, 100us to 838860850us (~838.86s) |
[in] | b_InterruptFlag | Enable or disable the interrupt at the end of a timer count
- APCI3001_ENABLE : An interrupt is generated at the end of each time interval
- APCI3001_DISABLE: No interrupt is generated
|
- Returns
- 0 : No error
-1 : The device handle parameter is wrong
-2 : The timer is already running
-3 : b_TimerMode is invalid
-4 : dw_DelayValue is too low
-5 : dw_DelayValue is too high
-8 : dw_DelayValue must be a multiple of 50
-9 : b_InterruptFlag is APCI3001_ENABLE but no interrupt handler is installed. Please call i_PCI3001_SetBoardIntRoutine before calling this function
-10 : Error while calling IOCTL function (wrong handle ?)