llfifo
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xllfifo.h File Reference
#include "xstreamer.h"
#include "xllfifo_hw.h"

Data Structures

struct  XLlFifo
 Defines the XLlFifo driver instance. More...
 
struct  XLlFifo_Config
 Defines the XLlFifo hardware configuration. More...
 

Macros

#define XLlFifo_Reset(InstancePtr)
 Resets both FIFO channels and the local-link interface. More...
 
#define XLlFifo_Status(InstancePtr)   XLlFifo_ReadReg((InstancePtr)->BaseAddress, XLLF_ISR_OFFSET)
 Returns the FIFO interrupt status mask. More...
 
#define XLlFifo_IntEnable(InstancePtr, Mask)
 Enables selected FIFO interrupts. More...
 
#define XLlFifo_IntDisable(InstancePtr, Mask)
 Disables selected FIFO interrupts. More...
 
#define XLlFifo_IntPending(InstancePtr)
 Returns the pending FIFO interrupt mask. More...
 
#define XLlFifo_IntClear(InstancePtr, Mask)
 Clears selected pending FIFO interrupts. More...
 
#define XLlFifo_RxReset(InstancePtr)
 Resets the FIFO receive channel. More...
 
#define XLlFifo_IsRxEmpty(InstancePtr)
 Reports whether the receive channel is empty. More...
 
#define XLlFifo_RxOccupancy(InstancePtr)   XStrm_RxOccupancy(&((InstancePtr)->RxStreamer))
 Returns receive occupancy in 32-bit words. More...
 
#define XLlFifo_RxGetLen(InstancePtr)   XStrm_RxGetLen(&((InstancePtr)->RxStreamer))
 Returns the next receive frame length in bytes. More...
 
#define XLlFifo_Read(InstancePtr, BufPtr, Bytes)   XStrm_Read(&((InstancePtr)->RxStreamer), (BufPtr), (Bytes))
 Reads bytes from the FIFO receive channel. More...
 
#define XLlFifo_TxReset(InstancePtr)
 Resets the FIFO transmit channel. More...
 
#define XLlFifo_IsTxDone(InstancePtr)
 Reports whether transmit is complete. More...
 
#define XLlFifo_IsRxDone(InstancePtr)
 Reports whether receive is complete. More...
 
#define XLlFifo_TxVacancy(InstancePtr)   XStrm_TxVacancy(&((InstancePtr)->TxStreamer))
 Returns transmit vacancy in 32-bit words. More...
 
#define XLlFifo_TxSetLen(InstancePtr, Bytes)   XStrm_TxSetLen(&((InstancePtr)->TxStreamer), (Bytes))
 Starts a transmit of the given byte length. More...
 
#define XLlFifo_Write(InstancePtr, BufPtr, Bytes)   XStrm_Write(&((InstancePtr)->TxStreamer), (BufPtr), (Bytes))
 Writes bytes to the FIFO transmit channel. More...
 
#define XLlFifo_WriteTdr(InstancePtr, Tdest)
 Writes the transmit destination address. More...
 
#define XLlFifo_ReadRdr(InstancePtr)   XLlFifo_ReadReg((InstancePtr)->BaseAddress, XLLF_RDR_OFFSET)
 Reads the receive destination address. More...
 

Typedefs

typedef struct XLlFifo XLlFifo
 Defines the XLlFifo driver instance. More...
 
typedef struct XLlFifo_Config XLlFifo_Config
 Defines the XLlFifo hardware configuration. More...
 

Functions

int XLlFifo_CfgInitialize (XLlFifo *InstancePtr, XLlFifo_Config *Config, UINTPTR EffectiveAddress)
 Initializes the XLlFifo driver from a config. More...
 
void XLlFifo_Initialize (XLlFifo *InstancePtr, UINTPTR BaseAddress)
 Initializes the XLlFifo driver from a base address. More...
 
XLlFifo_Config * XLlFfio_LookupConfig (UINTPTR BaseAddress)
 Looks up the XLlFifo configuration. More...
 
u32 XLlFifo_iRxOccupancy (XLlFifo *InstancePtr)
 Returns receive occupancy in 32-bit words. More...
 
u32 XLlFifo_iRxGetLen (XLlFifo *InstancePtr)
 Returns the next receive frame length in bytes. More...
 
u32 XLlFifo_iTxVacancy (XLlFifo *InstancePtr)
 Returns transmit vacancy in 32-bit words. More...
 
void XLlFifo_iTxSetLen (XLlFifo *InstancePtr, u32 Bytes)
 Starts a transmit of the given byte length. More...
 
u32 XLlFifo_RxGetWord (XLlFifo *InstancePtr)
 Reads one 32-bit word from the receive FIFO. More...
 
void XLlFifo_TxPutWord (XLlFifo *InstancePtr, u32 Word)
 Writes one 32-bit word to the transmit FIFO. More...