v_tpg
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xv_tpg.h File Reference
#include "xil_types.h"
#include "xil_assert.h"
#include "xstatus.h"
#include "xil_io.h"
#include "xv_tpg_hw.h"

Data Structures

struct  XV_tpg_Config
 This typedef contains configuration information for the tpg core Each core instance should have a configuration structure associated. More...
 
struct  XV_tpg
 Driver instance data. More...
 

Macros

#define XVTPG_IRQ_DONE_MASK   (0x01)
 Interrupt mask for frame processing done event. More...
 
#define XVTPG_IRQ_READY_MASK   (0x02)
 Interrupt mask for ready for next frame event. More...
 
#define XV_tpg_WriteReg(BaseAddress, RegOffset, Data)   Xil_Out32((BaseAddress) + (RegOffset), (u32)(Data))
 Write a value to a register. More...
 
#define XV_tpg_ReadReg(BaseAddress, RegOffset)   Xil_In32((BaseAddress) + (RegOffset))
 Read a value from a register. More...
 

Typedefs

typedef void(* XVTpg_Callback )(void *InstancePtr)
 Callback function pointer type for TPG events. More...
 

Enumerations

enum  XTpg_PatternId {
  XTPG_BKGND_H_RAMP = 1, XTPG_BKGND_V_RAMP, XTPG_BKGND_TEMPORAL_RAMP, XTPG_BKGND_SOLID_RED,
  XTPG_BKGND_SOLID_GREEN, XTPG_BKGND_SOLID_BLUE, XTPG_BKGND_SOLID_BLACK, XTPG_BKGND_SOLID_WHITE,
  XTPG_BKGND_COLOR_BARS, XTPG_BKGND_ZONE_PLATE, XTPG_BKGND_TARTAN_COLOR_BARS, XTPG_BKGND_CROSS_HATCH,
  XTPG_BKGND_RAINBOW_COLOR, XTPG_BKGND_HV_RAMP, XTPG_BKGND_CHECKER_BOARD, XTPG_BKGND_PBRS,
  XTPG_BKGND_DP_COLOR_RAMP, XTPG_BKGND_DP_BW_VERTICAL_LINE, XTPG_BKGND_DP_COLOR_SQUARE, XTPG_BKGND_LAST
}
 Enumeration of test patterns supported by the TPG. More...
 
enum  XVTPG_HandlerType { XVTPG_HANDLER_DONE = 1, XVTPG_HANDLER_READY }
 Enumeration of interrupt handler types. More...
 

Functions

int XV_tpg_Initialize (XV_tpg *InstancePtr, UINTPTR BaseAddress)
 Initialize the XV_tpg instance. More...
 
XV_tpg_ConfigXV_tpg_LookupConfig (UINTPTR BaseAddress)
 Look up the device configuration based on the base address. More...
 
int XV_tpg_CfgInitialize (XV_tpg *InstancePtr, XV_tpg_Config *ConfigPtr, UINTPTR EffectiveAddr)
 Configure and initialize the TPG core instance. More...
 
void XV_tpg_Start (XV_tpg *InstancePtr)
 Start the TPG core. More...
 
u32 XV_tpg_IsDone (XV_tpg *InstancePtr)
 Check if TPG core processing is done. More...
 
u32 XV_tpg_IsIdle (XV_tpg *InstancePtr)
 Check if TPG core is idle. More...
 
u32 XV_tpg_IsReady (XV_tpg *InstancePtr)
 Check if TPG core is ready for next input. More...
 
void XV_tpg_EnableAutoRestart (XV_tpg *InstancePtr)
 Enable auto-restart mode. More...
 
void XV_tpg_DisableAutoRestart (XV_tpg *InstancePtr)
 Disable auto-restart mode. More...
 
void XV_tpg_Set_height (XV_tpg *InstancePtr, u32 Data)
 Set the height of the output frame. More...
 
u32 XV_tpg_Get_height (XV_tpg *InstancePtr)
 Get the current height setting. More...
 
void XV_tpg_Set_width (XV_tpg *InstancePtr, u32 Data)
 Set the width of the output frame. More...
 
u32 XV_tpg_Get_width (XV_tpg *InstancePtr)
 Get the current width setting. More...
 
