45
PCI-1680U/1682U User Manual
Chapter 4
S
oftware
R
equirements
Example
Wait event in synchronous mode.
DWORD dwMask;
BOOL bSuccess = WaitCommEvent(hDevice, &dwMask, NULL);
if(bSuccess)
{
if(dwMask & EV_ERR)
{
//to do
DWORD dwError;
bSuccess = ClearCommError(hDevice, &dwError, NULL);
if(bSuccess)
{
//to do
if(dwError& CE_FRAME || dwError& CE_BREAK)
{
CanStatusPar_t status;
DWORD dwReturned;
DeviceIoControl (hDevice,
CAN_IOCTL_STATUS,
NULL,
0,
&status,
sizeof(CanStatusPar_t),
&dwReturned,
NULL
);
}
}
}
See Also
WaitCommEvent
DeviceIoControl
Summary of Contents for PCI-1680U
Page 10: ...PCI 1680U 1682U User Manual 4 ...
Page 16: ...PCI 1680U 1682U User Manual 10 5 Click Next as the following 6 Click Next as the following ...
Page 22: ...PCI 1680U 1682U User Manual 16 ...
Page 26: ...PCI 1680U 1682U User Manual 20 Figure 3 2 PCI 1682U Silk Screen ...
Page 85: ...79 PCI 1680U 1682U User Manual Chapter 4 Software Requirements WDM CE ...
Page 90: ...PCI 1680U 1682U User Manual 84 4 8 2 2 Receive flow chart ...
Page 91: ...85 PCI 1680U 1682U User Manual Chapter 4 Software Requirements 4 8 2 3 Configure flow chart ...
Page 103: ...97 PCI 1680U 1682U User Manual Chapter 5 Pin Assignments and Wiring ...