ESP CAN device configuration. More...
#include <can_esp.h>
Data Fields | |
uint32_t | bitrate |
Bitrate. | |
gpio_t | tx_pin |
CAN transceiver TX pin. | |
gpio_t | rx_pin |
CAN transceiver RX pin. | |
CAN_TypeDef * | can |
CAN device. | |
uint32_t | rcc_mask |
RCC mask to enable clock. | |
gpio_af_t | af |
Alternate pin function to use. | |
bool | en_deep_sleep_wake_up |
Enable deep-sleep wake-up interrupt. | |
CAN_TypeDef * | can_master |
Master CAN device. | |
uint32_t | master_rcc_mask |
Master device RCC mask. | |
uint8_t | first_filter |
First filter in the bank. | |
uint8_t | nb_filters |
Number of filters to use. | |
uint8_t | tx_irqn |
TX IRQ channel. | |
uint8_t | rx0_irqn |
RX0 IRQ channel. | |
uint8_t | rx1_irqn |
RX1 IRQ channel. | |
uint8_t | sce_irqn |
SCE IRQ channel. | |
uint8_t | ttcm: 1 |
Time triggered communication mode. | |
uint8_t | abom: 1 |
Automatic bus-off management. | |
uint8_t | awum: 1 |
Automatic wakeup mode. | |
uint8_t | nart: 1 |
No automatic retransmission. | |
uint8_t | rflm: 1 |
Receive FIFO locked mode. | |
uint8_t | txfp: 1 |
Transmit FIFO priority. | |
uint8_t | lbkm: 1 |
Loopback mode. | |
uint8_t | silm: 1 |
Silent mode. | |
uint8_t can_conf_t::abom |
Automatic bus-off management.
Definition at line 123 of file candev_stm32.h.
gpio_af_t can_conf_t::af |
Alternate pin function to use.
Definition at line 100 of file candev_stm32.h.
uint8_t can_conf_t::awum |
Automatic wakeup mode.
Definition at line 124 of file candev_stm32.h.
CAN_TypeDef* can_conf_t::can |
CAN device.
Definition at line 95 of file candev_stm32.h.
CAN_TypeDef* can_conf_t::can_master |
Master CAN device.
Definition at line 104 of file candev_stm32.h.
bool can_conf_t::en_deep_sleep_wake_up |
Enable deep-sleep wake-up interrupt.
Definition at line 102 of file candev_stm32.h.
uint8_t can_conf_t::first_filter |
First filter in the bank.
For a master channel it must be 0. For a slave channel, it is used without checking with the master channel, beware bot to overwrite the master config.
Definition at line 109 of file candev_stm32.h.
uint8_t can_conf_t::lbkm |
Loopback mode.
Definition at line 128 of file candev_stm32.h.
uint32_t can_conf_t::master_rcc_mask |
Master device RCC mask.
Definition at line 105 of file candev_stm32.h.
uint8_t can_conf_t::nart |
No automatic retransmission.
Definition at line 125 of file candev_stm32.h.
uint8_t can_conf_t::nb_filters |
Number of filters to use.
Must be less or equal to CAN_STM32_NB_FILTER - first_filter
Definition at line 112 of file candev_stm32.h.
uint32_t can_conf_t::rcc_mask |
RCC mask to enable clock.
Definition at line 96 of file candev_stm32.h.
uint8_t can_conf_t::rflm |
Receive FIFO locked mode.
Definition at line 126 of file candev_stm32.h.
uint8_t can_conf_t::rx0_irqn |
RX0 IRQ channel.
Definition at line 118 of file candev_stm32.h.
uint8_t can_conf_t::rx1_irqn |
RX1 IRQ channel.
Definition at line 119 of file candev_stm32.h.
uint8_t can_conf_t::sce_irqn |
SCE IRQ channel.
Definition at line 120 of file candev_stm32.h.
uint8_t can_conf_t::silm |
Silent mode.
Definition at line 129 of file candev_stm32.h.
uint8_t can_conf_t::ttcm |
Time triggered communication mode.
Definition at line 122 of file candev_stm32.h.
uint8_t can_conf_t::tx_irqn |
TX IRQ channel.
Definition at line 117 of file candev_stm32.h.
uint8_t can_conf_t::txfp |
Transmit FIFO priority.
Definition at line 127 of file candev_stm32.h.