Loading...
Searching...
No Matches

ESP CAN device configuration. More...

Detailed Description

ESP CAN device configuration.

bxCAN device configuration

Definition at line 88 of file can_esp.h.

#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.
 

Field Documentation

◆ abom

uint8_t can_conf_t::abom

Automatic bus-off management.

Definition at line 123 of file candev_stm32.h.

◆ af

gpio_af_t can_conf_t::af

Alternate pin function to use.

Definition at line 100 of file candev_stm32.h.

◆ awum

uint8_t can_conf_t::awum

Automatic wakeup mode.

Definition at line 124 of file candev_stm32.h.

◆ bitrate

uint32_t can_conf_t::bitrate

Bitrate.

Definition at line 89 of file can_esp.h.

◆ can

CAN_TypeDef* can_conf_t::can

CAN device.

Definition at line 95 of file candev_stm32.h.

◆ can_master

CAN_TypeDef* can_conf_t::can_master

Master CAN device.

Definition at line 104 of file candev_stm32.h.

◆ en_deep_sleep_wake_up

bool can_conf_t::en_deep_sleep_wake_up

Enable deep-sleep wake-up interrupt.

Definition at line 102 of file candev_stm32.h.

◆ first_filter

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.

◆ lbkm

uint8_t can_conf_t::lbkm

Loopback mode.

Definition at line 128 of file candev_stm32.h.

◆ master_rcc_mask

uint32_t can_conf_t::master_rcc_mask

Master device RCC mask.

Definition at line 105 of file candev_stm32.h.

◆ nart

uint8_t can_conf_t::nart

No automatic retransmission.

Definition at line 125 of file candev_stm32.h.

◆ nb_filters

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.

◆ rcc_mask

uint32_t can_conf_t::rcc_mask

RCC mask to enable clock.

Definition at line 96 of file candev_stm32.h.

◆ rflm

uint8_t can_conf_t::rflm

Receive FIFO locked mode.

Definition at line 126 of file candev_stm32.h.

◆ rx0_irqn

uint8_t can_conf_t::rx0_irqn

RX0 IRQ channel.

Definition at line 118 of file candev_stm32.h.

◆ rx1_irqn

uint8_t can_conf_t::rx1_irqn

RX1 IRQ channel.

Definition at line 119 of file candev_stm32.h.

◆ rx_pin

gpio_t can_conf_t::rx_pin

CAN transceiver RX pin.

RX pin.

Definition at line 91 of file can_esp.h.

◆ sce_irqn

uint8_t can_conf_t::sce_irqn

SCE IRQ channel.

Definition at line 120 of file candev_stm32.h.

◆ silm

uint8_t can_conf_t::silm

Silent mode.

Definition at line 129 of file candev_stm32.h.

◆ ttcm

uint8_t can_conf_t::ttcm

Time triggered communication mode.

Definition at line 122 of file candev_stm32.h.

◆ tx_irqn

uint8_t can_conf_t::tx_irqn

TX IRQ channel.

Definition at line 117 of file candev_stm32.h.

◆ tx_pin

gpio_t can_conf_t::tx_pin

CAN transceiver TX pin.

TX pin.

Definition at line 90 of file can_esp.h.

◆ txfp

uint8_t can_conf_t::txfp

Transmit FIFO priority.

Definition at line 127 of file candev_stm32.h.


The documentation for this struct was generated from the following files: