问题
I am unable to understand the CAN filter configuration for the stm32f4-discovery.
CAN_FilterInitStructure.CAN_FilterNumber = 0;
CAN_FilterInitStructure.CAN_FilterMode = CAN_FilterMode_IdMask;
CAN_FilterInitStructure.CAN_FilterScale = CAN_FilterScale_32bit;
CAN_FilterInitStructure.CAN_FilterIdHigh = 0x0000;
CAN_FilterInitStructure.CAN_FilterIdLow = 0x0000;
CAN_FilterInitStructure.CAN_FilterMaskIdHigh = 0x0000;
CAN_FilterInitStructure.CAN_FilterMaskIdLow = 0x0000;
CAN_FilterInitStructure.CAN_FilterFIFOAssignment = 0;
CAN_FilterInitStructure.CAN_FilterActivation = ENABLE;
CAN_FilterInit(&CAN_FilterInitStructure);
could some one explain to me how this works? or is it documented in any place? I am unable to find it.
回答1:
As far as documentation goes:
Reference Manual, section 32 bxCAN
Std Peripheral Lib for F4, has a compiled version of the doxygen documentaion as CHM (stm32f4xx_dsp_stdperiph_lib_um.chm) in the zip file.
来源:https://stackoverflow.com/questions/21363197/understanding-the-can-filters