• Welcome to Andy's Workshop Forums. Please login or sign up.
 
August 10, 2020, 02:18:16 am

News:

SMF - Just Installed!


Help to change the Can filter parameter

Started by dientl, March 05, 2020, 08:41:52 pm

Previous topic - Next topic

dientl

Dear all,
After we declare a can and use with below information for filter ability:
void initialise() {

      CAN_FilterInitTypeDef CANFilterInitStruct;

      CANFilterInitStruct.CAN_FilterNumber=0;
      CANFilterInitStruct.CAN_FilterMode=CAN_FilterMode_IdMask;
      CANFilterInitStruct.CAN_FilterScale=CAN_FilterScale_32bit;
      CANFilterInitStruct.CAN_FilterIdHigh=0x0000;
      CANFilterInitStruct.CAN_FilterIdLow=0x0000;
      CANFilterInitStruct.CAN_FilterMaskIdHigh=0x0000;
      CANFilterInitStruct.CAN_FilterMaskIdLow=0x0000;
      CANFilterInitStruct.CAN_FilterFIFOAssignment=0;
      CANFilterInitStruct.CAN_FilterActivation=ENABLE;

      CAN_FilterInit(&CANFilterInitStruct);
     }
 Could you please show with me how to change these parameters in case we need?

Thanks so much

Regards,
Ken