xPCIe1032 API
|
Functions | |
_INT_ | i_PCIe1032_InitAndStartTimer (IN HANDLE h_DeviceHandle, IN BYTE b_TimeBase, IN WORD w_ReloadValue, IN BYTE b_InterruptFlag) |
_INT_ | i_PCIe1032_ReadTimerValue (IN HANDLE h_DeviceHandle, OUT WORD *w_Value) |
_INT_ | i_PCIe1032_ReadTimerStatus (IN HANDLE h_DeviceHandle, OUT BYTE *b_TimerStatus, OUT BYTE *b_SoftwareTriggerStatus, OUT WORD *w_TimerValue) |
_INT_ | i_PCIe1032_StopAndReleaseTimer (IN HANDLE h_DeviceHandle) |
_INT_ | i_PCIe1032_TriggerTimer (IN HANDLE h_DeviceHandle) |
_INT_ i_PCIe1032_InitAndStartTimer | ( | IN HANDLE | h_DeviceHandle, |
IN BYTE | b_TimeBase, | ||
IN WORD | w_ReloadValue, | ||
IN BYTE | b_InterruptFlag | ||
) |
Initializes and starts timer 0 of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | b_TimeBase | Time base of the timer (0 -> microseconds, 1 -> milliseconds, 2 -> seconds) (0..2) |
[in] | w_ReloadValue | Timer reload value (1..0xFFF) |
[in] | b_InterruptFlag | Interrupt flag (0..1) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The b_TimeBase parameter is wrong |
-3 | The w_ReloadValue parameter is wrong |
-4 | The b_InterruptFlag parameter is wrong |
_INT_ i_PCIe1032_ReadTimerValue | ( | IN HANDLE | h_DeviceHandle, |
OUT WORD * | w_Value | ||
) |
Reads the value of the timer 0
[in] | h_DeviceHandle | Handle of the board |
[out] | w_Value | Current value of the timer |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |
_INT_ i_PCIe1032_ReadTimerStatus | ( | IN HANDLE | h_DeviceHandle, |
OUT BYTE * | b_TimerStatus, | ||
OUT BYTE * | b_SoftwareTriggerStatus, | ||
OUT WORD * | w_TimerValue | ||
) |
Reads the status of timer 0
[in] | h_DeviceHandle | Handle of the board |
[out] | b_SoftwareTriggerStatus | Current software trigger status (0 -> No trigger occurred, 1 -> A trigger occurred) |
[out] | w_TimerValue | Current value of the timer |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
_INT_ i_PCIe1032_StopAndReleaseTimer | ( | IN HANDLE | h_DeviceHandle | ) |
Stops and releases the timer 0 of the board
[in] | h_DeviceHandle | Handle of the board |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |
_INT_ i_PCIe1032_TriggerTimer | ( | IN HANDLE | h_DeviceHandle | ) |
Triggers the timer 0 of the board
[in] | h_DeviceHandle | Handle of the board |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |