Embassy
embassy-stm32

Crates

git

Versions

stm32g4a1re

Flavors

Type Alias embassy_stm32::can::filter::ExtendedFilter

source ·
pub type ExtendedFilter = Filter<ExtendedId, u32>;
Expand description

An Extended Filter

Aliased Type§

struct ExtendedFilter {
    pub filter: FilterType<ExtendedId, u32>,
    pub action: Action,
}

Fields§

§filter: FilterType<ExtendedId, u32>

How to match an incoming message

§action: Action

What to do with a matching message

Implementations§

source§

impl ExtendedFilter

source

pub fn accept_all_into_fifo0() -> ExtendedFilter

Accept all messages in FIFO 0

source

pub fn accept_all_into_fifo1() -> ExtendedFilter

Accept all messages in FIFO 1

source

pub fn reject_all() -> ExtendedFilter

Reject all messages

source

pub fn disable() -> ExtendedFilter

Disable the filter

Trait Implementations§

source§

impl Default for ExtendedFilter

source§

fn default() -> Self

Returns the “default value” for a type. Read more