TPC-31/61 User Manual
42
A.2.5
IOCTL_WDT_SETTIMEOUT:
Sets the Watchdog time setting.
lpInBuffer : The DWORD pointer to your Watchdog time setting. The Watchdog time
setting is just a number. 0 means 2 seconds, 1 means 5 seconds, 2 means 10 sec-
onds, 3 means 15 seconds, 4 means 30 seconds, others means 40 seconds. The
default setting is 5 seconds.
nInBufferSize:.unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
A.2.6
IOCTL_WDT_REBOOT:
If you want your application to trigger the Watchdog by itself, please use
IOCTL_WDT_REBOOT to notify the WDT driver. Otherwise, the WDT will trigger
itself automatically.
lpInBuffer :unused.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
A.3
Examples
#define WDT_CODE(ID) CTL_CODE(FILE_DEVICE_UNKNOWN, ID,
METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_WDT_ENABLE WDT_CODE (0x900)
#define IOCTL_WDT_DISABLE WDT_CODE (0x901)
#define IOCTL_WDT_STROBE WDT_CODE (0x902)
#define IOCTL_WDT_GET_TIMEOUT WDT_CODE (0x903)
#define IOCTL_WDT_SET_TIMEOUT WDT_CODE (0x904)
#define IOCTL_WDT_REBOOT WDT_CODE (0x905)
// For compatibility reasons, you can define IOCTL as below:
// #define IOCTL_WDT_ENABLE 0x1001
// #define IOCTL_WDT_DISABLE 0x1002
// #define IOCTL_WDT_STROBE 0x1003
// #define IOCTL_WDT_GETTIMEOUT 0x1004
// #define IOCTL_WDT_SETTIMEOUT 0x1005
// #define IOCTL_WDT_REBOOT 0x1006
HANDLE m_hWDT=NULL;
TCHAR szClassName[66];
// assign the WDT driver name
wsprintf(szClassName, TEXT("WDT1:"));
// Open the WDT driver m_hWDT = CreateFile(szClassName, GENERIC_READ
GENERIC_WRITE, 0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);
if ( m_hWDT == INVALID_HANDLE_VALUE ) {
Содержание TPC-31
Страница 1: ...User Manual TPC 31 61 3 5 5 7 QVGA TFT LCD TI Cortex A8 Touch Panel Computer...
Страница 10: ...TPC 31 61 User Manual x...
Страница 17: ...Chapter 2 2 System Setup This chapter provides a brief explanation for operating the TPC 31 61...
Страница 20: ...TPC 31 61 User Manual 10...
Страница 21: ...Chapter 3 3 System Tuning Sections include LCD Contrast Tuning Touchscreen Calibration Buzzer Setting...
Страница 25: ...15 TPC 31 61 User Manual Chapter 3 System Tuning...
Страница 26: ...TPC 31 61 User Manual 16...
Страница 27: ...Chapter 4 4 Windows CE Sections include TPC Utilities Networking Application Program Develop ment...
Страница 48: ...TPC 31 61 User Manual 38...
Страница 49: ...Appendix A A Watchdog Timer Programming...
Страница 54: ...TPC 31 61 User Manual 44...
Страница 55: ...Appendix B B Fuse Specifications...
Страница 57: ...Appendix C C Pin Assignments...
Страница 59: ...Appendix D D Visual Settings...
Страница 64: ...TPC 31 61 User Manual 54...
Страница 65: ...Appendix E E TPC 31T 61T Update Guide...
Страница 68: ...TPC 31 61 User Manual 58 6 The Boot Loader version can be checked at system power on stage...
Страница 69: ...Appendix F F Jumper Dip Switch Setting List...
Страница 73: ...63 TPC 31 61 User Manual Appendix F Jumper Dip Switch Setting List...