/* This function returns the contents of the specified Alarm Threshold Register. */
u16 XAdcPs_GetAlarmThreshold(XAdcPs *InstancePtr, u8 AlarmThrReg)
/* This function returns the contents of the specified Alarm Threshold Register. */
u16 XAdcPs_GetAlarmThreshold(XAdcPs *InstancePtr, u8 AlarmThrReg)
{
	u32 RegData;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(AlarmThrReg <= XADCPS_ATR_VCCPDRO_LOWER);
	RegData = XAdcPs_ReadInternalReg(InstancePtr,
					 (XADCPS_ATR_TEMP_UPPER_OFFSET +
					  (u32)AlarmThrReg));
	return (u16) RegData;
}