XilinxProcessorIPLib/drivers/xadcps/examples/xadcps_intr_example.c
static void XAdcInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XAdcPs *XAdcPtr = (XAdcPs *)CallBackRef;

	/*
	 * Get the interrupt status from the device and check the value.
	 */

	IntrStatusValue = XAdcPs_IntrGetStatus(XAdcPtr);

	if (IntrStatusValue & XADCPS_INTX_ALM0_MASK) {
		/*
		 * Set Temperature interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */
		TemperatureIntr = TRUE;

		/* Disable Temperature interrupt */
		XAdcPs_IntrDisable(XAdcPtr,XADCPS_INTX_ALM0_MASK);

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

		/* Disable VccPAUX interrupt */
		XAdcPs_IntrDisable(XAdcPtr,XADCPS_INTX_ALM5_MASK);
	}

	/*
	 * Clear all bits in Interrupt Status Register.
	 */
	XAdcPs_IntrClear(XAdcPtr, IntrStatusValue);
 }
/*****************************************************************************/
/**
*
* This function is the Interrupt Service Routine for the XADC device.
* It will be called by the processor whenever an interrupt is asserted
* by the device.
*
* There are 8 different interrupts supported
*	- Over Temperature
*	- ALARM 0 to ALARM 7
*
* This function only handles ALARM 0 and ALARM 2 interrupts. User of this
* code may need to 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 XADC device.
It will be called by the processor whenever an interrupt is asserted
by the device.

There are 8 different interrupts supported
Over Temperature
ALARM 0 to ALARM 7

This function only handles ALARM 0 and ALARM 2 interrupts. User of this
code may need to modify the code to meet needs of the application.
This function is the Interrupt Service Routine for the XADC device . It will be called by the processor whenever an interrupt is asserted by the device . There are 8 different interrupts supported Over Temperature ALARM 0 to ALARM 7 This function only handles ALARM 0 and ALARM 2 interrupts . User of this code may need to modify the code to meet needs of the application .
static void XAdcInterruptHandler(void *CallBackRef)
{
	u32 IntrStatusValue;
	XAdcPs *XAdcPtr = (XAdcPs *)CallBackRef;
	IntrStatusValue = XAdcPs_IntrGetStatus(XAdcPtr);
	if (IntrStatusValue & XADCPS_INTX_ALM0_MASK) {
		TemperatureIntr = TRUE;
		XAdcPs_IntrDisable(XAdcPtr,XADCPS_INTX_ALM0_MASK);
	}
	if (IntrStatusValue & XADCPS_INTX_ALM5_MASK) {
		VccpauxIntr = TRUE;
		XAdcPs_IntrDisable(XAdcPtr,XADCPS_INTX_ALM5_MASK);
	}
	XAdcPs_IntrClear(XAdcPtr, IntrStatusValue);
 }
static void XAdcInterruptHandler ( void * CallBackRef ) { u32 IntrStatusValue ; XAdcPs * XAdcPtr = ( XAdcPs * ) CallBackRef ; IntrStatusValue = XAdcPs_IntrGetStatus ( XAdcPtr ) ; if ( IntrStatusValue & XADCPS_INTX_ALM0_MASK ) { TemperatureIntr = TRUE ; XAdcPs_IntrDisable ( XAdcPtr , XADCPS_INTX_ALM0_MASK ) ; } if ( IntrStatusValue & XADCPS_INTX_ALM5_MASK ) { VccpauxIntr = TRUE ; XAdcPs_IntrDisable ( XAdcPtr , XADCPS_INTX_ALM5_MASK ) ; } XAdcPs_IntrClear ( XAdcPtr , IntrStatusValue ) ; }
This function is the Interrupt Service Routine for the XADC device.
This function is the Interrupt Service Routine for the XADC device .
/*
	 * Get the interrupt status from the device and check the value.
	 */ /*
		 * Set Temperature interrupt flag so the code
		 * in application context can be aware of this interrupt.
		 */ /* Disable Temperature interrupt */ /*
			 * Set Temperature interrupt flag so the code
			 * in application context can be aware of this interrupt.
			 */ /* Disable VccPAUX interrupt */ /*
	 * Clear all bits in Interrupt Status Register.
	 */