XilinxProcessorIPLib/drivers/v_demosaic/src/xv_demosaic_intr.c
void XVDemosaic_InterruptHandler(XV_demosaic *InstancePtr)
{
	u32 Status;

	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/* Get the interrupt source */
	Status = XV_demosaic_InterruptGetStatus(InstancePtr);

	/* Check for Done Signal */
	if(Status & XVDEMOSAIC_IRQ_DONE_MASK) {
		/* Clear the interrupt */
		XV_demosaic_InterruptClear(InstancePtr, XVDEMOSAIC_IRQ_DONE_MASK);
		//Call user registered callback function, if any
		if(InstancePtr->FrameDoneCallback) {
			InstancePtr->FrameDoneCallback(InstancePtr->CallbackDoneRef);
		}
	}

	/* Check for Ready Signal */
	if(Status & XVDEMOSAIC_IRQ_READY_MASK) {
		/* Clear the interrupt */
		XV_demosaic_InterruptClear(InstancePtr, XVDEMOSAIC_IRQ_READY_MASK);
		//Call user registered callback function, if any
		if(InstancePtr->FrameReadyCallback) {
			InstancePtr->FrameReadyCallback(InstancePtr->CallbackReadyRef);
		}
	}
}
/*****************************************************************************/
/**
*
* This function is the interrupt handler for the Sensor Demosaic core driver.
*
* This handler clears the pending interrupt and determined if the source is
* frame done signal. If yes, starts the next frame processing and calls the
* registered callback function
*
* The application is responsible for connecting this function to the interrupt
* system. Application beyond this driver is also responsible for providing
* callbacks to handle interrupts and installing the callbacks using
* XVDemosaic_SetCallback() during initialization phase.
*
* @param    InstancePtr is a pointer to the core instance that just
*           interrupted.
*
* @return   None.
*
* @note     None.
*
******************************************************************************/
This function is the interrupt handler for the Sensor Demosaic core driver.
This handler clears the pending interrupt and determined if the source is
frame done signal. If yes, starts the next frame processing and calls the
registered callback function

The application is responsible for connecting this function to the interrupt
system. Application beyond this driver is also responsible for providing
callbacks to handle interrupts and installing the callbacks using
XVDemosaic_SetCallback() during initialization phase.
This function is the interrupt handler for the Sensor Demosaic core driver . This handler clears the pending interrupt and determined if the source is frame done signal . If yes starts the next frame processing and calls the registered callback function The application is responsible for connecting this function to the interrupt system . Application beyond this driver is also responsible for providing callbacks to handle interrupts and installing the callbacks using XVDemosaic_SetCallback () during initialization phase .
void XVDemosaic_InterruptHandler(XV_demosaic *InstancePtr)
{
	u32 Status;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Status = XV_demosaic_InterruptGetStatus(InstancePtr);
	if(Status & XVDEMOSAIC_IRQ_DONE_MASK) {
		XV_demosaic_InterruptClear(InstancePtr, XVDEMOSAIC_IRQ_DONE_MASK);
		if(InstancePtr->FrameDoneCallback) {
			InstancePtr->FrameDoneCallback(InstancePtr->CallbackDoneRef);
		}
	}
	if(Status & XVDEMOSAIC_IRQ_READY_MASK) {
		XV_demosaic_InterruptClear(InstancePtr, XVDEMOSAIC_IRQ_READY_MASK);
		if(InstancePtr->FrameReadyCallback) {
			InstancePtr->FrameReadyCallback(InstancePtr->CallbackReadyRef);
		}
	}
}
void XVDemosaic_InterruptHandler ( XV_demosaic * InstancePtr ) { u32 Status ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Status = XV_demosaic_InterruptGetStatus ( InstancePtr ) ; if ( Status & XVDEMOSAIC_IRQ_DONE_MASK ) { XV_demosaic_InterruptClear ( InstancePtr , XVDEMOSAIC_IRQ_DONE_MASK ) ; if ( InstancePtr -> FrameDoneCallback ) { InstancePtr -> FrameDoneCallback ( InstancePtr -> CallbackDoneRef ) ; } } if ( Status & XVDEMOSAIC_IRQ_READY_MASK ) { XV_demosaic_InterruptClear ( InstancePtr , XVDEMOSAIC_IRQ_READY_MASK ) ; if ( InstancePtr -> FrameReadyCallback ) { InstancePtr -> FrameReadyCallback ( InstancePtr -> CallbackReadyRef ) ; } } }
This function is the interrupt handler for the Sensor Demosaic core driver.
This function is the interrupt handler for the Sensor Demosaic core driver .
/* Verify arguments */ /* Get the interrupt source */ /* Check for Done Signal */ /* Clear the interrupt */ //Call user registered callback function, if any /* Check for Ready Signal */ /* Clear the interrupt */ //Call user registered callback function, if any