xPCIe1516 API
|
Functions | |
_INT_ | i_PCIe1516_InitAndStartWatchdog (IN HANDLE h_DeviceHandle, IN WORD w_ReloadValue, IN BYTE b_TimeBase) |
_INT_ | i_PCIe1516_ReadWatchdogValue (IN HANDLE h_DeviceHandle, OUT WORD *w_Value) |
_INT_ | i_PCIe1516_ReadWatchdogStatus (IN HANDLE h_DeviceHandle, OUT BYTE *b_Status, OUT BYTE *b_SoftwareTriggerStatus) |
_INT_ | i_PCIe1516_TriggerWatchdog (IN HANDLE h_DeviceHandle) |
_INT_ | i_PCIe1516_StopAndReleaseWatchdog (IN HANDLE h_DeviceHandle) |
_INT_ i_PCIe1516_InitAndStartWatchdog | ( | IN HANDLE | h_DeviceHandle, |
IN WORD | w_ReloadValue, | ||
IN BYTE | b_TimeBase | ||
) |
Initializes and starts the watchdog of the board
[in] | h_DeviceHandle | Handle of the board |
[in] | w_ReloadValue | Watchdog reload value (1..0xFFF) |
[in] | b_TimeBase | Time base of the watchdog (0 for microseconds, 1 for milliseconds and 2 for seconds) (0..2) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-2 | The w_ReloadValue parameter is wrong |
-3 | The b_TimeBase parameter is wrong |
-100 | An error occurred while calling the IOCTL function |
_INT_ i_PCIe1516_ReadWatchdogValue | ( | IN HANDLE | h_DeviceHandle, |
OUT WORD * | w_Value | ||
) |
Reads the value of the watchdog of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | w_Value | Current value of the watchdog |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |
_INT_ i_PCIe1516_ReadWatchdogStatus | ( | IN HANDLE | h_DeviceHandle, |
OUT BYTE * | b_Status, | ||
OUT BYTE * | b_SoftwareTriggerStatus | ||
) |
Reads the status of the watchdog of the board
[in] | h_DeviceHandle | Handle of the board |
[out] | b_Status | Current status of the watchdog (0: disabled, 1: enabled) |
[out] | b_SoftwareTriggerStatus | Current status of the software trigger (0: no trigger occured, 1: a trigger occured) |
0 | No error |
-1 | The h_DeviceHandle parameter is wrong |
-100 | An error occurred while calling the IOCTL function |
_INT_ i_PCIe1516_TriggerWatchdog | ( | IN HANDLE | h_DeviceHandle | ) |
Triggers the watchdog
[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_PCIe1516_StopAndReleaseWatchdog | ( | IN HANDLE | h_DeviceHandle | ) |
Stops and releases the watchdog 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 |