void XV_tpg_Set_bckgndId (XV_tpg *InstancePtr, u32 Data)
 Set the background pattern ID. More...
 
u32 XV_tpg_Get_bckgndId (XV_tpg *InstancePtr)
 Get the current background pattern ID. More...
 
void XV_tpg_Set_motionEn (XV_tpg *InstancePtr, u32 Data)
 Enable motion for color bar pattern. More...
 
u32 XV_tpg_Get_motionEnStatus (XV_tpg *InstancePtr)
 Get motion enable status for color bar pattern. More...
 
void XV_tpg_Set_ovrlayId (XV_tpg *InstancePtr, u32 Data)
 Set the overlay pattern ID. More...
 
u32 XV_tpg_Get_ovrlayId (XV_tpg *InstancePtr)
 Get the current overlay pattern ID. More...
 
void XV_tpg_Set_maskId (XV_tpg *InstancePtr, u32 Data)
 Set the color mask ID. More...
 
u32 XV_tpg_Get_maskId (XV_tpg *InstancePtr)
 Get the current color mask ID. More...
 
void XV_tpg_Set_motionSpeed (XV_tpg *InstancePtr, u32 Data)
 Set the motion speed. More...
 
u32 XV_tpg_Get_motionSpeed (XV_tpg *InstancePtr)
 Get the current motion speed setting. More...
 
void XV_tpg_Set_colorFormat (XV_tpg *InstancePtr, u32 Data)
 Set the color format. More...
 
u32 XV_tpg_Get_colorFormat (XV_tpg *InstancePtr)
 Get the current color format setting. More...
 
void XV_tpg_Set_crossHairX (XV_tpg *InstancePtr, u32 Data)
 Set horizontal crosshair location. More...
 
u32 XV_tpg_Get_crossHairX (XV_tpg *InstancePtr)
 Get horizontal crosshair location. More...
 
void XV_tpg_Set_crossHairY (XV_tpg *InstancePtr, u32 Data)
 Set vertical crosshair location. More...
 
u32 XV_tpg_Get_crossHairY (XV_tpg *InstancePtr)
 Get vertical crosshair location. More...
 
void XV_tpg_Set_ZplateHorContStart (XV_tpg *InstancePtr, u32 Data)
 Set zone plate horizontal control start value. More...
 
u32 XV_tpg_Get_ZplateHorContStart (XV_tpg *InstancePtr)
 Get zone plate horizontal control start value. More...
 
void XV_tpg_Set_ZplateHorContDelta (XV_tpg *InstancePtr, u32 Data)
 Set zone plate horizontal control delta value. More...
 
u32 XV_tpg_Get_ZplateHorContDelta (XV_tpg *InstancePtr)
 Get zone plate horizontal control delta value. More...
 
void XV_tpg_Set_ZplateVerContStart (XV_tpg *InstancePtr, u32 Data)
 Set zone plate vertical control start value. More...
 
u32 XV_tpg_Get_ZplateVerContStart (XV_tpg *InstancePtr)
 Get zone plate vertical control start value. More...
 
void XV_tpg_Set_ZplateVerContDelta (XV_tpg *InstancePtr, u32 Data)
 Set zone plate vertical control delta value. More...
 
u32 XV_tpg_Get_ZplateVerContDelta (XV_tpg *InstancePtr)
 Get zone plate vertical control delta value. More...
 
void XV_tpg_Set_boxSize (XV_tpg *InstancePtr, u32 Data)
 Set the box size. More...
 
u32 XV_tpg_Get_boxSize (XV_tpg *InstancePtr)
 Get the current box size. More...
 
void XV_tpg_Set_boxColorR (XV_tpg *InstancePtr, u32 Data)
 Set box red color component. More...
 
u32 XV_tpg_Get_boxColorR (XV_tpg *InstancePtr)
 Get box red color component. More...
 
void XV_tpg_Set_boxColorG (XV_tpg *InstancePtr, u32 Data)
 Set box green color component. More...
 
u32 XV_tpg_Get_boxColorG (XV_tpg *InstancePtr)
 Get box green color component. More...
 
void XV_tpg_Set_boxColorB (XV_tpg *InstancePtr, u32 Data)
 Set box blue color component. More...
 
