Struct embassy_stm32::can::Properties
source · pub struct Properties<T> { /* private fields */ }
Expand description
Common driver properties, including filters and error counters
Implementations§
source§impl<T: Instance> Properties<T>
impl<T: Instance> Properties<T>
sourcepub fn set_standard_filter(
&self,
slot: StandardFilterSlot,
filter: StandardFilter
)
pub fn set_standard_filter( &self, slot: StandardFilterSlot, filter: StandardFilter )
Set a standard address CAN filter in the specified slot in FDCAN memory.
sourcepub fn set_standard_filters(&self, filters: &[StandardFilter; 28])
pub fn set_standard_filters(&self, filters: &[StandardFilter; 28])
Set the full array of standard address CAN filters in FDCAN memory. Overwrites all standard address filters in memory.
sourcepub fn set_extended_filter(
&self,
slot: ExtendedFilterSlot,
filter: ExtendedFilter
)
pub fn set_extended_filter( &self, slot: ExtendedFilterSlot, filter: ExtendedFilter )
Set an extended address CAN filter in the specified slot in FDCAN memory.
sourcepub fn set_extended_filters(&self, filters: &[ExtendedFilter; 8])
pub fn set_extended_filters(&self, filters: &[ExtendedFilter; 8])
Set the full array of extended address CAN filters in FDCAN memory. Overwrites all extended address filters in memory.
sourcepub fn rx_error_count(&self) -> u8
pub fn rx_error_count(&self) -> u8
Get the CAN RX error counter
sourcepub fn tx_error_count(&self) -> u8
pub fn tx_error_count(&self) -> u8
Get the CAN TX error counter
sourcepub fn bus_error_mode(&self) -> BusErrorMode
pub fn bus_error_mode(&self) -> BusErrorMode
Get the current bus error mode
Auto Trait Implementations§
impl<T> Freeze for Properties<T>
impl<T> RefUnwindSafe for Properties<T>where
T: RefUnwindSafe,
impl<T> !Send for Properties<T>
impl<T> !Sync for Properties<T>
impl<T> Unpin for Properties<T>
impl<T> UnwindSafe for Properties<T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more