[][src]Struct esp_idf_sys::can_general_config_t

#[repr(C)]
pub struct can_general_config_t {
    pub mode: can_mode_t,
    pub tx_io: gpio_num_t,
    pub rx_io: gpio_num_t,
    pub clkout_io: gpio_num_t,
    pub bus_off_io: gpio_num_t,
    pub tx_queue_len: u32,
    pub rx_queue_len: u32,
    pub alerts_enabled: u32,
    pub clkout_divider: u32,
}

@brief Structure for general configuration of the CAN driver

@note Macro initializers are available for this structure

Fields

mode: can_mode_t

< Mode of CAN controller

tx_io: gpio_num_t

< Transmit GPIO number

rx_io: gpio_num_t

< Receive GPIO number

clkout_io: gpio_num_t

< CLKOUT GPIO number (optional, set to -1 if unused)

bus_off_io: gpio_num_t

< Bus off indicator GPIO number (optional, set to -1 if unused)

tx_queue_len: u32

< Number of messages TX queue can hold (set to 0 to disable TX Queue)

rx_queue_len: u32

< Number of messages RX queue can hold

alerts_enabled: u32

< Bit field of alerts to enable (see documentation)

clkout_divider: u32

< CLKOUT divider. Can be 1 or any even number from 2 to 14 (optional, set to 0 if unused)

Trait Implementations

impl Debug for can_general_config_t[src]

impl Copy for can_general_config_t[src]

impl Clone for can_general_config_t[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]