XilinxProcessorIPLib/drivers/rtcpsu/src/xrtcpsu.c
u32 XRtcPsu_IsAlarmEventGenerated(XRtcPsu *InstancePtr)
{
	u32 Status;

	/* Loop the interrupt status register for Alarm Event */
	if ((XRtcPsu_ReadReg(InstancePtr->RtcConfig.BaseAddr +
		XRTC_INT_STS_OFFSET) & (XRTC_INT_STS_ALRM_MASK)) == 0U) {
		Status = 0U;
	} else {
		/* Clear the interrupt status register */
		XRtcPsu_WriteReg((InstancePtr)->RtcConfig.BaseAddr +
				XRTC_INT_STS_OFFSET, XRTC_INT_STS_ALRM_MASK);
						Status = 1U;
	}
	return Status;
}
/****************************************************************************/
/**
 *
 * This function returns the alarm event status by reading
 * interrupt status register.
 *
 * @param	InstancePtr is a pointer to the XRtcPsu instance.
 *
 * @return	Returns 1 if the alarm event is generated.Else 0.
 *
 * @note	This API is used in polled mode operation of RTC.
 *		This also clears interrupt status alarm bit.
 *
 *****************************************************************************/
This function returns the alarm event status by reading
interrupt status register.

@param       InstancePtr is a pointer to the XRtcPsu instance.

@return      Returns 1 if the alarm event is generated.Else 0.

@note        This API is used in polled mode operation of RTC.
This also clears interrupt status alarm bit.
This function returns the alarm event status by reading interrupt status register . @param InstancePtr is a pointer to the XRtcPsu instance . @return Returns 1 if the alarm event is generated . Else 0 . @note This API is used in polled mode operation of RTC . This also clears interrupt status alarm bit .
u32 XRtcPsu_IsAlarmEventGenerated(XRtcPsu *InstancePtr)
{
	u32 Status;
	if ((XRtcPsu_ReadReg(InstancePtr->RtcConfig.BaseAddr +
		XRTC_INT_STS_OFFSET) & (XRTC_INT_STS_ALRM_MASK)) == 0U) {
		Status = 0U;
	} else {
		XRtcPsu_WriteReg((InstancePtr)->RtcConfig.BaseAddr +
				XRTC_INT_STS_OFFSET, XRTC_INT_STS_ALRM_MASK);
						Status = 1U;
	}
	return Status;
}
u32 XRtcPsu_IsAlarmEventGenerated ( XRtcPsu * InstancePtr ) { u32 Status ; if ( ( XRtcPsu_ReadReg ( InstancePtr -> RtcConfig . BaseAddr + XRTC_INT_STS_OFFSET ) & ( XRTC_INT_STS_ALRM_MASK ) ) == 0U ) { Status = 0U ; } else { XRtcPsu_WriteReg ( ( InstancePtr ) -> RtcConfig . BaseAddr + XRTC_INT_STS_OFFSET , XRTC_INT_STS_ALRM_MASK ) ; Status = 1U ; } return Status ; }
This function returns the alarm event status by reading
 interrupt status register.
This function returns the alarm event status by reading interrupt status register .
/* Loop the interrupt status register for Alarm Event */ /* Clear the interrupt status register */