v_tpg
Vitis Drivers API Documentation
|
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... | |
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.
InstancePtr | is a pointer to the core instance that just interrupted. |
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
InstancePtr | is a pointer to the tpg IP instance. |
CallbackFunc | is the address of the callback function. |
CallbackRef | is a user data item that will be passed to the callback function when it is invoked. |
References XV_tpg::CallbackDoneRef, and XV_tpg::CallbackReadyRef.