11#ifndef ZEPHYR_INCLUDE_NET_CANBUS_H_
12#define ZEPHYR_INCLUDE_NET_CANBUS_H_
53BUILD_ASSERT(offsetof(
struct canbus_api, iface_api) == 0);
Controller Area Network (CAN) driver API.
size_t socklen_t
Length of a socket address.
Definition net_ip.h:171
Public API for network interface.
IPv6 and IPv4 definitions.
CAN L2 network driver API.
Definition canbus.h:26
int(* getsockopt)(const struct device *dev, void *obj, int level, int optname, const void *optval, socklen_t *optlen)
Get socket CAN option.
Definition canbus.h:45
int(* send)(const struct device *dev, struct net_pkt *pkt)
Send a CAN packet by socket.
Definition canbus.h:34
int(* setsockopt)(const struct device *dev, void *obj, int level, int optname, const void *optval, socklen_t optlen)
Set socket CAN option.
Definition canbus.h:40
void(* close)(const struct device *dev, int filter_id)
Close the related CAN socket.
Definition canbus.h:37
struct net_if_api iface_api
The net_if_api must be placed in first position in this struct so that we are compatible with network...
Definition canbus.h:31
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
Network packet.
Definition net_pkt.h:69