National-instruments Touch Panel Computer TPC-2012 Instrukcja Użytkownika Strona 35

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 49
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 34
© National Instruments Corporation D-1 TPC-2012/TPC-2512 User Manual
D
Watchdog Timer Programming
on WinCE (TPC-2012)
Windows CE includes a watchdog timer for the TPC-2012/TPC-2512. You
can access the timer through the WIN32 API. The TPC-2012/TPC-2512
includes a WDT driver, WDT1:, for enabling/disabling the watchdog timer.
You must open this driver before using the resources, and then use the
DeviceIOControl function to enable/disable the watchdog timer.
This appendix describes DeviceIOControl and it parameters. It also
includes a programming example.
DeviceIOControl
DeviceIOControl sends a control code directly to a specified device driver,
causing the corresponding device to perform the specified operation. The
function and its parameters are:
BOOL DeviceIoControl( HANDLE hDevice, DWORD
dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize,
LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD
lpBytesReturned, LPOVERLAPPED lpOverlapped );
Parameters
DeviceIOControl includes the following parameters:
hDevice
(in) Handle to the device that performs the operation. Call the
CreateFile function to obtain a device handle.
Przeglądanie stron 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 48 49

Komentarze do niniejszej Instrukcji

Brak uwag