u32 XV_tpg_Get_boxColorB (XV_tpg *InstancePtr)
 Get box blue color component. More...
 
void XV_tpg_Set_enableInput (XV_tpg *InstancePtr, u32 Data)
 Enable input video stream passthrough. More...
 
u32 XV_tpg_Get_enableInput (XV_tpg *InstancePtr)
 Get input enable status. More...
 
void XV_tpg_Set_passthruStartX (XV_tpg *InstancePtr, u32 Data)
 Set passthrough window left boundary. More...
 
u32 XV_tpg_Get_passthruStartX (XV_tpg *InstancePtr)
 Get passthrough window left boundary. More...
 
void XV_tpg_Set_passthruStartY (XV_tpg *InstancePtr, u32 Data)
 Set passthrough window upper boundary. More...
 
u32 XV_tpg_Get_passthruStartY (XV_tpg *InstancePtr)
 Get passthrough window upper boundary. More...
 
void XV_tpg_Set_passthruEndX (XV_tpg *InstancePtr, u32 Data)
 Set passthrough window right boundary. More...
 
u32 XV_tpg_Get_passthruEndX (XV_tpg *InstancePtr)
 Get passthrough window right boundary. More...
 
void XV_tpg_Set_passthruEndY (XV_tpg *InstancePtr, u32 Data)
 Set passthrough window lower boundary. More...
 
u32 XV_tpg_Get_passthruEndY (XV_tpg *InstancePtr)
 Get passthrough window lower boundary. More...
 
void XV_tpg_Set_dpDynamicRange (XV_tpg *InstancePtr, u32 Data)
 Sets the dynamic range of DisplayPort color square in RGB. More...
 
u32 XV_tpg_Get_dpDynamicRange (XV_tpg *InstancePtr)
 Gets the dynamic range of DisplayPort color square in RGB. More...
 
void XV_tpg_Set_dpYUVCoef (XV_tpg *InstancePtr, u32 Data)
 Sets the coefficients of DisplayPort color square in YUV. More...
 
u32 XV_tpg_Get_dpYUVCoef (XV_tpg *InstancePtr)
 Gets the coefficients of DisplayPort color square in YUV. More...
 
void XV_tpg_Set_Interlaced (XV_tpg *InstancePtr, _Bool Data)
 Enables or disables the interlaced video pattern. More...
 
void XV_tpg_Set_Polarity (XV_tpg *InstancePtr, _Bool Data)
 Sets the field polarity for interlaced video. More...
 
u32 XV_tpg_Get_fieldId (XV_tpg *InstancePtr)
 Gets the field ID for the current frame. More...
 
void XV_tpg_InterruptGlobalEnable (XV_tpg *InstancePtr)
 Enables the global interrupts. More...
 
void XV_tpg_InterruptGlobalDisable (XV_tpg *InstancePtr)
 Disables the global interrupts. More...
 
void XV_tpg_InterruptEnable (XV_tpg *InstancePtr, u32 Mask)
 Enables the interrupts specified by the mask. More...
 
void XV_tpg_InterruptDisable (XV_tpg *InstancePtr, u32 Mask)
 Disables the interrupts specified by the mask. More...
 
void XV_tpg_InterruptClear (XV_tpg *InstancePtr, u32 Mask)
 Clears the interrupts specified by the mask. More...
 
u32 XV_tpg_InterruptGetEnabled (XV_tpg *InstancePtr)
 Reports the currently enabled interrupts. More...
 
u32 XV_tpg_InterruptGetStatus (XV_tpg *InstancePtr)
 Reports the current interrupt status. More...
 
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...
 

Macro Definition Documentation

#define XVTPG_IRQ_DONE_MASK   (0x01)

Interrupt mask for frame processing done event.

Referenced by XVTpg_InterruptHandler().

#define XVTPG_IRQ_READY_MASK   (0x02)

Interrupt mask for ready for next frame event.

Referenced by XVTpg_InterruptHandler().

Typedef Documentation

typedef void(* XVTpg_Callback)(void *InstancePtr)

Callback function pointer type for TPG events.

Parameters
InstancePtris a pointer to the XV_tpg instance.

Enumeration Type Documentation

Enumeration of test patterns supported by the TPG.

