TPC-31/61 User Manual
40
There is a built-in watchdog timer in the TPC-31/61 series. You can access it through
the WIN32 API. TPC-31/61 panel computers provide 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 Device IO
Control functions to enable/disable Watchdog timer. The introduction below includes
the Device IO Control, the definition of the parameter and an example.
A.1
Device IO Control
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 CreateFile
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 dwIoControlCode parameter.
However, the writer of a custom device driver can define IOCTL_XXXX control
codes, per the CTL_CODE macro. These control codes can then be advertised,
and an application can use these control codes with DeviceIoControl to perform
driver-specific functions.
lpInBuffer
[in] Long pointer to a buffer that contains the data required to perform the opera-
tion. 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 speci-fies an opera-
tion 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 lpBytesRe-turned parameter can-
not be NULL. Even when an operation produces no output data, and lpOutBuf-
fer 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.
Summary of Contents for TPC-31
Page 1: ...User Manual TPC 31 61 3 5 5 7 QVGA TFT LCD TI Cortex A8 Touch Panel Computer...
Page 10: ...TPC 31 61 User Manual x...
Page 17: ...Chapter 2 2 System Setup This chapter provides a brief explanation for operating the TPC 31 61...
Page 20: ...TPC 31 61 User Manual 10...
Page 25: ...15 TPC 31 61 User Manual Chapter 3 System Tuning...
Page 26: ...TPC 31 61 User Manual 16...
Page 48: ...TPC 31 61 User Manual 38...
Page 49: ...Appendix A A Watchdog Timer Programming...
Page 54: ...TPC 31 61 User Manual 44...
Page 55: ...Appendix B B Fuse Specifications...
Page 57: ...Appendix C C Pin Assignments...
Page 59: ...Appendix D D Visual Settings...
Page 64: ...TPC 31 61 User Manual 54...
Page 65: ...Appendix E E TPC 31T 61T Update Guide...
Page 68: ...TPC 31 61 User Manual 58 6 The Boot Loader version can be checked at system power on stage...
Page 69: ...Appendix F F Jumper Dip Switch Setting List...
Page 73: ...63 TPC 31 61 User Manual Appendix F Jumper Dip Switch Setting List...