Advantech TPC-1260H Manual do Utilizador Página 62

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 90
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 61
TPC-1260H User Manual 50
Appendix C Watchdog Timer Program-
ming
There is a built-in watchdog timer in Windows CE 4.2 for TPC-1260H.
You can access it through the WIN32 API. TPC-1260H 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 the watchdog timer. The introduction below includes
DeviceIOControl, the definition of the parameter and an example.
C.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 );
Vista de página 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 89 90

Comentários a estes Manuais

Sem comentários