
PCI-1680U/1682U User Manual 48
}
}
else
{
DWORD dwRet = GetLastError();
if( ERROR_IO_PENDING == dwRet)
{
printf("I/O is pending...\n");
if(GetOverlappedResult(hDevice, &ov, &dwLength,
TRUE))
{
//To do
}
else
{
//To do
}
}
else
printf("Wait failed with error %d.\n", GetLastEr-
ror());
}
}
See Also
ReadFile WriteFile
WaitCommEvent
4.4 Structure List
The table below is a list of structures needed by Advantech CAN WDM Driver.
Methods:
canmsg_t Received/Sent message structure.
CanStatusPar_t Port status structure.
Command_par Command/Configure operation structure.
Comentarios a estos manuales