B.2 how to use the control code, How to use the control code – Intel TPC-1070 User Manual

Page 58

Advertising
background image

TPC-1070 User Manual

46

B.2 How to Use the Control Code

There are 6 control codes for the operation codes in the WDT driver.

IOCTL _WDT_ENABLE:
Enables the Watchdog timer on your application. By default, if the
Watchdog timer is enabled, the WDT driver will automatically trigger
itself after the specified period and your application does not need to trig-
ger the Watchdog timer in this situation.
lpInBuffer : unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.

IOCTL _WDT_DISABLE:
Disables the Watchdog time on your application.
lpInBuffer : unsed.
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 will reboot automatically.
lpInBuffer: unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.

Advertising