XilinxProcessorIPLib/drivers/sysmon/src/xsysmon.c
u16 XSysMon_GetOverTemp(XSysMon *InstancePtr)
{
	u16 OtUpper;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/*
	 * Read the OT upper Alarm Threshold Register and return
	 * the value.
	 */
	OtUpper = (u16) XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
					XSM_ATR_OT_UPPER_OFFSET);
	OtUpper >>= XSM_ATR_OT_UPPER_VAL_SHIFT;

	return OtUpper;
}
/****************************************************************************/
/**
*
* This function returns the powerdown temperature of the OverTemp signal in
* the OT Powerdown register.
*
* @param	InstancePtr is a pointer to the XSysMon instance.
*
* @return	A 12-bit OT Upper Alarm Register powerdown value.
*
* @note		This API has been deprecated. Use XSysMon_GetAlarmThreshold(),
*		instead.
*		This API should be used only with V6/7 Series since the
*		upper threshold of OverTemp is programmable in  only V6
*		SysMon/7 Series and Zynq XADC.
*
*****************************************************************************/
This function returns the powerdown temperature of the OverTemp signal in
the OT Powerdown register.
This function returns the powerdown temperature of the OverTemp signal in the OT Powerdown register .
u16 XSysMon_GetOverTemp(XSysMon *InstancePtr)
{
	u16 OtUpper;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	OtUpper = (u16) XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
					XSM_ATR_OT_UPPER_OFFSET);
	OtUpper >>= XSM_ATR_OT_UPPER_VAL_SHIFT;
	return OtUpper;
}
u16 XSysMon_GetOverTemp ( XSysMon * InstancePtr ) { u16 OtUpper ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; OtUpper = ( u16 ) XSysMon_ReadReg ( InstancePtr -> Config . BaseAddress , XSM_ATR_OT_UPPER_OFFSET ) ; OtUpper >>= XSM_ATR_OT_UPPER_VAL_SHIFT ; return OtUpper ; }
This function returns the powerdown temperature of the OverTemp signal in
the OT Powerdown register.
This function returns the powerdown temperature of the OverTemp signal in the OT Powerdown register .
/*
	 * Assert the arguments.
	 */ /*
	 * Read the OT upper Alarm Threshold Register and return
	 * the value.
	 */