Kvaser Linux CANLIB
|
The following flags can be returned from canRead() et al, or passed to canWrite(). Note that you can combine one or more flags, and you can also combine them with the flags below.
Flag | Value | Meaning |
---|---|---|
canMSG_RTR | 1 | Message is a remote request |
canMSG_STD | 2 | Message has a standard (11-bit) identifier |
canMSG_EXT | 4 | Message has a extended (29-bit) identifier |
canMSG_WAKEUP | 8 | Message is a WAKEUP message (SWC hardware.) |
canMSG_ERROR_FRAME | 32 | Message represents an error frame. |
The following flags can be returned from canRead() et al, but cannot be passed to canWrite():
Flag | Value | Meaning |
---|---|---|
canMSG_NERR | 16 | NERR was active during the message (TJA1054 etc. hardware. See Note 4 below.)/tr> |
canMSG_TXACK | 64 | Message is a TX ACK (meaning that the message was really sent)/tr> |
canMSG_TXRQ | 128 | Message is a TX REQ (meaning that the message was transferred to the CAN controller)/tr> |
canMSGERR_HW_OVERRUN | 512 | Hardware buffer overrun. |
canMSGERR_SW_OVERRUN | 1024 | Software buffer overrun. |
1 | CANH wire interrupted |
2 | CANL wire interrupted |
3 | CANH short-circuited to battery |
3a | CANH short-circuited to VCC |
4 | CANL short-circuited to ground |
5 | CANH short-circuited to ground |
6 | CANL short-circuited to battery |
6a | CANL short-circuited to VCC |
7 | CANL and CANH mutually short-circuited |
See the TJA1054 data sheet (available from Philips) for more detailed information.