Intel TPC-1070 B.2 How to Use the Control Code, Ioctl Wdtenable, Ioctl Wdtdisable, Ioctlwdtstrobe

Models: TPC-1070

1 92
Download 92 pages 45.44 Kb
Page 58
Image 58
B.2 How to Use the Control Code

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.

TPC-1070 User Manual

46

Page 58
Image 58
Intel TPC-1070 user manual B.2 How to Use the Control Code, Ioctl Wdtenable, Ioctl Wdtdisable, Ioctlwdtstrobe