esp_idf_hal::can

Type Alias CanConfig

Source
pub type CanConfig = Config;

Aliased Type§

struct CanConfig {
    pub timing: Timing,
    pub filter: Filter,
    pub tx_queue_len: u32,
    pub rx_queue_len: u32,
    pub mode: Mode,
    pub alerts: EnumSet<Alert>,
    pub intr_flags: EnumSet<InterruptType>,
}

Fields§

§timing: Timing§filter: Filter§tx_queue_len: u32§rx_queue_len: u32§mode: Mode§alerts: EnumSet<Alert>§intr_flags: EnumSet<InterruptType>

Implementations

Source§

impl Config

Source

pub fn new() -> Self

Source

pub fn timing(self, timing: Timing) -> Self

Source

pub fn filter(self, filter: Filter) -> Self

Source

pub fn tx_queue_len(self, tx_queue_len: u32) -> Self

Source

pub fn rx_queue_len(self, rx_queue_len: u32) -> Self

Source

pub fn mode(self, mode: Mode) -> Self

Source

pub fn alerts(self, alerts: EnumSet<Alert>) -> Self

Source

pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> Self

Trait Implementations

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more