/* Writes a 29-bit extended id filter element in the Message RAM. Size of an Extended Id filter element is 2 words. So 2 words are written into the Message RAM for each filter element.  */
void CANFD_SetXIDFltr(CANFD_T *psCanfd, uint32_t u32FltrIdx, uint32_t u32FilterLow, uint32_t u32FilterHigh)
/* Writes a 29-bit extended id filter element in the Message RAM. Size of an Extended Id filter element is 2 words. So 2 words are written into the Message RAM for each filter element.  */
void CANFD_SetXIDFltr(CANFD_T *psCanfd, uint32_t u32FltrIdx, uint32_t u32FilterLow, uint32_t u32FilterHigh)
{
    CANFD_EXT_FILTER_T *psFilter;
    if (u32FltrIdx >= CANFD_MAX_29_BIT_FTR_ELEMS) return;
    psFilter = (CANFD_EXT_FILTER_T *)(CANFD_SRAM_BASE_ADDR(psCanfd) + (psCanfd->XIDFC & CANFD_XIDFC_FLESA_Msk) + (u32FltrIdx * sizeof(CANFD_EXT_FILTER_T)));
    psFilter->LOWVALUE = u32FilterLow;
    psFilter->HIGHVALUE = u32FilterHigh;
}