[−][src]Struct stm32f3xx_hal_v2::can::CanFilter
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]
pub fn clone(&self) -> CanFilter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,