Understanding the CAN filters

帅比萌擦擦* 提交于 2019-12-14 04:09:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!