Intel TPC-1070 user manual How to Use the Control Code, Ioctl Wdtenable

Page 58

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

Image 58
Contents TPC-1070 Copyright Acknowledgements Product Warranty 2 years Declaration of Conformity FCC Class a Technical Support and AssistanceSafety Instructions Wichtige Sicherheishinweise Vii Viii Contents Appendix Serial Port Settings Appendix G Xii General Information Specifications IntroductionCompact Flash Slot TypeII PCI-104 SafetyRJ-45 Ethernet port EnvironmentLCD Specifications Touchscreen Specifications PowerI/O Port Arrangement I/O port arrangementPanel Mounting Panel MountingDimensions & Cutout DimensionsSystem Setup Install CompactFlash memory card Power receptor and button pin assignments Touchscreen Calibration System Engine Main Board Connector and Jumper Setting List Main Board ConnectorSoftware Configuration Path \TPC-1070H\Driver\VGA\ Available for the OS’s below Utilities & DriversPath \TPC-1070H\Driver\LAN\ Available for the OS’s below Advantech COM Driver Advantech COM Driver Installation Click Next to continue installation Click uninstall icon to remove ?PCI Serial Port Page Found New Hardware and Click Next to continue installation Click Finish the Advantech PCI Serial Port to continue Page Found New Hardware and Click Next to continue installation Watchdog Timer WDT Driver Installation Installing the TPC-1070 Watchdog Timer Driver Click Next to proceed Page Page Page How to Use the TPC-1070 Watchdog Timer Page Page Windows XP Embedded EWF HormAdvantech Utilities Version InformationOSLock and OSUnLock Serial Port Settings COM1/ COM3 Connector Definition Appendix a Serial Port SettingsCOM4 Setting RS422-MASTER Page Watchdog Timer on WinCE Appendix B Watchdog Timer on WinCE DeviceIOControlAppendixB How to Use the Control Code Ioctl WdtenableIoctlwdtgettimeout CTLCODEFILEDEVICEUNKNOWN,ID, METHODBUFFERED, Fileanyaccess ExamplesAppendixB Page Watchdog Timer Programming Appendix C Watchdog Timer Programming OverviewWatchdog Timer Programming Figure C.1 Watchdog timer programming procedureTable C.1 Watchdog Timer Registers Enable watchdog timer and set 10 sec. as timeout interval Example ProgramsEnable watchdog timer and set 5 minutes as timeout interval Enable watchdog timer to be reset by mouse Enable watchdog timer to be reset by keyboard Generate a time-out signal without timer counting Page Accessory Kit Assembly Appendix D Accessory Kit Assembly CompactFlash to IDE Transfer KitFigure D.3 CompactFlash Slot USB Driver Installation Notice Figure D.6 Connect the CD-ROM via the IDE CableHDD Kit Assembly Appendix E HDD Kit Assembly Figure E.1 Removing the Rear HDD CoverTouchscreen Installation Configuration Appendix F Touchscreen Installation & Configuration Driver InstallationFigure F.3 Install License Agreement Uninstall the Driver Figure F.5 UninstallTouchscreen Calibration CalibrateFigure F.8 Standard Calibration Figure F.10 Standard Calibration Figure F.11 Advanced Calibration Figure F.13 Plot Calibration Data DrawFigure F.14 Draw Option Figure F.16 OptionPage Fuse Specifications Fuse Specifications Appendix G Fuse SpecificationsFuse Replacement