13#ifndef ZEPHYR_INCLUDE_NET_SOCKETCAN_H_
14#define ZEPHYR_INCLUDE_NET_SOCKETCAN_H_
35#define SOL_CAN_BASE 100
36#define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
43#ifdef CONFIG_CAN_FD_MODE
44#define SOCKETCAN_MAX_DLEN 64U
45#define CANFD_MTU (sizeof(struct socketcan_frame))
46#define CAN_MTU (CANFD_MTU - 56U)
48#define SOCKETCAN_MAX_DLEN 8U
49#define CAN_MTU (sizeof(struct socketcan_frame))
unsigned short int sa_family_t
Socket address family type.
Definition: net_ip.h:164
uint32_t socketcan_id_t
CAN Identifier structure for Linux SocketCAN compatibility.
Definition: socketcan.h:96
#define SOCKETCAN_MAX_DLEN
Definition: socketcan.h:48
@ CAN_RAW_FILTER
Definition: socketcan.h:39
Public API for network interface.
IPv6 and IPv4 definitions.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
struct sockaddr_can - The sockaddr structure for CAN sockets
Definition: socketcan.h:61
sa_family_t can_family
Definition: socketcan.h:62
int can_ifindex
Definition: socketcan.h:63
CAN filter for Linux SocketCAN compatibility.
Definition: socketcan.h:122
socketcan_id_t can_mask
The mask applied to can_id for matching.
Definition: socketcan.h:126
uint8_t flags
Additional flags for FD frame filter.
Definition: socketcan.h:128
socketcan_id_t can_id
The CAN identifier to match.
Definition: socketcan.h:124
CAN frame for Linux SocketCAN compatibility.
Definition: socketcan.h:101
socketcan_id_t can_id
32-bit CAN ID + EFF/RTR/ERR flags.
Definition: socketcan.h:103
uint8_t data[8U]
The payload data.
Definition: socketcan.h:114
uint8_t len
Frame payload length in bytes.
Definition: socketcan.h:105
uint8_t flags
Additional flags for CAN FD.
Definition: socketcan.h:107