Lines Matching full:can

3  * linux/can.h
5 * Definitions for CAN network layer (socket addr / CAN frame / CAN filter)
52 /* controller area network (CAN) kernel definitions */
59 /* valid bits in CAN ID for frame formats */
67 * bit 0-28 : CAN identifier (11/29 bit)
80 * bit 0-28 : error class mask (see include/uapi/linux/can/error.h)
85 /* CAN payload length and DLC definitions according to ISO 11898-1 */
90 /* CAN FD payload length and DLC definitions according to ISO 11898-7 */
95 * struct can_frame - Classical CAN frame structure (aka CAN 2.0B)
96 * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
97 * @len: CAN frame payload length in byte (0 .. 8)
98 * @can_dlc: deprecated name for CAN frame payload length in byte (0 .. 8)
104 * CAN_CTRLMODE_CC_LEN8_DLC flag has to be enabled in CAN driver.
105 * @data: CAN frame payload (up to 8 byte)
110 /* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
127 * be set in the CAN frame bitstream on the wire. The FDF bit switch turns
128 * the CAN controllers bitstream processor into the CAN FD mode which creates
129 * two new options within the CAN FD frame specification:
134 * As the CANFD_ESI bit is internally generated by the transmitting CAN
135 * controller only the CANFD_BRS bit is relevant for real CAN controllers when
136 * building a CAN FD frame for transmission. Setting the CANFD_ESI bit can make
137 * sense for virtual CAN interfaces to test applications with echoed frames.
140 * layout to be able to write CAN frame content into a CAN FD frame structure.
142 * lost. CANFD_FDF allows programmers to mark CAN FD frames in the case of
143 * using struct canfd_frame for mixed CAN / CAN FD content (dual use).
144 * N.B. the Kernel APIs do NOT provide mixed CAN / CAN FD content inside of
149 #define CANFD_FDF 0x04 /* mark CAN FD for dual use of struct canfd_frame */
152 * struct canfd_frame - CAN flexible data rate frame structure
153 * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
155 * @flags: additional flags for CAN FD
158 * @data: CAN FD frame payload (up to CANFD_MAX_DLEN byte)
163 __u8 flags; /* additional flags for CAN FD */
185 * struct sockaddr_can - the sockaddr structure for CAN sockets
187 * @can_ifindex: CAN network interface index.
214 /* reserved for future CAN protocols address information */
219 * struct can_filter - CAN ID based filter in can_register().
220 * @can_id: relevant bits of CAN ID which are not masked out.
221 * @can_mask: CAN mask (see description)
228 * The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can