/* This function is used for reading from the XADC Registers using the Data FIFO. */
u32 XAdcPs_ReadInternalReg(XAdcPs *InstancePtr, u32 RegOffset)
/* This function is used for reading from the XADC Registers using the Data FIFO. */
u32 XAdcPs_ReadInternalReg(XAdcPs *InstancePtr, u32 RegOffset)
{
	u32 RegData;
	RegData = (XADCPS_JTAG_CMD_READ_MASK) |
		((RegOffset << XADCPS_JTAG_ADDR_SHIFT) & XADCPS_JTAG_ADDR_MASK);
	XAdcPs_WriteFifo(InstancePtr, RegData);
	RegData = XAdcPs_ReadFifo(InstancePtr);
	XAdcPs_WriteFifo(InstancePtr, RegData);
	RegData = XAdcPs_ReadFifo(InstancePtr);
	return RegData;
}
/** @}