User manual
UNO-1019 User Manual 58
How to Use the Control Code
There are 6 control codes for the operation codes in the WDT driver.
1. IOCTL _WDT_ENABLE:
Enable the Watchdog timer on your application. By default, if the Watch-
dog timer is enabled, the WDT driver will automatically reload the time-
out counter after a specified period and your application does not need to
trigger the strobe periodically for masking the timeout, unless use
IOCTL_WDT_REBOOT to stop this automatic strobe triggering.
lpInBuffer : unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
2. IOCTL _WDT_DISABLE:
Disable the Watchdog time on your application.
lpInBuffer : unsed.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
3. IOCTL_WDT_STROBE:
Trigger strobe signal to reload watchdog timeout counter. If your applica-
tion 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.