CAN – Ethernet Gateway
88 © SYS TEC electronic GmbH 2007 L-1032e_9
7.3.4 CAN Error Code Description
The CAN Error Code which is returned by the functions
EthCanReadCanMsg(), EthCanWriteCanMsg() and
EthCanGetStatus(), corresponds to a bit combination from the error
codes listed in the following table. The error code may indicate
multiple errors.
CAN Error Code Numerical Value
ETHCAN_CANERR_OK 0x0000
ETHCAN_CANERR_XMTFULL 0x0001
ETHCAN_CANERR_OVERRUN 0x0002
ETHCAN_CANERR_BUSLIGHT 0x0004
ETHCAN_CANERR_BUSHEAVY 0x0008
ETHCAN_CANERR_BUSOFF 0x0010
ETHCAN_CANERR_QRCVEMPTY 0x0020
ETHCAN_CANERR_QOVERRUN 0x0040
ETHCAN_CANERR_QXMTFULL 0x0080
ETHCAN_CANERR_REGTEST 0x0100
ETHCAN_CANERR_MEMTEST 0x0200
Table 12: CAN Error Codes
ETHCAN_CANERR_OK
No CAN Error has occurred
ETHCAN_CANERR_XMTFULL
The send buffer in the CAN Controller of the CAN-Ethernet Gateway
has reached the maximum number of CAN messages.
ETHCAN_CANERR_OVERRUN
The receive buffer in the CAN controller of the CAN Ethernet
Gateway has reached the maximum number of CAN messages.