13#ifndef ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_
14#define ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_
36#define SOL_CAN_BASE 100
37#define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
44#define CAN_MTU CAN_MAX_DLEN
85BUILD_ASSERT(offsetof(
struct canbus_api, iface_api) == 0);
Public APIs for the CAN drivers.
void
Definition: eswifi_shell.c:15
unsigned short int sa_family_t
Definition: net_ip.h:158
size_t socklen_t
Definition: net_ip.h:161
@ CAN_RAW_FILTER
Definition: socket_can.h:40
Public API for network interface.
IPv6 and IPv4 definitions.
Definition: socket_can.h:58
int(* getsockopt)(const struct device *dev, void *obj, int level, int optname, const void *optval, socklen_t *optlen)
Definition: socket_can.h:77
int(* send)(const struct device *dev, struct net_pkt *pkt)
Definition: socket_can.h:66
int(* setsockopt)(const struct device *dev, void *obj, int level, int optname, const void *optval, socklen_t optlen)
Definition: socket_can.h:72
void(* close)(const struct device *dev, int filter_id)
Definition: socket_can.h:69
struct net_if_api iface_api
Definition: socket_can.h:63
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
Network packet.
Definition: net_pkt.h:62
Definition: socket_can.h:50
sa_family_t can_family
Definition: socket_can.h:51
int can_ifindex
Definition: socket_can.h:52