cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4Discovery CAN filter configuration

jurij
Associate II
Posted on July 24, 2012 at 18:13

Hello!

I need some help with CAN message filtering on STM32F4Discovery board.

1) Can someone explain the difference between Filter_IdList and Filter_IdMask mode? I've read the reference manual, but I don't get it.

2) The second question is connected to the first one. What does each of this functions initialize:

CAN_FilterInitStructure.CAN_FilterIdHigh

CAN_FilterInitStructure.CAN_FilterIdLow

CAN_FilterInitStructure.CAN_FilterMaskIdHigh

CAN_FilterInitStructure.CAN_FilterMaskIdLow

3) Let's say I want to receive only messages with identifier between (including border values) 0x7E8 and 0x7EF. How do I set the filtering?

4) What is the difference between 16bit and 32bit here:

CAN_FilterInitStructure.CAN_FilterScale = CAN_FilterScale_16bit;

CAN_FilterInitStructure.CAN_FilterScale = CAN_FilterScale_32bit;
0 REPLIES 0