Trait bxcan::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§
sourceconst NUM_FILTER_BANKS: u8
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.