Advantech PCI-1682U Instrukcja Użytkownika Strona 35

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 104
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 103 104

Komentarze do niniejszej Instrukcji

Brak uwag