Advantech PCI-1682U Manual de usuario Pagina 35

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 104
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 34
29 PCI-1680U/1682U User Manual
Chapter 4 Software Requirements
4.3.2 CloseHandle
Close the port by calling this function when operation is completed.
Syntax
BOOL CloseHandle(
HANDLE hDevice
);
Parameters
Return Value
Successful: return non-zero values. Unsuccessful: return zero value. Please call Get-
LastError function.
Example
//close
BOOL bRet = CloseHandle(hDevice);
See Also
CreateFile
4.3.3 DeviceIoControl
Users can use this interface to send commands, configure ports, like stop device,
start device, configure Baud Rate, etc.
See Command_par, CanStatusPar_t for detailed configuration.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped
);
Name Direction Description
hDevice Input Handle of the device which was opened.
Vista de pagina 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 103 104

Comentarios a estos manuales

Sin comentarios