/* Writes a 11-bit Standard ID filter element in the Message RAM.  */
void CANFD_SetSIDFltr(CANFD_T *psCanfd, uint32_t u32FltrIdx, uint32_t u32Filter)
/* Writes a 11-bit Standard ID filter element in the Message RAM.  */
void CANFD_SetSIDFltr(CANFD_T *psCanfd, uint32_t u32FltrIdx, uint32_t u32Filter)
{
    CANFD_STD_FILTER_T *psFilter;
    if (u32FltrIdx >= CANFD_MAX_11_BIT_FTR_ELEMS) return;
    psFilter = (CANFD_STD_FILTER_T *)(CANFD_SRAM_BASE_ADDR(psCanfd) + (psCanfd->SIDFC & CANFD_SIDFC_FLSSA_Msk) + (u32FltrIdx * sizeof(CANFD_STD_FILTER_T)));
    psFilter->VALUE = u32Filter;
}