/* Returns the currently-set options related to reception of VLAN-tagged frames. */
uint32_t EMACVLANRxConfigGet(uint32_t ui32Base, uint16_t *pui16Tag)
/* Returns the currently-set options related to reception of VLAN-tagged frames. */
uint32_t EMACVLANRxConfigGet(uint32_t ui32Base, uint16_t *pui16Tag)
{
    uint32_t ui32Value;
    ASSERT(ui32Base == EMAC0_BASE);
    ASSERT(pui16Tag);
    ui32Value = HWREG(ui32Base + EMAC_O_VLANTG);
    *pui16Tag = (ui32Value & EMAC_VLANTG_VL_M) >> EMAC_VLANTG_VL_S;
    return (ui32Value & ~EMAC_VLANTG_VL_M);
}