![]() |
v_tpg
Vitis Drivers API Documentation
|
#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_Config * | XV_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... | |
| #define XV_tpg_ReadReg | ( | BaseAddress, | |
| RegOffset | |||
| ) | Xil_In32((BaseAddress) + (RegOffset)) |
Read a value from a register.
Referenced by XV_tpg_Get_bckgndId(), XV_tpg_Get_boxColorB(), XV_tpg_Get_boxColorG(), XV_tpg_Get_boxColorR(), XV_tpg_Get_boxSize(), XV_tpg_Get_colorFormat(), XV_tpg_Get_crossHairX(), XV_tpg_Get_crossHairY(), XV_tpg_Get_dpDynamicRange(), XV_tpg_Get_dpYUVCoef(), XV_tpg_Get_enableInput(), XV_tpg_Get_fieldId(), XV_tpg_Get_height(), XV_tpg_Get_maskId(), XV_tpg_Get_motionEnStatus(), XV_tpg_Get_motionSpeed(), XV_tpg_Get_ovrlayId(), XV_tpg_Get_passthruEndX(), XV_tpg_Get_passthruEndY(), XV_tpg_Get_passthruStartX(), XV_tpg_Get_passthruStartY(), XV_tpg_Get_width(), XV_tpg_Get_ZplateHorContDelta(), XV_tpg_Get_ZplateHorContStart(), XV_tpg_Get_ZplateVerContDelta(), XV_tpg_Get_ZplateVerContStart(), XV_tpg_InterruptDisable(), XV_tpg_InterruptEnable(), XV_tpg_InterruptGetEnabled(), XV_tpg_InterruptGetStatus(), XV_tpg_IsDone(), XV_tpg_IsIdle(), XV_tpg_IsReady(), and XV_tpg_Start().
| #define XV_tpg_WriteReg | ( | BaseAddress, | |
| RegOffset, | |||
| Data | |||
| ) | Xil_Out32((BaseAddress) + (RegOffset), (u32)(Data)) |
Write a value to a register.
Referenced by videoIpConfig(), XV_tpg_DisableAutoRestart(), XV_tpg_EnableAutoRestart(), XV_tpg_InterruptClear(), XV_tpg_InterruptDisable(), XV_tpg_InterruptEnable(), XV_tpg_InterruptGlobalDisable(), XV_tpg_InterruptGlobalEnable(), XV_tpg_Set_bckgndId(), XV_tpg_Set_boxColorB(), XV_tpg_Set_boxColorG(), XV_tpg_Set_boxColorR(), XV_tpg_Set_boxSize(), XV_tpg_Set_colorFormat(), XV_tpg_Set_crossHairX(), XV_tpg_Set_crossHairY(), XV_tpg_Set_dpDynamicRange(), XV_tpg_Set_dpYUVCoef(), XV_tpg_Set_enableInput(), XV_tpg_Set_height(), XV_tpg_Set_Interlaced(), XV_tpg_Set_maskId(), XV_tpg_Set_motionEn(), XV_tpg_Set_motionSpeed(), XV_tpg_Set_ovrlayId(), XV_tpg_Set_passthruEndX(), XV_tpg_Set_passthruEndY(), XV_tpg_Set_passthruStartX(), XV_tpg_Set_passthruStartY(), XV_tpg_Set_Polarity(), XV_tpg_Set_width(), XV_tpg_Set_ZplateHorContDelta(), XV_tpg_Set_ZplateHorContStart(), XV_tpg_Set_ZplateVerContDelta(), XV_tpg_Set_ZplateVerContStart(), and XV_tpg_Start().
| #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 void(* XVTpg_Callback)(void *InstancePtr) |
Callback function pointer type for TPG events.
| InstancePtr | is a pointer to the XV_tpg instance. |
| enum XTpg_PatternId |
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.
| enum XVTPG_HandlerType |
| 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.
| InstancePtr | Pointer to the XV_tpg instance to be initialized |
| ConfigPtr | Pointer to the configuration structure |
| EffectiveAddr | Effective base address of the TPG hardware |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance to initialize |
| BaseAddress | Base address of the TPG device to initialize |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Mask | is the interrupt mask value to clear specific interrupts. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Mask | is the interrupt mask value to disable specific interrupts. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Mask | is the interrupt mask value to enable specific interrupts. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| InstancePtr | Pointer to the XV_tpg instance |
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.
| BaseAddress | Base address of the TPG device to search for |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Background pattern ID value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Blue/chroma V component value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Green/chroma U component value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Red/luma component value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Box size value in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Color format value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Horizontal crosshair position in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Vertical crosshair position in pixels |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Data | is the dynamic range value to be set. |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Data | is the YUV coefficient value to be set. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Enable value (1 = enable, 0 = disable) |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Height value in pixels |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Data | is a boolean value to enable (TRUE) or disable (FALSE) interlaced mode. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Color mask ID value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Motion enable value (1 = enable, 0 = disable) |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Motion speed value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Overlay pattern ID value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Right boundary X coordinate in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Lower boundary Y coordinate in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Left boundary X coordinate in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Upper boundary Y coordinate in pixels |
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.
| InstancePtr | is a pointer to the XV_tpg instance. |
| Data | is a boolean value to set the field polarity. |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Width value in pixels |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Horizontal control delta value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Horizontal control start value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Vertical control delta value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
| Data | Vertical control start value |
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.
| InstancePtr | Pointer to the XV_tpg instance |
References XV_tpg_Config::BaseAddress, XV_tpg::Config, XV_tpg::IsReady, XV_TPG_CTRL_ADDR_AP_CTRL, XV_tpg_ReadReg, and XV_tpg_WriteReg.