Struct bxcan::filter::MasterFilters [−][src]
pub struct MasterFilters<'a, I: FilterOwner> { /* fields omitted */ }
Expand description
Interface to the filter banks of a CAN peripheral.
Implementations
impl<I: FilterOwner> MasterFilters<'_, I>
[src]
impl<I: FilterOwner> MasterFilters<'_, I>
[src]pub fn num_banks(&self) -> u8
[src]
pub fn num_banks(&self) -> u8
[src]Returns the number of filter banks currently assigned to this instance.
Chips with splittable filter banks may start out with some banks assigned to the master instance and some assigned to the slave instance.
pub fn clear(&mut self) -> &mut Self
[src]
pub fn clear(&mut self) -> &mut Self
[src]Disables all enabled filter banks.
This causes all incoming frames to be disposed.
pub fn disable_bank(&mut self, index: u8) -> &mut Self
[src]
pub fn disable_bank(&mut self, index: u8) -> &mut Self
[src]Disables a filter bank.
If index
is out of bounds, this will panic.
pub fn enable_bank(
&mut self,
index: u8,
config: impl Into<BankConfig>
) -> &mut Self
[src]
pub fn enable_bank(
&mut self,
index: u8,
config: impl Into<BankConfig>
) -> &mut Self
[src]Configures a filter bank according to config
and enables it.
impl<I: MasterInstance> MasterFilters<'_, I>
[src]
impl<I: MasterInstance> MasterFilters<'_, I>
[src]pub fn set_split(&mut self, split_index: u8) -> &mut Self
[src]
pub fn set_split(&mut self, split_index: u8) -> &mut Self
[src]Sets the index at which the filter banks owned by the slave peripheral start.
pub fn slave_filters(&mut self) -> SlaveFilters<'_, I>
[src]
pub fn slave_filters(&mut self) -> SlaveFilters<'_, I>
[src]Accesses the filters assigned to the slave peripheral.
Trait Implementations
impl<I: FilterOwner> Drop for MasterFilters<'_, I>
[src]
impl<I: FilterOwner> Drop for MasterFilters<'_, I>
[src]Auto Trait Implementations
impl<'a, I> Send for MasterFilters<'a, I> where
I: Send,
I: Send,
impl<'a, I> Sync for MasterFilters<'a, I> where
I: Sync,
I: Sync,