XilinxProcessorIPLib/drivers/sysmonpsu/src/xsysmonpsu.c
u32 XSysMonPsu_GetMonitorStatus(XSysMonPsu *InstancePtr)
{
	u32 AMSMonStatusReg;

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

	/*
	 * Read the AMS monitor status. This gives tells about JTAG Locked / ADC
	 * busy / ADC Current Channel number and its ADC output.
	 */
	AMSMonStatusReg = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_MON_STS_OFFSET);

	return AMSMonStatusReg;
}
/****************************************************************************/
/**
*
* This function gets the AMS monitor status.
*
* @param	InstancePtr is a pointer to the XSysMonPsu instance.
*
* @return	Returns the monitor status. See XSYSMONPSU_MON_STS_*_MASK
* 		definations present in xsysmonpsu_hw.h for knowing the status.
*
* @note		None
*
*****************************************************************************/
This function gets the AMS monitor status.
This function gets the AMS monitor status .
u32 XSysMonPsu_GetMonitorStatus(XSysMonPsu *InstancePtr)
{
	u32 AMSMonStatusReg;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	AMSMonStatusReg = XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
			XSYSMONPSU_MON_STS_OFFSET);
	return AMSMonStatusReg;
}
u32 XSysMonPsu_GetMonitorStatus ( XSysMonPsu * InstancePtr ) { u32 AMSMonStatusReg ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; AMSMonStatusReg = XSysmonPsu_ReadReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_MON_STS_OFFSET ) ; return AMSMonStatusReg ; }
This function gets the AMS monitor status.
This function gets the AMS monitor status .
/* Assert the arguments. */ /*
	 * Read the AMS monitor status. This gives tells about JTAG Locked / ADC
	 * busy / ADC Current Channel number and its ADC output.
	 */