v_demosaic
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Overview

Functions

void XVDemosaic_SetCallback (XV_demosaic *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)
 Installs an asynchronous callback function for the given handler type. More...
 
void XVDemosaic_InterruptHandler (XV_demosaic *InstancePtr)
 Interrupt handler for the Demosaic IP core. More...
 

Function Documentation

void XVDemosaic_InterruptHandler ( XV_demosaic InstancePtr)

Interrupt handler for the Demosaic IP core.

This handler clears pending interrupts and determines if the source is a frame done or frame ready signal. If the interrupt is valid, it calls the registered callback function for the corresponding event.

Parameters
InstancePtrPointer to the Demosaic IP instance that just interrupted.
Returns
None
Note
The application is responsible for connecting this function to the interrupt system and providing callbacks using XVDemosaic_SetCallback() during initialization phase.

References XV_demosaic::CallbackDoneRef, XV_demosaic::CallbackReadyRef, XV_demosaic::FrameDoneCallback, XV_demosaic::FrameReadyCallback, XV_demosaic::IsReady, XV_demosaic_InterruptClear(), XV_demosaic_InterruptGetStatus(), XVDEMOSAIC_IRQ_DONE_MASK, and XVDEMOSAIC_IRQ_READY_MASK.

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

Installs an asynchronous callback function for the given handler type.

This function registers callback functions for different interrupt events. Supported handler types include frame done (XVDEMOSAIC_HANDLER_DONE) and frame ready (XVDEMOSAIC_HANDLER_READY) events.

Parameters
InstancePtrPointer to the Demosaic IP instance.
HandlerTypeType of handler (XVDEMOSAIC_HANDLER_DONE or XVDEMOSAIC_HANDLER_READY).
CallbackFuncAddress of the callback function to be invoked.
CallbackRefUser data item passed to the callback function when 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, XV_demosaic::CallbackReadyRef, XV_demosaic::FrameDoneCallback, XV_demosaic::FrameReadyCallback, XVDEMOSAIC_HANDLER_DONE, and XVDEMOSAIC_HANDLER_READY.