This enumeration defines all the test pattern types that can be generated by the Test Pattern Generator.

Enumerator
XTPG_BKGND_H_RAMP 

Horizontal ramp pattern.

XTPG_BKGND_V_RAMP 

Vertical ramp pattern.

XTPG_BKGND_TEMPORAL_RAMP 

Temporal ramp pattern.

XTPG_BKGND_SOLID_RED 

Solid red color.

XTPG_BKGND_SOLID_GREEN 

Solid green color.

XTPG_BKGND_SOLID_BLUE 

Solid blue color.

XTPG_BKGND_SOLID_BLACK 

Solid black color.

XTPG_BKGND_SOLID_WHITE 

Solid white color.

XTPG_BKGND_COLOR_BARS 

Color bars pattern.

XTPG_BKGND_ZONE_PLATE 

Zone plate pattern.

XTPG_BKGND_TARTAN_COLOR_BARS 

Tartan color bars pattern.

XTPG_BKGND_CROSS_HATCH 

Cross hatch pattern.

XTPG_BKGND_RAINBOW_COLOR 

Rainbow color pattern.

XTPG_BKGND_HV_RAMP 

Horizontal and vertical ramp pattern.

XTPG_BKGND_CHECKER_BOARD 

Checker board pattern.

XTPG_BKGND_PBRS 

Pseudo-random binary sequence pattern.

XTPG_BKGND_DP_COLOR_RAMP 

DisplayPort color ramp pattern.

XTPG_BKGND_DP_BW_VERTICAL_LINE 

DisplayPort black/white vertical line pattern.

XTPG_BKGND_DP_COLOR_SQUARE 

DisplayPort color square pattern.

XTPG_BKGND_LAST 

Last pattern ID (used for validation)

Enumeration of interrupt handler types.

This enumeration defines the types of interrupt handlers that can be registered for TPG events.

Enumerator
XVTPG_HANDLER_DONE 

Handler for ap_done.

XVTPG_HANDLER_READY 

Handler for ap_ready.

Function Documentation

int XV_tpg_CfgInitialize ( XV_tpg InstancePtr,
XV_tpg_Config ConfigPtr,
UINTPTR  EffectiveAddr 
)

Configure and initialize the TPG core instance.

This function initializes the TPG instance with the provided configuration and effective base address. It copies the configuration data and sets the ready flag to indicate successful initialization.

Parameters
InstancePtrPointer to the XV_tpg instance to be initialized
ConfigPtrPointer to the configuration structure
EffectiveAddrEffective base address of the TPG hardware
Returns
XST_SUCCESS on successful initialization
Note
This function is only available for non-Linux systems

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg_Config::IntrId, XV_tpg_Config::IntrParent, and XV_tpg::IsReady.

Referenced by driverInit(), and XV_tpg_Initialize().

void XV_tpg_DisableAutoRestart ( XV_tpg InstancePtr)

Disable auto-restart mode.

This function disables auto-restart mode for the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, and XV_tpg_WriteReg.

void XV_tpg_EnableAutoRestart ( XV_tpg InstancePtr)

Enable auto-restart mode.

This function enables auto-restart mode for the TPG core, allowing it to automatically restart after each frame completion.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, and XV_tpg_WriteReg.

u32 XV_tpg_Get_bckgndId ( XV_tpg InstancePtr)

Get the current background pattern ID.

This function retrieves the current background pattern ID setting.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current background pattern ID value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BCKGNDID_DATA, and XV_tpg_ReadReg.

Referenced by XV_tpg_Set_motionEn().

u32 XV_tpg_Get_boxColorB ( XV_tpg InstancePtr)

Get box blue color component.

This function retrieves the V or B component value of the box.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current blue/chroma V component value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORB_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_boxColorG ( XV_tpg InstancePtr)

Get box green color component.

This function retrieves the U or G component value of the box.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current green/chroma U component value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORG_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_boxColorR ( XV_tpg InstancePtr)

Get box red color component.

This function retrieves the Y or R component value of the box.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current red/luma component value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORR_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_boxSize ( XV_tpg InstancePtr)

Get the current box size.

This function retrieves the current box size setting.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current box size value in pixels
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXSIZE_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_colorFormat ( XV_tpg InstancePtr)

Get the current color format setting.

