|
QLIB-function: QAPIWatchdogEnable
The QAPIWatchdogEnable function enables the watchdog board.
void QAPIWatchdogEnable(void);
Return value
None.
Commands
The function enables the first found watchdog. The search for a watchdog card happens in the following order :
1. USBWDOG 1/2/3 2. PWDOG 1/2 3. WATCHDOG 1/2 4. WATCHDOG 3
The QAPIWatchdogEnable command can be used depending on your programming language to activate the watchdog. For the PWDOG2N before enabling the board allways use the disabling sequence (QAPIWatchdogEnable) to explicitly disable the watchdog. This is because the PWDOG2N has an built in status register where you can read out whether the system has been rebooted by a watchdog event.
For PWDOG2N use a slightly modified sequence: // eventually read status register to check whether a watchdog event occurred QAPIWatchdogDisable(); QAPIWatchdogEnable();
Back to the QLIB overview
|