axiethernet
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xaxiethernet_example.h File Reference
#include "xparameters.h"
#include "xaxiethernet.h"
#include "stdio.h"

Macros

#define XAXIETHERNET_EXAMPLE_H
 XAXIETHERNET EXAMPLE H. More...
 
#define AXIETHERNET_LOOPBACK_SPEED   100
 100Mb/s for Mii. More...
 
#define AXIETHERNET_LOOPBACK_SPEED_1G   1000
 1000Mb/s for GMii. More...
 
#define AXIETHERNET_LOOPBACK_SPEED_2p5G   2500
 2p5G for 2.5G MAC. More...
 
#define AXIETHERNET_PHY_DELAY_SEC   4
 Amount of time to delay waiting on PHY to reset. More...
 
#define MAX_MULTICAST_ADDR   (1<<23)
 Maximum number of multicast Ethernet MAC addresses. More...
 
#define NUM_PACKETS   50
 Number of packets to send in the example. More...
 

Functions

void AxiEthernetUtilSetupUart (void)
 Configures the UART used by the example. More...
 
void AxiEthernetUtilFrameHdrFormatMAC (EthernetFrame *FramePtr, char *DestAddr)
 Formats an Ethernet frame header with the destination MAC address. More...
 
void AxiEthernetUtilFrameHdrFormatType (EthernetFrame *FramePtr, u16 FrameType)
 Formats an Ethernet frame header with the EtherType value. More...
 
void AxiEthernetUtilFrameSetPayloadData (EthernetFrame *FramePtr, int PayloadSize)
 Fills an Ethernet frame payload with test data. More...
 
void AxiEthernetUtilFrameHdrVlanFormatVid (EthernetFrame *FramePtr, u32 VlanNumber, u32 Vid)
 Formats a VLAN Ethernet frame header with the VLAN ID. More...
 
void AxiEthernetUtilFrameHdrVlanFormatType (EthernetFrame *FramePtr, u16 FrameType, u32 VlanNumber)
 Formats a VLAN Ethernet frame header with the EtherType value. More...
 
void AxiEthernetUtilFrameSetVlanPayloadData (EthernetFrame *FramePtr, int PayloadSize, u32 VlanNumber)
 Fills a VLAN Ethernet frame payload with test data. More...
 
int AxiEthernetUtilFrameVerify (EthernetFrame *CheckFrame, EthernetFrame *ActualFrame)
 Verifies that two Ethernet frames contain the same data. More...
 
void AxiEthernetUtilFrameMemClear (EthernetFrame *FramePtr)
 Clears an Ethernet frame buffer. More...
 
int AxiEthernetUtilEnterLoopback (XAxiEthernet *AxiEthernetInstancePtr, int Speed)
 Sets the PHY to loopback mode. More...
 
void AxiEthernetUtilErrorTrap (char *Message)
 Called by example code when an error is detected. More...
 
void AxiEthernetUtilPhyDelay (unsigned int Seconds)
 Delays for the specified number of seconds while PHY hardware recovers. More...
 
int AxiEthernetUtilConfigureInternalPhy (XAxiEthernet *AxiEthernetInstancePtr, int Speed)
 Configures the internal phy for SGMII and 1000baseX modes. More...
 
int AxiEtherentConfigureTIPhy (XAxiEthernet *AxiEthernetInstancePtr, u32 PhyAddr)
 Configures a TI PHY for SGMII operation. More...