Lines Matching full:can
3 * linux/can.h
5 * Definitions for CAN network layer (socket addr / CAN frame / CAN filter)
53 /* controller area network (CAN) kernel definitions */
60 /* valid bits in CAN ID for frame formats */
69 * bit 0-28 : CAN identifier (11/29 bit)
83 * bit 0-28 : error class mask (see include/uapi/linux/can/error.h)
88 /* CAN payload length and DLC definitions according to ISO 11898-1 */
93 /* CAN FD payload length and DLC definitions according to ISO 11898-7 */
98 * CAN XL payload length and DLC definitions according to ISO 11898-1
99 * CAN XL DLC ranges from 0 .. 2047 => data length from 1 .. 2048 byte
108 * struct can_frame - Classical CAN frame structure (aka CAN 2.0B)
109 * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
110 * @len: CAN frame payload length in byte (0 .. 8)
111 * @can_dlc: deprecated name for CAN frame payload length in byte (0 .. 8)
117 * CAN_CTRLMODE_CC_LEN8_DLC flag has to be enabled in CAN driver.
118 * @data: CAN frame payload (up to 8 byte)
123 /* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
140 * be set in the CAN frame bitstream on the wire. The FDF bit switch turns
141 * the CAN controllers bitstream processor into the CAN FD mode which creates
142 * two new options within the CAN FD frame specification:
147 * As the CANFD_ESI bit is internally generated by the transmitting CAN
148 * controller only the CANFD_BRS bit is relevant for real CAN controllers when
149 * building a CAN FD frame for transmission. Setting the CANFD_ESI bit can make
150 * sense for virtual CAN interfaces to test applications with echoed frames.
153 * layout to be able to write CAN frame content into a CAN FD frame structure.
155 * lost. CANFD_FDF allows programmers to mark CAN FD frames in the case of
156 * using struct canfd_frame for mixed CAN / CAN FD content (dual use).
157 * Since the introduction of CAN XL the CANFD_FDF flag is set in all CAN FD
158 * frame structures provided by the CAN subsystem of the Linux kernel.
162 #define CANFD_FDF 0x04 /* mark CAN FD for dual use of struct canfd_frame */
165 * struct canfd_frame - CAN flexible data rate frame structure
166 * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
168 * @flags: additional flags for CAN FD
171 * @data: CAN FD frame payload (up to CANFD_MAX_DLEN byte)
176 __u8 flags; /* additional flags for CAN FD */
186 * and shares the relative position of the struct can[fd]_frame.len element.
187 * The CANXL_XLF bit ALWAYS needs to be set to indicate a valid CAN XL frame.
189 * for Classical CAN and CAN FD frames.
193 #define CANXL_XLF 0x80 /* mandatory CAN XL frame flag (must always be set!) */
202 * struct canxl_frame - CAN with e'X'tended frame 'L'ength frame structure
204 * @flags: additional flags for CAN XL
208 * @data: CAN XL frame payload (CANXL_MIN_DLEN .. CANXL_MAX_DLEN byte)
210 * @prio shares the same position as @can_id from struct can[fd]_frame.
214 __u8 flags; /* additional flags for CAN XL */
241 * struct sockaddr_can - the sockaddr structure for CAN sockets
243 * @can_ifindex: CAN network interface index.
270 /* reserved for future CAN protocols address information */
275 * struct can_filter - CAN ID based filter in can_register().
276 * @can_id: relevant bits of CAN ID which are not masked out.
277 * @can_mask: CAN mask (see description)
284 * The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can