emaclite
Vitis Drivers API Documentation
xemaclite.h File Reference

Data Structures

struct  XEmacLite_Config
 This typedef contains configuration information for a device. More...
 
struct  XEmacLite
 The XEmacLite driver instance data. More...
 

Macros

#define XEmacLite_NextTransmitAddr(InstancePtr)
 Return the next expected Transmit Buffer's address. More...
 
#define XEmacLite_NextReceiveAddr(InstancePtr)
 Return the next expected Receive Buffer's address. More...
 
#define XEmacLite_IsMdioConfigured(InstancePtr)   ((InstancePtr)->EmacLiteConfig.MdioInclude == 1)
 This macro determines if the device is currently configured for MDIO. More...
 
#define XEmacLite_IsLoopbackConfigured(InstancePtr)   ((InstancePtr)->EmacLiteConfig.Loopback == 1)
 This macro determines if the device is currently configured for internal loopback. More...
 

Functions

int XEmacLite_CfgInitialize (XEmacLite *InstancePtr, XEmacLite_Config *EmacLiteConfigPtr, UINTPTR EffectiveAddr)
 Initialize a specific XEmacLite instance/driver. More...
 
void XEmacLite_SetMacAddress (XEmacLite *InstancePtr, u8 *AddressPtr)
 Set the MAC address for this device. 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_Send (XEmacLite *InstancePtr, u8 *FramePtr, unsigned ByteCount)
 Send an Ethernet frame. More...
 
u16 XEmacLite_Recv (XEmacLite *InstancePtr, u8 *FramePtr)
 Receive a frame. 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...
 
XEmacLite_ConfigXEmacLite_LookupConfig (u16 DeviceId)
 Lookup the device configuration based on the unique device ID. More...
 
int XEmacLite_Initialize (XEmacLite *InstancePtr, u16 DeviceId)
 Initialize a specific XEmacLite instance/driver. More...
 
int XEmacLite_EnableInterrupts (XEmacLite *InstancePtr)
 Enable the EmacLite Interrupts. More...
 
void XEmacLite_DisableInterrupts (XEmacLite *InstancePtr)
 Disables the interrupts from the device (the higher layer software is responsible for disabling interrupts at the interrupt controller). More...
 
void XEmacLite_InterruptHandler (void *InstancePtr)
 Interrupt handler for the EmacLite driver. More...
 
void XEmacLite_SetRecvHandler (XEmacLite *InstancePtr, void *CallBackRef, XEmacLite_Handler FuncPtr)
 Sets the callback function for handling received frames in interrupt mode. More...
 
void XEmacLite_SetSendHandler (XEmacLite *InstancePtr, void *CallBackRef, XEmacLite_Handler FuncPtr)
 Sets the callback function for handling transmitted frames in interrupt mode. More...
 
int XEmacLite_SelfTest (XEmacLite *InstancePtr)
 Performs a SelfTest on the EmacLite device as follows: More...