- Industrial & lab equipment
- Electrical equipment & supplies
- Electrical controls
- Electrical timers
- Advantech
- TPC-1570H
- User manual
advertisement
Appendix B Watchdog Timer on WinCE
There is a built-in Watchdog timer on Windows CE 5.0 for TPC-1570H.
You can access it through WIN32 API. TPC-1570H provides a WDT driver to allow users to enable/disable the Watchdog timer. The driver name is
“WDT1:”. Programmers must open this driver before using the resources.
Then programmers can use DeviceIOControl functions to enable/disable
Watchdog timer. The introduction below includes the DeviceIOControl, the definition of the parameter and an example.
B.1 DeviceIOControl
This function sends a control code directly to a specified device driver, causing the corresponding device to perform the specified operation.
BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped );
Parameters: hDevice
[in] Handle to the device that is to perform the operation. Call the Create-
File function to obtain a device handle.
dwIoControlCode
[in] Specifies the control code for the operation. This value identifies the specific operation to be performed and the type of device on which the operation is to be performed. No specific values are defined for the dwIo-
ControlCode parameter. However, the writer of a custom device driver can define IOCTL_XXXX control codes, per the CTL_CODE macro. These
TPC-1570H User Manual 52
control codes can then be advertised, and an application can use these control codes with DeviceIoControl to perform driverspecific functions.
lpInBuffer
[in] Long pointer to a buffer that contains the data required to perform the operation. This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not require input data.
nInBufferSize
[in] Size, in bytes, of the buffer pointed to by lpInBuffer.
lpOutBuffer
[out] Long pointer to a buffer that receives the operation.s output data.
This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not produce output data.
nOutBufferSize
[in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
lpBytesReturned
[out] Long pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuffer. The lpBytesReturned parameter cannot be NULL. Even when an operation produces no output data, and lpOutBuffer can be NULL, the DeviceIoControl function makes use of the variable pointed to bylpBytesReturned. After such an operation, the value of the variable is without meaning.
lpOverlapped
[in] Ignored; set to NULL.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
53 Appendix B
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 12 1 General Information
- 12 Introduction
- 12 Specifications
- 12 System Kernel
- 13 I/O Ports
- 13 Safety and Environment
- 14 LCD Specifications
- 15 Touchscreen Specifications
- 15 Power
- 15 I/O Port Arrangement
- 15 Figure 1.1:I/O port arrangement
- 16 Panel Mounting
- 16 Figure 1.2:Panel Mounting
- 17 Exploded Diagram
- 17 Figure 1.3:Exploded Diagram
- 17 Dimensions and cutout
- 18 Figure 1.4:Dimensions
- 20 2 System Setup
- 20 Figure 2.1:Unpack the package
- 21 Figure 2.2:Install CompactFlash memory card
- 22 Figure 2.3:Power connector
- 23 Figure 2.5:Touchscreen Calibration
- 23 Figure 2.6:Touchscreen Calibration
- 26 3 System Engine
- 27 Figure 3.1:Main Board Connector
- 27 Figure 3.2:Main Board Connector
- 30 4 Software Configuration
- 30 Utilities & Drivers
- 30 Intel Chipset Software Installation Utility
- 30 VGA Drivers (Intel(R) Graphics Driver)
- 30 Intel PRO Network Drivers/software
- 31 Audio Driver
- 31 Advantech COM Driver
- 31 Touchscreen Driver
- 31 Watchdog Timer Driver
- 32 Advantech COM Driver Installation
- 42 Watchdog Timer (WDT) Driver Installation
- 43 Installing the TPC-1570 Watchdog Timer Driver
- 48 How to Use the TPC-1570H Watchdog Timer
- 51 Dual Display Setting
- 54 5 Windows XP Embedded
- 55 Advantech Utilities
- 55 Version Information
- 55 OSLock and OSUnLock
- 58 Appendix A Serial Port Settings
- 58 COM1/ COM3 Connector Definition
- 58 COM4 Setting
- 62 Appendix B Watchdog Timer on WinCE
- 62 DeviceIOControl
- 64 How to Use the Control Code
- 66 Examples
- 70 Overview
- 71 Watchdog Timer Programming
- 72 Table C.1:Watchdog Timer Registers
- 73 Example Programs
- 80 Appendix D Accessory Kit Assembly
- 80 CompactFlash to IDE Transfer Kit
- 80 Figure D.1:Adapter Board and IDE Cable
- 81 Figure D.3:CompactFlash Slot
- 81 Figure D.5:Inserted Adapter Board
- 82 Figure D.7:Plug Power Line into CD-ROM Drive
- 82 USB Driver Installation Notice
- 84 Appendix E HDD Kit Assembly
- 84 Figure E.1:Removing the Rear Cover
- 84 Figure E.2:Removing the Top Screws
- 85 Figure E.3:Removing the HDD kit
- 85 Figure E.4:Pulling out the HDD bracket
- 86 Figure E.5:The HDD Bracket
- 86 Figure E.6:Installing the HDDr
- 87 Figure E.7:Linking the HDD with the Connector
- 87 Figure E.8:Fastening the HDD cover
- 88 Figure E.9:Chamfer
- 88 Figure E.10:Chamfer & Rubber
- 89 Figure E.11:Sliding the HDD Into Position
- 89 Figure E.12:Completed HDD Installation
- 90 Figure E.13:Mounting the Rubber Cushions
- 90 Figure E.14:Fastening the HDD Module
- 91 Figure E.15:Reinstalling the Rear Cover
- 94 Driver Installation
- 94 Figure F.1:Setup.exe
- 94 Figure F.2:Install - Wizard
- 95 Figure F.3:Install – License Agreement
- 95 Figure F.4:Install – Completed
- 96 Uninstall the Driver
- 96 Figure F.5:Uninstall
- 96 Figure F.6:Uninstall
- 97 Figure F.7:Uninstall
- 97 Touchscreen Calibration
- 98 Figure F.8:Standard Calibration
- 98 Figure F.9:Standard Calibration
- 99 Figure F.10:Standard Calibration
- 100 Figure F.11:Advanced Calibration
- 100 Figure F.12:Advanced Calibration
- 101 Figure F.13:Plot Calibration Data
- 102 Figure F.14:Draw
- 102 Figure F.15:Clear Screen
- 103 Figure F.16:Option
- 106 Appendix G Fuse Specifications
- 106 Fuse Specifications
- 106 Fuse Replacement
- 106 Figure G.1:Fuse Replacement