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]

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]

Disables all enabled filter banks.

This causes all incoming frames to be disposed.

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]

Configures a filter bank according to config and enables it.

impl<I: MasterInstance> MasterFilters<'_, I>[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]

Accesses the filters assigned to the slave peripheral.

Trait Implementations

impl<I: FilterOwner> Drop for MasterFilters<'_, I>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, I> Send for MasterFilters<'a, I> where
    I: Send

impl<'a, I> Sync for MasterFilters<'a, I> where
    I: Sync

impl<'a, I> Unpin for MasterFilters<'a, I>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.