Skip to content

Struct espos_n2k::TwaiReceiverConfig

ClassList > espos_n2k > TwaiReceiverConfig

  • #include <espos_n2k/twai_receiver.h>

Public Attributes

Type Name
uint32_t bitrate = 250000
gpio_num_t rx_pin = GPIO\_NUM\_NC
size_t rx_queue_depth = CONFIG\_ESPOS\_N2K\_RX\_QUEUE\_DEPTH
gpio_num_t tx_pin = GPIO\_NUM\_NC
No default: which pins carry CAN is a property of the board, and a number that exists on one target does not on another (esp32c3 has no GPIO 22 at all).

Public Attributes Documentation

variable bitrate

uint32_t espos_n2k::TwaiReceiverConfig::bitrate;

variable rx_pin

gpio_num_t espos_n2k::TwaiReceiverConfig::rx_pin;

variable rx_queue_depth

size_t espos_n2k::TwaiReceiverConfig::rx_queue_depth;

variable tx_pin

No default: which pins carry CAN is a property of the board, and a number that exists on one target does not on another (esp32c3 has no GPIO 22 at all).

gpio_num_t espos_n2k::TwaiReceiverConfig::tx_pin;

The application must say. GPIO_NUM_NC leaves the receiver unstarted with an explicit log line rather than binding whatever pin the number happens to mean here.



The documentation for this class was generated from the following file espos_n2k/include/espos_n2k/twai_receiver.h