Advantech PCI-1682U Manual de usuario Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 104
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 103 104

Comentarios a estos manuales

Sin comentarios