/* param base MCAN peripheral base address. param config The receive fifo 0 configuration structure.  */
void MCAN_SetRxFifo0Config(CAN_Type *base, const mcan_rx_fifo_config_t *config)
/* param base MCAN peripheral base address. param config The receive fifo 0 configuration structure.  */
void MCAN_SetRxFifo0Config(CAN_Type *base, const mcan_rx_fifo_config_t *config)
{
    base->RXF0C |= CAN_RXF0C_F0SA(config->address >> CAN_RXF0C_F0SA_SHIFT) | CAN_RXF0C_F0S(config->elementSize) |
                   CAN_RXF0C_F0WM(config->watermark) | CAN_RXF0C_F0OM(config->opmode);
    base->RXESC |= CAN_RXESC_F0DS(config->datafieldSize);
}