XilinxProcessorIPLib/drivers/sysmonpsu/src/xsysmonpsu_intr.c
u64 XSysMonPsu_IntrGetStatus(XSysMonPsu *InstancePtr)
{
	u64 IntrStatusRegister;

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

	/* Return the value read from the AMS ISR. */
	IntrStatusRegister = (u64)XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
                           XSYSMONPSU_ISR_0_OFFSET) & (u64)XSYSMONPSU_IXR_0_MASK;
	IntrStatusRegister |= ((u64)XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
                           XSYSMONPSU_ISR_1_OFFSET) & (u64)XSYSMONPSU_IXR_1_MASK)
                           << XSYSMONPSU_IXR_1_SHIFT;

	return IntrStatusRegister;
}
/****************************************************************************/
/**
*
* This function returns the interrupt status read from Interrupt Status
* Register(ISR). Use the XSYSMONPSU_ISR_0_* and XSYSMONPSU_ISR_1_ constants
* defined in xsysmonpsu_hw.h to interpret the returned value.
*
* @param	InstancePtr is a pointer to the XSysMonPsu instance.
*
* @return	A 64-bit value representing the contents of the Interrupt Status
* 			Registers (ISR1 ISR0).
*
* @note		None.
*
*****************************************************************************/
This function returns the interrupt status read from Interrupt Status
Register(ISR). Use the XSYSMONPSU_ISR_0_* and XSYSMONPSU_ISR_1_ constants
defined in xsysmonpsu_hw.h to interpret the returned value.
This function returns the interrupt status read from Interrupt Status Register ( ISR ) . Use the XSYSMONPSU_ISR_0_ * and XSYSMONPSU_ISR_1_ constants defined in xsysmonpsu_hw . h to interpret the returned value .
u64 XSysMonPsu_IntrGetStatus(XSysMonPsu *InstancePtr)
{
	u64 IntrStatusRegister;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	IntrStatusRegister = (u64)XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
                           XSYSMONPSU_ISR_0_OFFSET) & (u64)XSYSMONPSU_IXR_0_MASK;
	IntrStatusRegister |= ((u64)XSysmonPsu_ReadReg(InstancePtr->Config.BaseAddress +
                           XSYSMONPSU_ISR_1_OFFSET) & (u64)XSYSMONPSU_IXR_1_MASK)
                           << XSYSMONPSU_IXR_1_SHIFT;
	return IntrStatusRegister;
}
u64 XSysMonPsu_IntrGetStatus ( XSysMonPsu * InstancePtr ) { u64 IntrStatusRegister ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; IntrStatusRegister = ( u64 ) XSysmonPsu_ReadReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_ISR_0_OFFSET ) & ( u64 ) XSYSMONPSU_IXR_0_MASK ; IntrStatusRegister |= ( ( u64 ) XSysmonPsu_ReadReg ( InstancePtr -> Config . BaseAddress + XSYSMONPSU_ISR_1_OFFSET ) & ( u64 ) XSYSMONPSU_IXR_1_MASK ) << XSYSMONPSU_IXR_1_SHIFT ; return IntrStatusRegister ; }
This function returns the interrupt status read from Interrupt Status
Register(ISR).
This function returns the interrupt status read from Interrupt Status Register ( ISR ) .
/* Assert the arguments. */ /* Return the value read from the AMS ISR. */