Go to the documentation of this file.
18 #define CAN_ERR_TX_TIMEOUT 0x00000001U
19 #define CAN_ERR_LOSTARB 0x00000002U
20 #define CAN_ERR_CRTL 0x00000004U
21 #define CAN_ERR_PROT 0x00000008U
22 #define CAN_ERR_TRX 0x00000010U
23 #define CAN_ERR_ACK 0x00000020U
24 #define CAN_ERR_BUSOFF 0x00000040U
25 #define CAN_ERR_BUSERROR 0x00000080U
26 #define CAN_ERR_RESTARTED 0x00000100U
29 #define CAN_ERR_LOSTARB_UNSPEC 0x00
33 #define CAN_ERR_CRTL_UNSPEC 0x00
34 #define CAN_ERR_CRTL_RX_OVERFLOW 0x01
35 #define CAN_ERR_CRTL_TX_OVERFLOW 0x02
36 #define CAN_ERR_CRTL_RX_WARNING 0x04
37 #define CAN_ERR_CRTL_TX_WARNING 0x08
38 #define CAN_ERR_CRTL_RX_PASSIVE 0x10
39 #define CAN_ERR_CRTL_TX_PASSIVE 0x20
44 #define CAN_ERR_PROT_UNSPEC 0x00
45 #define CAN_ERR_PROT_BIT 0x01
46 #define CAN_ERR_PROT_FORM 0x02
47 #define CAN_ERR_PROT_STUFF 0x04
48 #define CAN_ERR_PROT_BIT0 0x08
49 #define CAN_ERR_PROT_BIT1 0x10
50 #define CAN_ERR_PROT_OVERLOAD 0x20
51 #define CAN_ERR_PROT_ACTIVE 0x40
52 #define CAN_ERR_PROT_TX 0x80
55 #define CAN_ERR_PROT_LOC_UNSPEC 0x00
56 #define CAN_ERR_PROT_LOC_SOF 0x03
57 #define CAN_ERR_PROT_LOC_ID28_21 0x02
58 #define CAN_ERR_PROT_LOC_ID20_18 0x06
59 #define CAN_ERR_PROT_LOC_SRTR 0x04
60 #define CAN_ERR_PROT_LOC_IDE 0x05
61 #define CAN_ERR_PROT_LOC_ID17_13 0x07
62 #define CAN_ERR_PROT_LOC_ID12_05 0x0F
63 #define CAN_ERR_PROT_LOC_ID04_00 0x0E
64 #define CAN_ERR_PROT_LOC_RTR 0x0C
65 #define CAN_ERR_PROT_LOC_RES1 0x0D
66 #define CAN_ERR_PROT_LOC_RES0 0x09
67 #define CAN_ERR_PROT_LOC_DLC 0x0B
68 #define CAN_ERR_PROT_LOC_DATA 0x0A
69 #define CAN_ERR_PROT_LOC_CRC_SEQ 0x08
70 #define CAN_ERR_PROT_LOC_CRC_DEL 0x18
71 #define CAN_ERR_PROT_LOC_ACK 0x19
72 #define CAN_ERR_PROT_LOC_ACK_DEL 0x1B
73 #define CAN_ERR_PROT_LOC_EOF 0x1A
74 #define CAN_ERR_PROT_LOC_INTERM 0x12
78 #define CAN_ERR_TRX_UNSPEC 0x00
79 #define CAN_ERR_TRX_CANH_NO_WIRE 0x04
80 #define CAN_ERR_TRX_CANH_SHORT_TO_BAT 0x05
81 #define CAN_ERR_TRX_CANH_SHORT_TO_VCC 0x06
82 #define CAN_ERR_TRX_CANH_SHORT_TO_GND 0x07
83 #define CAN_ERR_TRX_CANL_NO_WIRE 0x40
84 #define CAN_ERR_TRX_CANL_SHORT_TO_BAT 0x50
85 #define CAN_ERR_TRX_CANL_SHORT_TO_VCC 0x60
86 #define CAN_ERR_TRX_CANL_SHORT_TO_GND 0x70
87 #define CAN_ERR_TRX_CANL_SHORT_TO_CANH 0x80