embassy-stm32

Crates

git

Versions

stm32f413rh

Flavors

embassy_stm32::can

Trait FilterOwner

Source
pub unsafe trait FilterOwner: Instance {
    const NUM_FILTER_BANKS: u8;
}
Expand description

A bxCAN instance that owns filter banks.

In master-slave-instance setups, only the master instance owns the filter banks, and needs to split some of them off for use by the slave instance. In that case, the master instance should implement FilterOwner and MasterInstance, while the slave instance should only implement Instance.

In single-instance configurations, the instance owns all filter banks and they can not be split off. In that case, the instance should implement Instance and FilterOwner.

§Safety

This trait must only be implemented if the instance does, in fact, own its associated filter banks, and NUM_FILTER_BANKS must be correct.

Required Associated Constants§

Source

const NUM_FILTER_BANKS: u8

The total number of filter banks available to the instance.

This is usually either 14 or 28, and should be specified in the chip’s reference manual or datasheet.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§