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§
- Dual
Extended Filter - Warning: This is not a perfect filter. Standard IDs that match the bit layout of this filter will also be accepted.
- Dual
Standard Filter - A filter that matches against two standard 11-bit standard IDs.
- Single
Extended Filter - Warning: This is not a perfect filter. Standard IDs that match the bit layout of this filter will also be accepted.
- Single
Standard Filter - A filter that matches against a single 11 bit id, the RTR bit, and the first two bytes of the payload.
Enums§
- Filter
Type - 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.