Advantech SPC-57 Manuel d'utilisateur Page 76

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 85
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 75
76
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 Device-IoControl function makes use of the variable pointed to by
lpBytesReturned. 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.
WDT Control Codes
There are 8 control codes for the operation codes in the WDT1 driver:
1. IOCTL_ENABLE_WDT (0x1001):
Enables the Watchdog timer on your application. Your application must trigger to Watchdog timer by
IOCTL_ACCESS_WDT interface during specified period, otherwise the device will reboot
automatically
lpInBuffer : unsed.
nInBufferSize: unused.
lpOutBuffer: unused.
nOutBufferSize: unused.
2. IOCTL_DISABLE_WDT (0x1002):
Disable the Watchdog time on your application.
lpInBuffer : unsed.
Vue de la page 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 84 85

Commentaires sur ces manuels

Pas de commentaire