emaclite
Vitis Drivers API Documentation
xemaclite.c File Reference

Functions

int XEmacLite_CfgInitialize (XEmacLite *InstancePtr, XEmacLite_Config *EmacLiteConfigPtr, UINTPTR EffectiveAddr)
 Initialize a specific XEmacLite instance/driver. More...
 
int XEmacLite_Send (XEmacLite *InstancePtr, u8 *FramePtr, unsigned ByteCount)
 Send an Ethernet frame. More...
 
u16 XEmacLite_Recv (XEmacLite *InstancePtr, u8 *FramePtr)
 Receive a frame. More...
 
void XEmacLite_SetMacAddress (XEmacLite *InstancePtr, u8 *AddressPtr)
 Set the MAC address for this device. More...
 
void StubHandler (void *CallBackRef)
 This is a stub for the send and receive callbacks. More...
 
int XEmacLite_TxBufferAvailable (XEmacLite *InstancePtr)
 Determine if there is a transmit buffer available. More...
 
void XEmacLite_FlushReceive (XEmacLite *InstancePtr)
 Flush the Receive buffers. More...
 
int XEmacLite_PhyRead (XEmacLite *InstancePtr, u32 PhyAddress, u32 RegNum, u16 *PhyDataPtr)
 Read the specified PHY register. More...
 
int XEmacLite_PhyWrite (XEmacLite *InstancePtr, u32 PhyAddress, u32 RegNum, u16 PhyData)
 Write the given data to the specified register in the PHY device. More...
 
void XEmacLite_EnableLoopBack (XEmacLite *InstancePtr)
 Enable Internal loop back functionality. More...
 
void XEmacLite_DisableLoopBack (XEmacLite *InstancePtr)
 Disable Internal loop back functionality. More...