Appendix D Watchdog Timer Programming on WinCE (TPC-2012)
© National Instruments Corporation D-3 TPC-2012/TPC-2512 User Manual
How to Use the Control CodesThere are six control codes for the WDT driver operation codes.
IOCTL _WDT_ENABLE
Enables the application watchdog timer. By default, if the watchdog timer
is enabled, the WDT driver automatically triggers itself after the specified
period, and your application does not need to trigger the watchdog timer.
•lpInBuffer: unused
•nInBufferSize: unused
•lpOutBuffer: unused
•nOutBufferSize: unused
IOCTL _WDT_DISABLE
Disables the application watchdog timer.
•lpInBuffer: unused
•nInBufferSize: unused
•lpOutBuffer: unused
•nOutBufferSize: unused
IOCTL_WDT_STROBE
Triggers the watchdog. If your application uses IOCTL_WDT_ENABLE
to enable the watchdog first and then sends IOCTL_WDT_REBOOT to the
WDT driver, your application must trigger the watchdog once during the
watchdog timer period. If your application has not triggered at the specified
period, the device reboots automatically.
•lpInBuffer: unused
•nInBufferSize: unused
•lpOutBuffer: unused
•nOutBufferSize: unused
IOCTL_WDT_GETTIMEOUT
Gets the watchdog time setting.
•lpInBuffer: unused
•nInBufferSize: unused