Struct embassy_stm32::can::filter::Filter
source ยท pub struct Filter<ID, UNIT>{
pub filter: FilterType<ID, UNIT>,
pub action: Action,
}
Expand description
Filter
Fieldsยง
ยงfilter: FilterType<ID, UNIT>
How to match an incoming message
action: Action
What to do with a matching message
Implementationsยง
sourceยงimpl Filter<StandardId, u16>
impl Filter<StandardId, u16>
sourcepub fn accept_all_into_fifo0() -> StandardFilter
pub fn accept_all_into_fifo0() -> StandardFilter
Accept all messages in FIFO 0
sourcepub fn accept_all_into_fifo1() -> StandardFilter
pub fn accept_all_into_fifo1() -> StandardFilter
Accept all messages in FIFO 1
sourcepub fn reject_all() -> StandardFilter
pub fn reject_all() -> StandardFilter
Reject all messages
sourcepub fn disable() -> StandardFilter
pub fn disable() -> StandardFilter
Disable the filter
sourceยงimpl Filter<ExtendedId, u32>
impl Filter<ExtendedId, u32>
sourcepub fn accept_all_into_fifo0() -> ExtendedFilter
pub fn accept_all_into_fifo0() -> ExtendedFilter
Accept all messages in FIFO 0
sourcepub fn accept_all_into_fifo1() -> ExtendedFilter
pub fn accept_all_into_fifo1() -> ExtendedFilter
Accept all messages in FIFO 1
sourcepub fn reject_all() -> ExtendedFilter
pub fn reject_all() -> ExtendedFilter
Reject all messages
sourcepub fn disable() -> ExtendedFilter
pub fn disable() -> ExtendedFilter
Disable the filter
Trait Implementationsยง
impl<ID, UNIT> Copy for Filter<ID, UNIT>
Auto Trait Implementationsยง
impl<ID, UNIT> Freeze for Filter<ID, UNIT>
impl<ID, UNIT> RefUnwindSafe for Filter<ID, UNIT>where
ID: RefUnwindSafe,
UNIT: RefUnwindSafe,
impl<ID, UNIT> Send for Filter<ID, UNIT>
impl<ID, UNIT> Sync for Filter<ID, UNIT>
impl<ID, UNIT> Unpin for Filter<ID, UNIT>
impl<ID, UNIT> UnwindSafe for Filter<ID, UNIT>where
ID: UnwindSafe,
UNIT: UnwindSafe,
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)