v_tpg
Vitis Drivers API Documentation
Overview

Functions

void XVTpg_SetCallback (XV_tpg *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)
 This function installs an asynchronous callback function for the given HandlerType: 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, and XV_tpg::IsReady.

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

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.
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, and XV_tpg::CallbackReadyRef.