v_demosaic
Vitis Drivers API Documentation
Overview

Functions

void XVDemosaic_SetCallback (XV_demosaic *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)
 This function installs an asynchronous callback function for the given HandlerType: More...
 
void XVDemosaic_InterruptHandler (XV_demosaic *InstancePtr)
 This function is the interrupt handler for the Sensor Demosaic core driver. More...
 

Function Documentation

void XVDemosaic_InterruptHandler ( XV_demosaic InstancePtr)

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.

Parameters
InstancePtris a pointer to the core instance that just interrupted.
Returns
None.
Note
None.

References XV_demosaic::CallbackDoneRef, XV_demosaic::CallbackReadyRef, and XV_demosaic::IsReady.

void XVDemosaic_SetCallback ( XV_demosaic InstancePtr,
u32  HandlerType,
void *  CallbackFunc,
void *  CallbackRef 
)

This function installs an asynchronous callback function for the given HandlerType:

HandlerType                     Callback Function Type


(XVDEMOSAIC_HANDLER_DONE) DoneCallback (XVDEMOSAIC_HANDLER_READY) ReadyCallback

Parameters
InstancePtris a pointer to the Demosaic IP instance.
CallbackFuncis the address of the callback function.
CallbackRefis a user data item that will be passed to the callback function when it is invoked.
Returns
None.
Note
Invoking this function for a handler that already has been installed replaces it with the new handler.

References XV_demosaic::CallbackDoneRef, and XV_demosaic::CallbackReadyRef.