/* param base MCAN peripheral base address. param config The MCAN filter configuration. param filter The MCAN standard message ID filter element configuration. param idx The standard message ID filter element index.  */
void MCAN_SetSTDFilterElement(CAN_Type *base, const mcan_frame_filter_config_t *config, const mcan_std_filter_element_config_t *filter, uint8_t idx)
/* param base MCAN peripheral base address. param config The MCAN filter configuration. param filter The MCAN standard message ID filter element configuration. param idx The standard message ID filter element index.  */
void MCAN_SetSTDFilterElement(CAN_Type *base, const mcan_frame_filter_config_t *config, const mcan_std_filter_element_config_t *filter, uint8_t idx)
{
    uint32_t *elementAddress = NULL;
    elementAddress           = (uint32_t *)(MCAN_GetMsgRAMBase(base) + config->address + idx * 4U);
    (void)memcpy((void *)elementAddress, (const void *)filter, sizeof(mcan_std_filter_element_config_t));
}