10#ifndef __PACKET_SOCKETCAN_H__
11#define __PACKET_SOCKETCAN_H__
50#define CAN_TYPE_CAN_CLASSIC 0
51#define CAN_TYPE_CAN_FD 1
52#define CAN_TYPE_CAN_XL 2
68#define CAN_EFF_FLAG 0x80000000
69#define CAN_RTR_FLAG 0x40000000
70#define CAN_ERR_FLAG 0x20000000
72#define CAN_FLAG_MASK (CAN_EFF_FLAG | CAN_RTR_FLAG | CAN_ERR_FLAG)
74#define CAN_EFF_MASK 0x1FFFFFFF
75#define CAN_SFF_MASK 0x000007FF
80#define CAN_ERR_TX_TIMEOUT 0x00000001U
81#define CAN_ERR_LOSTARB 0x00000002U
82#define CAN_ERR_CTRL 0x00000004U
83#define CAN_ERR_PROT 0x00000008U
84#define CAN_ERR_TRX 0x00000010U
85#define CAN_ERR_ACK 0x00000020U
86#define CAN_ERR_BUSOFF 0x00000040U
87#define CAN_ERR_BUSERROR 0x00000080U
88#define CAN_ERR_RESTARTED 0x00000100U
89#define CAN_ERR_RESERVED 0x1FFFFE00U
92#define CAN_ERR_PROT_UNSPEC 0x00
93#define CAN_ERR_PROT_BIT 0x01
94#define CAN_ERR_PROT_FORM 0x02
95#define CAN_ERR_PROT_STUFF 0x04
96#define CAN_ERR_PROT_BIT0 0x08
97#define CAN_ERR_PROT_BIT1 0x10
98#define CAN_ERR_PROT_OVERLOAD 0x20
99#define CAN_ERR_PROT_ACTIVE 0x40
100#define CAN_ERR_PROT_TX 0x80
103#define CAN_ERR_PROT_LOC_UNSPEC 0x00
104#define CAN_ERR_PROT_LOC_SOF 0x03
105#define CAN_ERR_PROT_LOC_ID28_21 0x02
106#define CAN_ERR_PROT_LOC_ID20_18 0x06
107#define CAN_ERR_PROT_LOC_SRTR 0x04
108#define CAN_ERR_PROT_LOC_IDE 0x05
109#define CAN_ERR_PROT_LOC_ID17_13 0x07
110#define CAN_ERR_PROT_LOC_ID12_05 0x0F
111#define CAN_ERR_PROT_LOC_ID04_00 0x0E
112#define CAN_ERR_PROT_LOC_RTR 0x0C
113#define CAN_ERR_PROT_LOC_RES1 0x0D
114#define CAN_ERR_PROT_LOC_RES0 0x09
115#define CAN_ERR_PROT_LOC_DLC 0x0B
116#define CAN_ERR_PROT_LOC_DATA 0x0A
117#define CAN_ERR_PROT_LOC_CRC_SEQ 0x08
118#define CAN_ERR_PROT_LOC_CRC_DEL 0x18
119#define CAN_ERR_PROT_LOC_ACK 0x19
120#define CAN_ERR_PROT_LOC_ACK_DEL 0x1B
121#define CAN_ERR_PROT_LOC_EOF 0x1A
122#define CAN_ERR_PROT_LOC_INTERM 0x12
130#define CANXL_SDU_TYPE_CONTENT_BASED_ADDRESSING 0x01
131#define CANXL_SDU_TYPE_CAN_CC_CAN_FD 0x03
132#define CANXL_SDU_TYPE_IEEE_802_3 0x04
133#define CANXL_SDU_TYPE_IEEE_802_3_EXTENDED 0x05
134#define CANXL_SDU_TYPE_CAN_CC 0x06
135#define CANXL_SDU_TYPE_CAN_FD 0x07
136#define CANXL_SDU_TYPE_CIA_611_2 0x08
137#define CANXL_SDU_TYPE_AUTOSAR_MPDU 0x09
138#define CANXL_SDU_TYPE_CIA_613_2 0x0A
Definition packet_info.h:43
Definition packet-socketcan.h:55
Definition tvbuff-int.h:35