/* The function gets the ADCCLK divisor from the Configuration Register 2. */
u8 XAdcPs_GetAdcClkDivisor(XAdcPs *InstancePtr)
/* The function gets the ADCCLK divisor from the Configuration Register 2. */
u8 XAdcPs_GetAdcClkDivisor(XAdcPs *InstancePtr)
{
	u16 Divisor;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Divisor = (u16) XAdcPs_ReadInternalReg(InstancePtr,
					 XADCPS_CFR2_OFFSET);
	return (u8) (Divisor >> XADCPS_CFR2_CD_SHIFT);
}