[][src]Struct stm32f3xx_hal_v2::can::CanFilter

pub struct CanFilter { /* fields omitted */ }

CAN Filter type

Used to specify the filter behavior

Implementations

impl CanFilter[src]

pub fn new(data: CanFilterData) -> CanFilter[src]

Create a new filter with no assigned index.

To actually active the filter call Receiver::set_filter, which will assign an index.

pub fn new_with_index(index: u8, data: CanFilterData) -> CanFilter[src]

Create a new filter with a specified filter index.

Trait Implementations

impl Clone for CanFilter[src]

impl Copy for CanFilter[src]

impl Debug for CanFilter[src]

impl Eq for CanFilter[src]

impl Filter for CanFilter[src]

type Id = CanId

The Id type this filter works on

pub fn from_id(id: Self::Id) -> Self[src]

Construct a filter which filters messages for a specific identified

pub fn accept_all() -> Self[src]

Construct an "empty" filter which will accept all messages

pub fn from_mask(mask: u32, filter: u32) -> Self[src]

Constuct a mask filter. This method accepts two parameters, the mask which designates which bits are actually matched againts and the filter, with the actual bits to match.

impl PartialEq<CanFilter> for CanFilter[src]

impl StructuralEq for CanFilter[src]

impl StructuralPartialEq for CanFilter[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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.