PCI-1680U/1682U User Manual
44
4.3.9
ClearCommError
When error occurs, users can use ClearCommError to get the specific type of error.
Syntax
BOOL ClearCommError(
HANDLE
hDevice
,
LPDWORD
lpErrors
,
LPCOMSTAT
lpStat
);
Parameters
Return Value
Successful: return non-zero values. Unsuccessful: return zero value. Please call Get-
LastError function.
Note!
Definitions of error codes supported are as below:
Name Description
CE_RXOVER Receive Queue overflow.
CE_OVERRUN Receive Overrun Error.
CE_FRAME Passive error.
CE_BREAK Busoff .
Note!
The third parameter is unused, please set it to NULL.
Name Direction
Description
hDevice
Input
Handle of the device which was opened.
lpErrors
Output
Store error codes which return from drivers.
lpStat Output
Empty. If users want to know specific information about error
register, please call DeviceIoControl to get status of the
device.
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 ...