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