uartlite
Xilinx Vitis Drivers API Documentation
xuartlite_l.h File Reference

Macros

#define XUartLite_WriteReg(BaseAddress, RegOffset, Data)   XUartLite_Out32((BaseAddress) + (RegOffset), (u32)(Data))
 Write a value to a UartLite register. More...
 
#define XUartLite_ReadReg(BaseAddress, RegOffset)   XUartLite_In32((BaseAddress) + (RegOffset))
 Read a value from a UartLite register. More...
 
#define XUartLite_SetControlReg(BaseAddress, Mask)   XUartLite_WriteReg((BaseAddress), XUL_CONTROL_REG_OFFSET, (Mask))
 Set the contents of the control register. More...
 
#define XUartLite_GetStatusReg(BaseAddress)   XUartLite_ReadReg((BaseAddress), XUL_STATUS_REG_OFFSET)
 Get the contents of the status register. More...
 
#define XUartLite_IsReceiveEmpty(BaseAddress)
 Check to see if the receiver has data. More...
 
#define XUartLite_IsTransmitFull(BaseAddress)
 Check to see if the transmitter is full. More...
 
#define XUartLite_IsIntrEnabled(BaseAddress)
 Check to see if the interrupt is enabled. More...
 
#define XUartLite_EnableIntr(BaseAddress)   XUartLite_SetControlReg((BaseAddress), XUL_CR_ENABLE_INTR)
 Enable the device interrupt. More...
 
#define XUartLite_DisableIntr(BaseAddress)   XUartLite_SetControlReg((BaseAddress), 0)
 Disable the device interrupt. More...
 

Functions

void XUartLite_SendByte (UINTPTR BaseAddress, u8 Data)
 This functions sends a single byte using the UART. More...
 
u8 XUartLite_RecvByte (UINTPTR BaseAddress)
 This functions receives a single byte using the UART. More...