XilinxProcessorIPLib/drivers/axiethernet/examples/avb/xavb.c
void XAvb_SetupRxFilterControlMatchMode(XAvb * InstancePtr,
                                        u32    VlanMatchMode) {
  u32 LocalData = 0;

  LocalData = XAvb_ReadReg(InstancePtr->Config.BaseAddress,
                           XAVB_RX_FILTER_CONTROL);

  LocalData = LocalData | (VlanMatchMode & XAVB_RX_AV_VLAN_MATCH_MODE_MASK);

  XAvb_WriteReg(InstancePtr->Config.BaseAddress,
                XAVB_RX_FILTER_CONTROL,
                LocalData);
}
/****************************************************************************/
/**
*
* A function to set the VLAN Match Mode field for the RX Filtering Control
* Register - such that AV traffic is correctly filtered by the RX Splitter.
*
* @param  InstancePtr is a pointer to the XAvb instance to be worked on
*
* @param  VlanMatchMode contains the 1-bit value to be written to the register
*         in the correct bit position as defined in the address map
*
* @return None.
*
* @note   None.
*
*****************************************************************************/
A function to set the VLAN Match Mode field for the RX Filtering Control
Register - such that AV traffic is correctly filtered by the RX Splitter.
A function to set the VLAN Match Mode field for the RX Filtering Control Register - such that AV traffic is correctly filtered by the RX Splitter .
void XAvb_SetupRxFilterControlMatchMode(XAvb * InstancePtr,
                                        u32    VlanMatchMode) {
  u32 LocalData = 0;
  LocalData = XAvb_ReadReg(InstancePtr->Config.BaseAddress,
                           XAVB_RX_FILTER_CONTROL);
  LocalData = LocalData | (VlanMatchMode & XAVB_RX_AV_VLAN_MATCH_MODE_MASK);
  XAvb_WriteReg(InstancePtr->Config.BaseAddress,
                XAVB_RX_FILTER_CONTROL,
                LocalData);
}
void XAvb_SetupRxFilterControlMatchMode ( XAvb * InstancePtr , u32 VlanMatchMode ) { u32 LocalData = 0 ; LocalData = XAvb_ReadReg ( InstancePtr -> Config . BaseAddress , XAVB_RX_FILTER_CONTROL ) ; LocalData = LocalData | ( VlanMatchMode & XAVB_RX_AV_VLAN_MATCH_MODE_MASK ) ; XAvb_WriteReg ( InstancePtr -> Config . BaseAddress , XAVB_RX_FILTER_CONTROL , LocalData ) ; }
A function to set the VLAN Match Mode field for the RX Filtering Control
Register - such that AV traffic is correctly filtered by the RX Splitter.
A function to set the VLAN Match Mode field for the RX Filtering Control Register - such that AV traffic is correctly filtered by the RX Splitter .