pub struct Properties { /* private fields */ }
Expand description
Common driver properties, including filters and error counters
Implementations§
source§impl Properties
impl Properties
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 Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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