AnsweredAssumed Answered

STM32F303xC CAN configuration.

Question asked by Vycas.Arturas.001 on Jun 20, 2014
Latest reply on Jun 27, 2014 by Vycas.Arturas.001
Hello everyone, i am trying to implement CAN on my application. It is the first time i am dealing with it. I've read a lot about protocol itself, and looked through a lot of examples which are posted in this forum. This is a piece of code which i copied from one topic. 

  //================================================================
  CAN_Filter_InitStructure.CAN_FilterIdHigh = 0x0000; // ?
  CAN_Filter_InitStructure.CAN_FilterIdLow = 0x0000; // ?
  CAN_Filter_InitStructure.CAN_FilterMaskIdHigh = 0x0000; // ?
  CAN_Filter_InitStructure.CAN_FilterMaskIdLow = 0x0000; // ?
  CAN_Filter_InitStructure.CAN_FilterFIFOAssignment = CAN_Filter_FIFO0; // ?
  CAN_Filter_InitStructure.CAN_FilterNumber = 0; // ?
  CAN_Filter_InitStructure.CAN_FilterMode = CAN_FilterMode_IdMask; // ?
  CAN_Filter_InitStructure.CAN_FilterScale = CAN_FilterScale_32bit; // ?
  CAN_Filter_InitStructure.CAN_FilterActivation = ENABLE; 
  
  CAN_FilterInit(&CAN_Filter_InitStructure); // Write values to the registers
  //================================================================

However, i can't find in any documentation which woul have these commands explained. I know this configuration works. But to be honest, i don't understand why it is configured like this and what would change, changing values of this structure. So if anyone could point me to some literature which would be explaining how to understand these commands, or if anyone could explain how to understant every line in this configuration, i would be trully grateful.

Outcomes