This function retrieves the current color format configuration.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current color format value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_COLORFORMAT_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_crossHairX ( XV_tpg InstancePtr)

Get horizontal crosshair location.

This function retrieves the current horizontal crosshair position.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current horizontal crosshair position in pixels
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_CROSSHAIRX_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_crossHairY ( XV_tpg InstancePtr)

Get vertical crosshair location.

This function retrieves the current vertical crosshair position.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current vertical crosshair position in pixels
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_CROSSHAIRY_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_dpDynamicRange ( XV_tpg InstancePtr)

Gets the dynamic range of DisplayPort color square in RGB.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
The dynamic range value of DisplayPort color square in RGB.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_DPDYNAMICRANGE_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_dpYUVCoef ( XV_tpg InstancePtr)

Gets the coefficients of DisplayPort color square in YUV.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
The YUV coefficient value of DisplayPort color square.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_DPYUVCOEF_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_enableInput ( XV_tpg InstancePtr)

Get input enable status.

This function retrieves the current input video stream enable status.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current enable status (1 = enabled, 0 = disabled)
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ENABLEINPUT_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_fieldId ( XV_tpg InstancePtr)

Gets the field ID for the current frame.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
The field ID value.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_FIELDID_DATA, and XV_tpg_ReadReg.

Referenced by XV_tpg_Set_enableInput(), XV_tpg_Set_Interlaced(), and XV_tpg_Set_Polarity().

u32 XV_tpg_Get_height ( XV_tpg InstancePtr)

Get the current height setting.

This function retrieves the current height setting of the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current height value in pixels
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_HEIGHT_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_maskId ( XV_tpg InstancePtr)

Get the current color mask ID.

This function retrieves the current color mask ID setting.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current color mask ID value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_MASKID_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_motionEnStatus ( XV_tpg InstancePtr)

Get motion enable status for color bar pattern.

This function retrieves the current motion enable status for color bars.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Motion enable status (1 = enabled, 0 = disabled)
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BCK_MOTION_EN_DATA, XV_TPG_CTRL_ADDR_MOTION_EN_MASK, and XV_tpg_ReadReg.

u32 XV_tpg_Get_motionSpeed ( XV_tpg InstancePtr)

Get the current motion speed setting.

This function retrieves the current motion speed value.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current motion speed value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_MOTIONSPEED_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_ovrlayId ( XV_tpg InstancePtr)

Get the current overlay pattern ID.

This function retrieves the current overlay pattern ID setting.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current overlay pattern ID value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_OVRLAYID_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_passthruEndX ( XV_tpg InstancePtr)

Get passthrough window right boundary.

This function retrieves the current right boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current right boundary X coordinate
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUENDX_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_passthruEndY ( XV_tpg InstancePtr)

Get passthrough window lower boundary.

This function retrieves the current lower boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current lower boundary Y coordinate
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUENDY_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_passthruStartX ( XV_tpg InstancePtr)

Get passthrough window left boundary.

This function retrieves the current left boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current left boundary X coordinate
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUSTARTX_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_passthruStartY ( XV_tpg InstancePtr)

Get passthrough window upper boundary.

This function retrieves the current upper boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current upper boundary Y coordinate
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUSTARTY_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_width ( XV_tpg InstancePtr)

Get the current width setting.

This function retrieves the current width setting of the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current width value in pixels
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_WIDTH_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_ZplateHorContDelta ( XV_tpg InstancePtr)

Get zone plate horizontal control delta value.

This function retrieves the current horizontal control delta value.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current horizontal control delta value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEHORCONTDELTA_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_ZplateHorContStart ( XV_tpg InstancePtr)

Get zone plate horizontal control start value.

This function retrieves the current horizontal control start value.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current horizontal control start value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEHORCONTSTART_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_ZplateVerContDelta ( XV_tpg InstancePtr)

Get zone plate vertical control delta value.

This function retrieves the current vertical control delta value.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current vertical control delta value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEVERCONTDELTA_DATA, and XV_tpg_ReadReg.

u32 XV_tpg_Get_ZplateVerContStart ( XV_tpg InstancePtr)

Get zone plate vertical control start value.

This function retrieves the current vertical control start value.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
Current vertical control start value
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEVERCONTSTART_DATA, and XV_tpg_ReadReg.

