Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <can.h>
Data Fields | |
struct net_if_api | iface_api |
int(* | send )(const struct device *dev, const struct zcan_frame *frame, can_tx_callback_t cb, void *cb_arg, k_timeout_t timeout) |
int(* | attach_filter )(const struct device *dev, can_rx_callback_t cb, void *cb_arg, const struct zcan_filter *filter) |
void(* | detach_filter )(const struct device *dev, int filter_id) |
int(* | enable )(const struct device *dev, bool enable) |
CAN L2 driver API. Used by 6loCAN.
int(* net_can_api::attach_filter) (const struct device *dev, can_rx_callback_t cb, void *cb_arg, const struct zcan_filter *filter) |
Attach a filter with it's callback
Enable or disable the reception of frames for net CAN
struct net_if_api net_can_api::iface_api |
The net_if_api must be placed in first position in this struct so that we are compatible with network interface API.
int(* net_can_api::send) (const struct device *dev, const struct zcan_frame *frame, can_tx_callback_t cb, void *cb_arg, k_timeout_t timeout) |
Send a single CAN frame