Port_struct structure define – ADLINK PCI-7841/cPCI-7841 User Manual
Page 24
16
Function Reference
Note:
only for compact PCI and PC-104 version.
PORT_STRUCT structure define
The PORT_STRUCT structure defines the mode of id-mode,
acceptance code, acceptance mask and baud rate of a physical
CAN port. It is used by the CanPortConfig(), and CanGetPortSta-
tus() functions.
typedef struct _tagPORT_STRUCT
{
int mode; // 0 for 11-bit; 1 for 29-
bit
DWORD accCode, accMask;
int baudrate;
BYTE brp, tseg1, tseg2;// Reserved
BYTE sjw, sam; // Reserved
}PORT_STRUCT;
CanClearOverrun()
CanClearRxBuffer()
CanClearTxBuffer()
CanGetErrorCode()
CanGetErrorWarningLimit()
CanSetErrorWarningLimit()
CanGetRxErrorCount()
CanGetTxErrorCount()
CanSetTxErrorCount()
CanGetPortStatus()
CanGetLedStatus()1
CanSetLedStatus()1
Error and Event handling functions
Operation System
Function Name
DOS
CanInstallCallBack()
CanRemoveCallBack()
Windows 95/98/NT
CanInstallEvent()