This header file contains identifiers and register-level driver functions (or macros) that can be used to access the Xilinx Test Pattern Generator (TPG) core instance.<p>
The TPG core provides a wide variety of tests patterns enabling you to debug and assess video system color, quality, edge, and motion performance.<p>
The Test Pattern Generator core produces the following patterns in RGB, YCbCr 444, or YCbCr 422 video format.<ul>
<li>Video input pass through</li><li>Horizontal ramp</li><li>Vertical ramp</li><li>Temporal ramp</li><li>Flat fields (red, green, blue, black and white)</li><li>Combined vertical and horizontal ramp</li><li>Color bars</li><li>Tartan bars</li><li>Zone plate</li><li>Cross hairs</li><li>Cross hatch</li><li>Solid box</li><li>Motion effect for ramps, zone plate, and solid box</li></ul>
<p>
<b>Initialization & Configuration</b><p>
The device driver enables higher layer software (e.g., an application) to communicate to the TPG core.<p>
<aclass="el"href="xtpg_8c.html#698faaf2415afa23731f5b300dffd10f">XTpg_CfgInitialize()</a> API is used to initialize the TPG core. The user needs to first call the <aclass="el"href="xtpg_8h.html#469043e8dd6792504739c48fbf9406a7">XTpg_LookupConfig()</a> API which returns the Configuration structure pointer which is passed as a parameter to the <aclass="el"href="xtpg_8c.html#698faaf2415afa23731f5b300dffd10f">XTpg_CfgInitialize()</a> API.<p>
<b> Interrupts </b><p>
The driver provides an interrupt handler XTpg_IntrHandler for handling the interrupt from the TPG core. The users of this driver have to register this handler with the interrupt system and provide the callback functions by using XTpg_SetCallBack API.<p>
<b> Virtual Memory </b><p>
This driver supports Virtual Memory. The RTOS is responsible for calculating the correct device base address in Virtual Memory space.<p>
<b> Threads </b><p>
This driver is not thread safe. Any needs for threads or thread mutual exclusion must be satisfied by the layer above this driver.<p>
<b> Asserts </b><p>
Asserts are used within all Xilinx drivers to enforce constraints on argument values. Asserts can be turned off on a system-wide basis by defining, at compile time, the NDEBUG identifier. By default, asserts are turned on and it is recommended that users leave asserts on during development.<p>
<b> Building the driver </b><p>
The <aclass="el"href="struct_x_tpg.html">XTpg</a> driver is composed of several source files. This allows the user to build and link only those parts of the driver that are necessary.<p>