56#define ESP_CAN_MAX_RX_FILTERS (16)
59#define ESP_CAN_MAX_RX_FRAMES (8)
96 gpio_t bus_on_off_pin;
101#define HAVE_CAN_CONF_T
Definitions for low-level CAN driver interface.
Low-level GPIO peripheral driver interface definitions.
struct can can_t
Low level device structure for ESP32 CAN (extension of candev_t)
#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.
canopt_state_t
CAN state options.
ESP CAN device configuration.
gpio_t tx_pin
CAN transceiver TX pin.
gpio_t rx_pin
CAN transceiver RX pin.
Controller Area Network filter.
Controller Area Network frame.
Low level device structure for ESP32 CAN (extension of candev_t)
struct can_filter rx_filters[ESP_CAN_MAX_RX_FILTERS]
acceptance filter list
canopt_state_t state
current state of device
uint32_t rx_filter_num
number of acceptance filters
uint32_t rx_frames_wptr
pointer to ring buffer for write
uint32_t rx_frames_num
number of frames in ring buffer
struct can_frame rx_frames[ESP_CAN_MAX_RX_FRAMES]
frames received
uint32_t rx_frames_rptr
pointer to ring buffer for read
struct can_frame * tx_frame
frame in transmission
candev_t candev
candev base structure
bool powered_up
device is powered up
uint32_t events
events triggered by the last interrupt
Structure to hold driver state.