Advantech PCI-1682U Instrukcja Użytkownika Strona 41

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 104
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 40
35 PCI-1680U/1682U User Manual
Chapter 4 Software Requirements
Clear receive buffer:
DWORD dwReturned;
Command_par_t cmd;
cmd.cmd = CMD_CLEARBUFFERS;
BOOL bSuccess = DeviceIoControl (
hDevice,
CAN_IOCTL_COMMAND,
&cmd,
sizeof(Command_par),
NULL,
0,
&dwReturned,
NULL
);
if(!bSuccess)
{
//error
}
Get status of device:
DWORD dwReturned;
CanStatusPar_t status;
BOOL bSuccess = DeviceIoControl (
hDevice,
CAN_IOCTL_STATUS,
NULL,
0,
&status,
sizeof(CanStatusPar_t),
&dwReturned,
NULL
);
See Also
Command_par
CanStatusPar_t
Przeglądanie stron 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 103 104

Komentarze do niniejszej Instrukcji

Brak uwag