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

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

	/*
	 * Read the OT upper Alarm Threshold Register.
	 */
	OtUpper = XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				  XSM_ATR_OT_UPPER_OFFSET);
	OtUpper &= ~(XSM_ATR_OT_UPPER_ENB_MASK);

	/*
	 * Preserve the powerdown value and write OT enable value the into the
	 * OT Upper Alarm Threshold Register.
	 */
	OtUpper |= XSM_ATR_OT_UPPER_ENB_VAL;
	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_ATR_OT_UPPER_OFFSET, OtUpper);
}
/****************************************************************************/
/**
*
* This function enables programming of the powerdown temperature for the
* OverTemp signal in the OT Powerdown register.
*
* @param	InstancePtr is a pointer to the XSysMon instance.
*
* @return	None.
*
* @note		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 enables programming of the powerdown temperature for the
OverTemp signal in the OT Powerdown register.
This function enables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register .
void XSysMon_EnableUserOverTemp(XSysMon *InstancePtr)
{
	u16 OtUpper;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	OtUpper = XSysMon_ReadReg(InstancePtr->Config.BaseAddress,
				  XSM_ATR_OT_UPPER_OFFSET);
	OtUpper &= ~(XSM_ATR_OT_UPPER_ENB_MASK);
	OtUpper |= XSM_ATR_OT_UPPER_ENB_VAL;
	XSysMon_WriteReg(InstancePtr->Config.BaseAddress,
			 XSM_ATR_OT_UPPER_OFFSET, OtUpper);
}
void XSysMon_EnableUserOverTemp ( XSysMon * InstancePtr ) { u16 OtUpper ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; OtUpper = XSysMon_ReadReg ( InstancePtr -> Config . BaseAddress , XSM_ATR_OT_UPPER_OFFSET ) ; OtUpper &= ~ ( XSM_ATR_OT_UPPER_ENB_MASK ) ; OtUpper |= XSM_ATR_OT_UPPER_ENB_VAL ; XSysMon_WriteReg ( InstancePtr -> Config . BaseAddress , XSM_ATR_OT_UPPER_OFFSET , OtUpper ) ; }
This function enables programming of the powerdown temperature for the
OverTemp signal in the OT Powerdown register.
This function enables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register .
/*
	 * Assert the arguments.
	 */ /*
	 * Read the OT upper Alarm Threshold Register.
	 */ /*
	 * Preserve the powerdown value and write OT enable value the into the
	 * OT Upper Alarm Threshold Register.
	 */