XilinxProcessorIPLib/drivers/sysmon/examples/xsysmon_single_ch_intr_example.c
static void SysMonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XSysMon *SysMonPtr = (XSysMon *)CallBackRef;

	/*
	 * Get the interrupt status from the device and check the value.
	 */
	IntrStatusValue = XSysMon_IntrGetStatus(SysMonPtr);

	if (IntrStatusValue & XSM_IPIXR_EOC_MASK) {
		/*
		 * Set End of Conversion  interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */
		EocFlag = TRUE;
		XSysMon_GetStatus(SysMonPtr); /* Clear the latched status */
	}

	if (IntrStatusValue & XSM_IPIXR_VCCINT_MASK) {
		/*
		 * Set VCCINT interrupt flag so the code in application context
		 * can be aware of this interrupt.
		 */
		VccintIntr = TRUE;
	}

	/*
	 * Clear all bits in Interrupt Status Register.
	 */
	XSysMon_IntrClear(SysMonPtr, IntrStatusValue);
 }
/*****************************************************************************/
/**
*
* This function is the Interrupt Service Routine for the System Monitor device.
* It will be called by the processor whenever an interrupt is asserted
* by the device.
*
* There are 8 different interrupt types supported
*	- Over Temperature
*	- ALARM 0
*	- ALARM 1
*	- ALARM 2
*	- End of Sequence
*	- End of Conversion
*	- Over Temperature DeActivated
*	- ALARM 0 DeActivated
*
* This function only handles the EOC interrupt and ALARM 1 interrupt.
* User of this code should modify the code to meet needs of the application.
*
* @param	CallBackRef is the callback reference passed from the Interrupt
*		controller driver, which in our case is a pointer to the
*		driver instance.
*
* @return	None.
*
* @note		This function is called within interrupt context.
*
******************************************************************************/
This function is the Interrupt Service Routine for the System Monitor device.
It will be called by the processor whenever an interrupt is asserted
by the device.

There are 8 different interrupt types supported
Over Temperature
ALARM 0
ALARM 1
ALARM 2
End of Sequence
End of Conversion
Over Temperature DeActivated
ALARM 0 DeActivated

This function only handles the EOC interrupt and ALARM 1 interrupt.
User of this code should modify the code to meet needs of the application.
This function is the Interrupt Service Routine for the System Monitor device . It will be called by the processor whenever an interrupt is asserted by the device . There are 8 different interrupt types supported Over Temperature ALARM 0 ALARM 1 ALARM 2 End of Sequence End of Conversion Over Temperature DeActivated ALARM 0 DeActivated This function only handles the EOC interrupt and ALARM 1 interrupt . User of this code should modify the code to meet needs of the application .
static void SysMonInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XSysMon *SysMonPtr = (XSysMon *)CallBackRef;
	IntrStatusValue = XSysMon_IntrGetStatus(SysMonPtr);
	if (IntrStatusValue & XSM_IPIXR_EOC_MASK) {
		EocFlag = TRUE;
		XSysMon_GetStatus(SysMonPtr); 
	}
	if (IntrStatusValue & XSM_IPIXR_VCCINT_MASK) {
		VccintIntr = TRUE;
	}
	XSysMon_IntrClear(SysMonPtr, IntrStatusValue);
 }
static void SysMonInterruptHandler ( void * CallBackRef ) { u32 IntrStatusValue ; XSysMon * SysMonPtr = ( XSysMon * ) CallBackRef ; IntrStatusValue = XSysMon_IntrGetStatus ( SysMonPtr ) ; if ( IntrStatusValue & XSM_IPIXR_EOC_MASK ) { EocFlag = TRUE ; XSysMon_GetStatus ( SysMonPtr ) ; } if ( IntrStatusValue & XSM_IPIXR_VCCINT_MASK ) { VccintIntr = TRUE ; } XSysMon_IntrClear ( SysMonPtr , IntrStatusValue ) ; }
This function is the Interrupt Service Routine for the System Monitor device.
This function is the Interrupt Service Routine for the System Monitor device .
/*
	 * Get the interrupt status from the device and check the value.
	 */ /*
		 * Set End of Conversion  interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */ /* Clear the latched status */ /*
		 * Set VCCINT interrupt flag so the code in application context
		 * can be aware of this interrupt.
		 */ /*
	 * Clear all bits in Interrupt Status Register.
	 */