int XV_tpg_Initialize ( XV_tpg InstancePtr,
UINTPTR  BaseAddress 
)

Initialize the XV_tpg instance.

This function initializes the XV_tpg instance by looking up the device configuration based on the base address and calling the configuration initialization function.

Parameters
InstancePtrPointer to the XV_tpg instance to initialize
BaseAddressBase address of the TPG device to initialize
Returns
XST_SUCCESS if initialization succeeds XST_DEVICE_NOT_FOUND if device configuration is not found
Note
This is the SDT version that uses base address for initialization

References XV_tpg_Config::BaseAddress, XV_tpg::IsReady, XV_tpg_CfgInitialize(), and XV_tpg_LookupConfig().

void XV_tpg_InterruptClear ( XV_tpg InstancePtr,
u32  Mask 
)

Clears the interrupts specified by the mask.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Maskis the interrupt mask value to clear specific interrupts.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ISR, and XV_tpg_WriteReg.

Referenced by XVTpg_InterruptHandler().

void XV_tpg_InterruptDisable ( XV_tpg InstancePtr,
u32  Mask 
)

Disables the interrupts specified by the mask.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Maskis the interrupt mask value to disable specific interrupts.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_IER, XV_tpg_ReadReg, and XV_tpg_WriteReg.

void XV_tpg_InterruptEnable ( XV_tpg InstancePtr,
u32  Mask 
)

Enables the interrupts specified by the mask.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Maskis the interrupt mask value to enable specific interrupts.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_IER, XV_tpg_ReadReg, and XV_tpg_WriteReg.

u32 XV_tpg_InterruptGetEnabled ( XV_tpg InstancePtr)

Reports the currently enabled interrupts.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
The current interrupt enable status mask.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_IER, and XV_tpg_ReadReg.

u32 XV_tpg_InterruptGetStatus ( XV_tpg InstancePtr)

Reports the current interrupt status.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
The current interrupt status mask.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ISR, and XV_tpg_ReadReg.

Referenced by XVTpg_InterruptHandler().

void XV_tpg_InterruptGlobalDisable ( XV_tpg InstancePtr)

Disables the global interrupts.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_GIE, and XV_tpg_WriteReg.

void XV_tpg_InterruptGlobalEnable ( XV_tpg InstancePtr)

Enables the global interrupts.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_GIE, and XV_tpg_WriteReg.

u32 XV_tpg_IsDone ( XV_tpg InstancePtr)

Check if TPG core processing is done.

This function checks the AP_DONE bit in the control register to determine if the current frame processing is complete.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
1 if processing is done, 0 otherwise
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, and XV_tpg_ReadReg.

u32 XV_tpg_IsIdle ( XV_tpg InstancePtr)

Check if TPG core is idle.

This function checks the AP_IDLE bit in the control register to determine if the TPG core is in idle state.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
1 if core is idle, 0 otherwise
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, and XV_tpg_ReadReg.

u32 XV_tpg_IsReady ( XV_tpg InstancePtr)

Check if TPG core is ready for next input.

This function checks the AP_START bit to determine if the core is ready to accept new input data.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
1 if ready for next input, 0 if busy
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, and XV_tpg_ReadReg.

XV_tpg_Config* XV_tpg_LookupConfig ( UINTPTR  BaseAddress)

Look up the device configuration based on the base address.

This function searches the configuration table for the device configuration matching the specified base address.

Parameters
BaseAddressBase address of the TPG device to search for
Returns
Pointer to XV_tpg_Config structure if found, NULL otherwise
Note
This is the SDT version that uses base address for lookup

Referenced by driverInit(), and XV_tpg_Initialize().

void XV_tpg_Set_bckgndId ( XV_tpg InstancePtr,
u32  Data 
)

Set the background pattern ID.

This function sets the background test pattern ID for the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
DataBackground pattern ID value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BCKGNDID_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_boxColorB ( XV_tpg InstancePtr,
u32  Data 
)

Set box blue color component.

This function sets the V or B (blue/chroma V) component value for the box.

Parameters
InstancePtrPointer to the XV_tpg instance
DataBlue/chroma V component value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORB_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_boxColorG ( XV_tpg InstancePtr,
u32  Data 
)

