Struct esp_idf_hal::can::config::Config
source · pub struct Config {
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
impl Config
pub fn new() -> Self
pub fn timing(self, timing: Timing) -> Self
pub fn filter(self, filter: Filter) -> Self
pub fn tx_queue_len(self, tx_queue_len: u32) -> Self
pub fn rx_queue_len(self, rx_queue_len: u32) -> Self
pub fn mode(self, mode: Mode) -> Self
pub fn alerts(self, alerts: EnumSet<Alert>) -> Self
pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more