41
PCI-1680U/1682U User Manual
Chapter 4
S
oftware
R
equirements
4.3.6
SetCommMask
Users can use this interface to set event for CAN port.
Users have to call WaitCommEvent function to wait event.
Users can call GetCommMask to get the current event set before.
If users do not set any of the supported event types, the real event type will be zero.
In this case, if WaitCommEvent is called, the call will be returned and the event type
returned will be zero.
Syntax
BOOL SetCommMask(
HANDLE
hDevice
,
DWORD
dwEvtMask
);
Parameters
Return Value
Successful: return non-zero values. Unsuccessful: return zero value. Please call Get-
LastError function.
Example
BOOL bSuccess = SetCommMask(hDevice, EV_ERR | EV_RXCHAR);
See Also
WaitCommEvent
GetCommMask
Note!
Events supported at present are only:
Type Direction
EV_ERR Error
EV_RXCHAR Receive one frame data
Name Direction Description
hDevice
Input
Handle of the device which was opened.
dwEvtMask Input
Event
type.
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 ...