Set box green color component.

This function sets the U or G (green/chroma U) component value for the box.

Parameters
InstancePtrPointer to the XV_tpg instance
DataGreen/chroma U component value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORG_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_boxColorR ( XV_tpg InstancePtr,
u32  Data 
)

Set box red color component.

This function sets the Y or R (red/luma) component value for the box overlay.

Parameters
InstancePtrPointer to the XV_tpg instance
DataRed/luma component value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXCOLORR_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_boxSize ( XV_tpg InstancePtr,
u32  Data 
)

Set the box size.

This function sets the size of the foreground box overlay.

Parameters
InstancePtrPointer to the XV_tpg instance
DataBox size value in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_BOXSIZE_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_colorFormat ( XV_tpg InstancePtr,
u32  Data 
)

Set the color format.

This function sets the color format for the output video stream.

Parameters
InstancePtrPointer to the XV_tpg instance
DataColor format value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_COLORFORMAT_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_crossHairX ( XV_tpg InstancePtr,
u32  Data 
)

Set horizontal crosshair location.

This function sets the horizontal (X) coordinate for the crosshair overlay.

Parameters
InstancePtrPointer to the XV_tpg instance
DataHorizontal crosshair position in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_CROSSHAIRX_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_crossHairY ( XV_tpg InstancePtr,
u32  Data 
)

Set vertical crosshair location.

This function sets the vertical (Y) coordinate for the crosshair overlay.

Parameters
InstancePtrPointer to the XV_tpg instance
DataVertical crosshair position in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_CROSSHAIRY_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_dpDynamicRange ( XV_tpg InstancePtr,
u32  Data 
)

Sets the dynamic range of DisplayPort color square in RGB.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Datais the dynamic range value to be set.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_DPDYNAMICRANGE_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_dpYUVCoef ( XV_tpg InstancePtr,
u32  Data 
)

Sets the coefficients of DisplayPort color square in YUV.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Datais the YUV coefficient value to be set.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_DPYUVCOEF_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_enableInput ( XV_tpg InstancePtr,
u32  Data 
)

Enable input video stream passthrough.

This function enables the input video stream passthrough mode.

Parameters
InstancePtrPointer to the XV_tpg instance
DataEnable value (1 = enable, 0 = disable)
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ENABLEINPUT_DATA, XV_TPG_CTRL_ADDR_FIELDID_DATA, XV_TPG_CTRL_ADDR_FIELDID_PASSTHR_MASK, XV_TPG_CTRL_ADDR_FIELDID_PASSTHR_SHIFT, XV_tpg_Get_fieldId(), and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_height ( XV_tpg InstancePtr,
u32  Data 
)

Set the height of the output frame.

This function sets the height of the frame to be generated by the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
DataHeight value in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_HEIGHT_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_Interlaced ( XV_tpg InstancePtr,
_Bool  Data 
)

Enables or disables the interlaced video pattern.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Datais a boolean value to enable (TRUE) or disable (FALSE) interlaced mode.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_FIELDID_DATA, XV_TPG_CTRL_ADDR_FIELDID_INTERLACED_MASK, XV_TPG_CTRL_ADDR_FIELDID_INTERLACED_SHIFT, XV_tpg_Get_fieldId(), and XV_tpg_WriteReg.

void XV_tpg_Set_maskId ( XV_tpg InstancePtr,
u32  Data 
)

Set the color mask ID.

This function sets the color mask ID to control which color components are enabled in the output.

Parameters
InstancePtrPointer to the XV_tpg instance
DataColor mask ID value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_MASKID_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_motionEn ( XV_tpg InstancePtr,
u32  Data 
)

Enable motion for color bar pattern.

This function enables motion animation for the color bar background pattern.

Parameters
InstancePtrPointer to the XV_tpg instance
DataMotion enable value (1 = enable, 0 = disable)
Returns
None
Note
Motion is only applicable when background pattern is set to color bars

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XTPG_BKGND_COLOR_BARS, XV_TPG_CTRL_ADDR_BCK_MOTION_EN_DATA, XV_tpg_Get_bckgndId(), and XV_tpg_WriteReg.

void XV_tpg_Set_motionSpeed ( XV_tpg InstancePtr,
u32  Data 
)

