GD32VF103 User Manual
435
Filter number
Each filter within a filter bank is numbered from 0 to a maximum dependent on the mode and
the scale of each of the filter banks.
For example, there are two filter banks. Bank 0 is configured as 32-bit mask mode. Bank 1 is
configured as 32-bit list mode. The filter number is shown in Table 20-1. 32-bit filter number.
Table 20-1. 32-bit filter number
Associated FIFO
28 banks can be associated with FIFO0 or FIFO1. If the bank is associated with FIFO0, the
frames passed through the bank will fill the FIFO0.
Active
The filter bank needs to be configured activation if the application wants the bank working
and while filters not used by the application should be left deactivated.
Filtering index
Each filter number corresponds to a filtering rule. When the frame from the CAN bus passes
the filters, a filter number must associate with the frame. The filter number is called filtering
index. It stores in the FI bits in CAN_RFIFOMPx when the frame is read by the application.
Each FIFO numbers the filters within the banks associated with the FIFO itself whether the
bank is active or not.
The example about filtering index is shown in Table 20-2. Filtering index.
Table 20-2. Filtering index
F2DATA0[31:16]-16bit-Mask
F2DATA1[31:16]-16bit-Mask
F3DATA0[31:16]-16bit-
Mask