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

Functions

void XVTpg_SetCallback (XV_tpg *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)
 Install an asynchronous callback function for interrupt handling. More...
 
void XVTpg_InterruptHandler (XV_tpg *InstancePtr)
 This function is the interrupt handler for the TPG core driver. More...
 

Function Documentation

void XVTpg_InterruptHandler ( XV_tpg InstancePtr)

This function is the interrupt handler for the TPG 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 XVTpg_SetCallback() during initialization phase.

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

References XV_tpg::CallbackDoneRef, XV_tpg::CallbackReadyRef, XV_tpg::FrameDoneCallback, XV_tpg::FrameReadyCallback, XV_tpg::IsReady, XV_tpg_InterruptClear(), XV_tpg_InterruptGetStatus(), XVTPG_IRQ_DONE_MASK, and XVTPG_IRQ_READY_MASK.

void XVTpg_SetCallback ( XV_tpg InstancePtr,
u32  HandlerType,
void *  CallbackFunc,
void *  CallbackRef 
)

Install an asynchronous callback function for interrupt handling.

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

HandlerType                     Callback Function Type


(XVTPG_HANDLER_DONE) DoneCallback (XVTPG_HANDLER_READY) ReadyCallback

Parameters
InstancePtris a pointer to the tpg IP instance.
HandlerTypeis the type of handler to be installed (DONE or READY).
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_tpg::CallbackDoneRef, XV_tpg::CallbackReadyRef, XV_tpg::FrameDoneCallback, XV_tpg::FrameReadyCallback, XVTPG_HANDLER_DONE, and XVTPG_HANDLER_READY.