Go to the documentation of this file.
56 #define ESP_CAN_MAX_RX_FILTERS (16)
59 #define ESP_CAN_MAX_RX_FRAMES (8)
81 #ifdef ESP_CAN_CLK_OUT
84 #ifdef ESP_CAN_BUS_ON_OFF
85 gpio_t bus_on_off_pin;
102 #ifdef ESP_CAN_CLK_OUT
105 #ifdef ESP_CAN_BUS_ON_OFF
106 gpio_t bus_on_off_pin;
111 #define HAVE_CAN_CONF_T
canopt_state_t
CAN state options.
canopt_state_t state
current state of device
gpio_t tx_pin
CAN transceiver TX pin.
Structure to hold driver state.
uint32_t events
events triggered by the last interrupt
Controller Area Network filter.
gpio_t rx_pin
CAN transceiver RX pin.
bool powered_up
device is powered up
uint32_t rx_filter_num
number of acceptance filters
uint32_t rx_frames_wptr
pointer to ring buffer for write
struct can can_t
Low level device structure for ESP32 CAN (extension of candev_t)
Controller Area Network frame.
struct can_frame * tx_frame
frame in transmission
Definitions for low-level CAN driver interface.
struct can_filter rx_filters[ESP_CAN_MAX_RX_FILTERS]
acceptance filter list
uint32_t rx_frames_num
number of frames in ring buffer
Low-level GPIO peripheral driver interface definitions.
#define ESP_CAN_MAX_RX_FILTERS
Number of receiver acceptance filters.
#define ESP_CAN_MAX_RX_FRAMES
Number of frames in receiver buffer, must be a power of two.
gpio_t tx_pin
CAN transceiver TX pin.
struct candev_conf can_conf_t
Linux candev configuration.
gpio_t rx_pin
CAN transceiver RX pin.
Low level device structure for ESP32 CAN (extension of candev_t)
struct can_frame rx_frames[ESP_CAN_MAX_RX_FRAMES]
frames received
uint32_t rx_frames_rptr
pointer to ring buffer for read
candev_t candev
candev base structure