pub trait Filter {
const FILTER_TYPE: FilterType;
// Required method
fn to_registers(&self) -> [u8; 8];
// Provided method
fn filter_type(&self) -> FilterType { ... }
}Available on crate feature
unstable only.Expand description
Interface for interacting with Acceptance Filters.
The Acceptance Filter is a programmable message filtering unit that allows the TWAI controller to accept or reject a received message based on the message’s ID field.
Only accepted messages will be stored in the Receive FIFO.
The Acceptance Filter’s registers can be programmed to specify a single filter, or two separate filters (dual filter mode).
Required Associated Constants§
Sourceconst FILTER_TYPE: FilterType
const FILTER_TYPE: FilterType
The type of the filter.
Required Methods§
Sourcefn to_registers(&self) -> [u8; 8]
fn to_registers(&self) -> [u8; 8]
Get the register level representation of the filter.
Provided Methods§
Sourcefn filter_type(&self) -> FilterType
fn filter_type(&self) -> FilterType
Returns filter type.
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.