/* This function is used for writing to XADC Registers using the command FIFO. */
void XAdcPs_WriteInternalReg(XAdcPs *InstancePtr, u32 RegOffset, u32 Data)
/* This function is used for writing to XADC Registers using the command FIFO. */
void XAdcPs_WriteInternalReg(XAdcPs *InstancePtr, u32 RegOffset, u32 Data)
{
	u32 RegData;
	RegData = (XADCPS_JTAG_CMD_WRITE_MASK) |
		((RegOffset << XADCPS_JTAG_ADDR_SHIFT) & XADCPS_JTAG_ADDR_MASK) |
		(Data & XADCPS_JTAG_DATA_MASK);
	XAdcPs_WriteFifo(InstancePtr, RegData);
	XAdcPs_ReadFifo(InstancePtr);
}