Embassy
embassy-stm32

Crates

git

Versions

stm32g473cc

Flavors

Type Alias embassy_stm32::can::filter::StandardFilter

source ·
pub type StandardFilter = Filter<StandardId, u16>;
Expand description

A Standard Filter

Aliased Type§

struct StandardFilter {
    pub filter: FilterType<StandardId, u16>,
    pub action: Action,
}

Fields§

§filter: FilterType<StandardId, u16>

How to match an incoming message

§action: Action

What to do with a matching message

Implementations§

source§

impl StandardFilter

source

pub fn accept_all_into_fifo0() -> StandardFilter

Accept all messages in FIFO 0

source

pub fn accept_all_into_fifo1() -> StandardFilter

Accept all messages in FIFO 1

source

pub fn reject_all() -> StandardFilter

Reject all messages

source

pub fn disable() -> StandardFilter

Disable the filter

Trait Implementations§

source§

impl Default for StandardFilter

source§

fn default() -> Self

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