Module filter

Source
Available on crate feature unstable only.
Expand description

Two-wire Automotive Interface (TWAI) Filters

§Overview

The TWAI controller contains a hardware acceptance filter which can be used to filter messages of a particular ID. A node that filters out a message does not receive the message, but will still acknowledge it. Acceptance filters can make a node more efficient by filtering out messages sent over the bus that are irrelevant to the node.

§Configuration

The acceptance filters are configured using two 32-bit values known as the acceptance code and the acceptance mask.

Structs§

DualExtendedFilter
Warning: This is not a perfect filter. Standard IDs that match the bit layout of this filter will also be accepted.
DualStandardFilter
A filter that matches against two standard 11-bit standard IDs.
SingleExtendedFilter
Warning: This is not a perfect filter. Standard IDs that match the bit layout of this filter will also be accepted.
SingleStandardFilter
A filter that matches against a single 11 bit id, the RTR bit, and the first two bytes of the payload.

Enums§

FilterType
Represents the type of filtering to be applied to incoming TWAI frames.

Traits§

Filter
Interface for interacting with Acceptance Filters.

Type Aliases§

BitFilter
A type representing the bitmask used to filter incoming TWAI frames.