AMD TPC-660G Personal Computer User Manual


 
TPC-660G User Manual 50
C.2 How to Use the Control Code
There are 6 control codes for the operation codes in the WDT driver.
C.2.1 IOCTL _WDT_ENABLE:
Enables the watchdog timer of your application. By default, if the watch-
dog timer is enabled, the WDT driver will automatically trigger itself
after the specified period and your application does not need to trigger the
watchdog timer.
lpInBuffer: unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
C.2.2 IOCTL _WDT_DISABLE:
Disables the watchdog time of your application.
lpInBuffer : unsed.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
C.2.3 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 will reboot automatically.
lpInBuffer: unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.