/* param base MCAN peripheral base address. param config The receive fifo 1 configuration structure.  */
void MCAN_SetRxFifo1Config(CAN_Type *base, const mcan_rx_fifo_config_t *config)
/* param base MCAN peripheral base address. param config The receive fifo 1 configuration structure.  */
void MCAN_SetRxFifo1Config(CAN_Type *base, const mcan_rx_fifo_config_t *config)
{
    base->RXF1C |= CAN_RXF1C_F1SA(config->address >> CAN_RXF1C_F1SA_SHIFT) | CAN_RXF1C_F1S(config->elementSize) |
                   CAN_RXF1C_F1WM(config->watermark) | CAN_RXF1C_F1OM(config->opmode);
    base->RXESC |= CAN_RXESC_F1DS(config->datafieldSize);
}