pub struct SingleExtendedFilter { /* private fields */ }
Expand description

Warning: This is not a perfect filter. Standard ids that match the bit layout of this filter will also be accepted.

Implementations§

Create a filter that matches against a single 29-bit extended id.

The filter can match against the packet’s id and the rtr bit.

Examples

A filter matching any odd extended ids, with any rtr value.

const FILTER: twai::filter::SingleExtendedFilter =
    twai::filter::SingleExtendedFilter::new(b"xxxxxxxxxxxxxxxxxxxxxxxxxxxx1", b"x");

The masks indicate which bits of the code the filter should match against. Set bits in the mask indicate that the corresponding bit in the code should match.

Trait Implementations§

The type of the filter.
Get the register level representation of the filter.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.