我无法理解stm32f4-discovery的CAN过滤器配置。
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);
有人可以向我解释这是如何运作的吗?或者是否在任何地方记录?我无法找到它。
答案 0 :(得分:2)
就文件而言:
Reference Manual,第32节bxCAN
Std Peripheral Lib for F4,在zip文件中将doxygen文档的编译版本作为CHM(stm32f4xx_dsp_stdperiph_lib_um.chm)。