Set the motion speed.

This function sets the variance of the test pattern between consecutive frames when motion is enabled.

Parameters
InstancePtrPointer to the XV_tpg instance
DataMotion speed value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_MOTIONSPEED_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_ovrlayId ( XV_tpg InstancePtr,
u32  Data 
)

Set the overlay pattern ID.

This function sets the overlay test pattern ID for the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
DataOverlay pattern ID value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_OVRLAYID_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_passthruEndX ( XV_tpg InstancePtr,
u32  Data 
)

Set passthrough window right boundary.

This function sets the right (ending X) boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
DataRight boundary X coordinate in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUENDX_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_passthruEndY ( XV_tpg InstancePtr,
u32  Data 
)

Set passthrough window lower boundary.

This function sets the lower (ending Y) boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
DataLower boundary Y coordinate in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUENDY_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_passthruStartX ( XV_tpg InstancePtr,
u32  Data 
)

Set passthrough window left boundary.

This function sets the left (starting X) boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
DataLeft boundary X coordinate in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUSTARTX_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_passthruStartY ( XV_tpg InstancePtr,
u32  Data 
)

Set passthrough window upper boundary.

This function sets the upper (starting Y) boundary of the passthrough window.

Parameters
InstancePtrPointer to the XV_tpg instance
DataUpper boundary Y coordinate in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_PASSTHRUSTARTY_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_Polarity ( XV_tpg InstancePtr,
_Bool  Data 
)

Sets the field polarity for interlaced video.

Parameters
InstancePtris a pointer to the XV_tpg instance.
Datais a boolean value to set the field polarity.
Returns
None.
Note
Asserts if the pointer is NULL or instance is not ready.

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_FIELDID_DATA, XV_TPG_CTRL_ADDR_FIELDID_POLARITY_MASK, XV_TPG_CTRL_ADDR_FIELDID_POLARITY_SHIFT, XV_tpg_Get_fieldId(), and XV_tpg_WriteReg.

void XV_tpg_Set_width ( XV_tpg InstancePtr,
u32  Data 
)

Set the width of the output frame.

This function sets the width of the frame to be generated by the TPG core.

Parameters
InstancePtrPointer to the XV_tpg instance
DataWidth value in pixels
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_WIDTH_DATA, and XV_tpg_WriteReg.

Referenced by videoIpConfig().

void XV_tpg_Set_ZplateHorContDelta ( XV_tpg InstancePtr,
u32  Data 
)

Set zone plate horizontal control delta value.

This function sets the variance (delta) between horizontal components for the zone plate pattern.

Parameters
InstancePtrPointer to the XV_tpg instance
DataHorizontal control delta value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEHORCONTDELTA_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_ZplateHorContStart ( XV_tpg InstancePtr,
u32  Data 
)

Set zone plate horizontal control start value.

This function sets the horizontal component starting point based on sinusoidal values for the zone plate test pattern.

Parameters
InstancePtrPointer to the XV_tpg instance
DataHorizontal control start value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEHORCONTSTART_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_ZplateVerContDelta ( XV_tpg InstancePtr,
u32  Data 
)

Set zone plate vertical control delta value.

This function sets the variance (delta) between vertical components for the zone plate pattern.

Parameters
InstancePtrPointer to the XV_tpg instance
DataVertical control delta value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEVERCONTDELTA_DATA, and XV_tpg_WriteReg.

void XV_tpg_Set_ZplateVerContStart ( XV_tpg InstancePtr,
u32  Data 
)

Set zone plate vertical control start value.

This function sets the vertical component starting point based on sinusoidal values for the zone plate test pattern.

Parameters
InstancePtrPointer to the XV_tpg instance
DataVertical control start value
Returns
None
Note
None

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_ZPLATEVERCONTSTART_DATA, and XV_tpg_WriteReg.

void XV_tpg_Start ( XV_tpg InstancePtr)

Start the TPG core.

This function starts the TPG core by setting the AP_START bit in the control register while preserving the auto-restart bit.

Parameters
InstancePtrPointer to the XV_tpg instance
Returns
None
Note
Instance must be initialized and ready before calling this function

References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, XV_tpg_ReadReg, and XV_tpg_WriteReg.