embeddedsw/XilinxProcessorIPLib/drivers/tpg/doc/html/api/xtpg_8h.html

2542 lines
138 KiB
HTML
Raw Normal View History

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>
xtpg.h File Reference
</title>
<link href="$DriverApiDocsCssPath" rel="stylesheet" type="text/css">
</head>
<h3 class="PageHeader">Xilinx Processor IP Library</h3>
<hl>Software Drivers</hl>
<hr class="whs1">
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>xtpg.h File Reference</h1>
<p>
<code>#include &quot;xil_assert.h&quot;</code><br>
<code>#include &quot;xstatus.h&quot;</code><br>
<code>#include &quot;<a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a>&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_tpg___config.html">XTpg_Config</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_tpg.html">XTpg</a></td></tr>
<tr><td colspan="2"><br><h2>Motion Speed Ranges</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1f0acf1b4ae5b44289655b4a0ca27f34">XTPG_MOTION_SPEED_MIN</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6e76040f79f07ebddfb273aa224e9fb5">XTPG_MOTION_SPEED_MAX</a>&nbsp;&nbsp;&nbsp;255</td></tr>
<tr><td colspan="2"><br><h2>Active Size Ranges</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#83ac52466510a57a1baa79c7c6a8d86e">XTPG_VSIZE_FIRST</a>&nbsp;&nbsp;&nbsp;32</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#f34a32ca1752105b5d7a6a5eb9ac95bd">XTPG_VSIZE_LAST</a>&nbsp;&nbsp;&nbsp;7680</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#b689062bdc46127c2464edbd70a1f497">XTPG_HSIZE_FIRST</a>&nbsp;&nbsp;&nbsp;32</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6906cb7b7df0a7aa2c375e8635af0ada">XTPG_HSIZE_LAST</a>&nbsp;&nbsp;&nbsp;7680</td></tr>
<tr><td colspan="2"><br><h2>Macros for operating a TPG core</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#cef39da0dfcaabaa02bdd4e8f2aa8a62">XTpg_Enable</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#80d828ae1352852a76e8663cee7654d9">XTpg_Disable</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#da80576c8fbad71b963f0299c48cbd33">XTpg_Start</a>&nbsp;&nbsp;&nbsp;XTpg_Enable</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#13f3a677fa2b0d05e0166c2b4908d2a9">XTpg_Stop</a>&nbsp;&nbsp;&nbsp;XTpg_Disable</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#3c244c71f3d053e57d83dd8ec148446e">XTpg_RegUpdateEnable</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#f1547439ff821874b850496e9b7eaaae">XTpg_RegUpdateDisable</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6dd8b2a9ac48323b3751a4995f05f99e">XTpg_SyncReset</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#984e395b9281b106ed436954edb24246">XTpg_Reset</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#4f8e572c3d0973c9b6dc4864772788f4">XTpg_IntrEnable</a>(InstancePtr, IntrType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#d2c673d9d4963ed7219769b437355595">XTpg_IntrDisable</a>(InstancePtr, IntrType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#3dcf60ec669731c06bffd2c36e7ae89f">XTpg_StatusGetPending</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#c4c2ef0a35975ab963616621c8edca6b">XTpg_IntrGetPending</a>(InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#b86c8ed6ca55229c6d94a7773bb5326b">XTpg_IntrClear</a>(InstancePtr, IntrType)</td></tr>
<tr><td colspan="2"><br><h2>Handler Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <a class="el" href="xtpg_8h.html#06fc87d81c62e9abb8790b6e5713c55b0fe9b123d3ff59c6f9c339942cf602b8">XTPG_HANDLER_PROCSTART</a> = 1,
<a class="el" href="xtpg_8h.html#06fc87d81c62e9abb8790b6e5713c55bd71e614a85238f7ccb58edc7fa8a6840">XTPG_HANDLER_FRAMEDONE</a>,
<a class="el" href="xtpg_8h.html#06fc87d81c62e9abb8790b6e5713c55b6e599c9cd1f850e60558006c1c248eea">XTPG_HANDLER_ERROR</a>
}</td></tr>
<tr><td colspan="2"><br><h2>BackgroundPattern</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d">XTpg_BackgroundPattern</a> { <br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606dbdc8c651da2e19980bbfa1bf1611e1b2">XTPG_PASS_THROUGH</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d5486b82ac763e7fd021b1e7528c3cf6c">XTPG_H_RAMP</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606df1ca8c7e6e0599bd036e978c6e6af987">XTPG_V_RAMP</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606da0b5e90a74d3285f7dfa6eceb37c6f31">XTPG_T_RAMP</a>,
<br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d2eff0a760f266c1434ad1d36ee41ec07">XTPG_RED_PLANE</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d440581c72a5d0f0291a37818bb764d10">XTPG_GREEN_PLANE</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606dbf07a4e14b7ff3dde702429e09f6a450">XTPG_BLUE_PLANE</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d3488c7dd379445b372258f355bb82a26">XTPG_BLACK_PLANE</a>,
<br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d430079fe26a4aeb37d22fc894e05c675">XTPG_WHITE_PLANE</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d0879d626210d14c035742cede5e7f0bd">XTPG_COLOR_BARS</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606db93e621f9196bf70c348d4db2507c685">XTPG_ZONE_PLATE</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606dff1d9115be441f9ee6f91d42654cb70a">XTPG_TARAN_BARS</a>,
<br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d9e219ffd5873ba26386382c1c6ca0d56">XTPG_CROSS_HATCH</a>,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d44b5ca40c1baae1159d30150bcff9d72">XTPG_HV_RAMP</a> = 0xE,
<a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d617d126acdc0c2a516a31d41387b7975">XTPG_BLACK_AND_WHITE_CHECKERBOARD</a>
<br>
}</td></tr>
<tr><td colspan="2"><br><h2>ComponentMask</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910">XTpg_ComponentMask</a> { <a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910851c89dbb0c63e37b7b7dbf6ecf6585b">XTPG_NOMASK</a>,
<a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910655b46ae347ca5604bf892405196d99a">XTPG_MASKOUT_RED</a>,
<a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910b8bb193ec2b933b72b2b6400bd3aa332">XTPG_MASKOUT_GREEN</a>,
<a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b509106db5ff213b52175299aff9f849eaef3d">XTPG_MASKOUT_BLUE</a> = 0x4
}</td></tr>
<tr><td colspan="2"><br><h2>Bayer phase combinations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c519">XTpg_BayerPhaseCombination</a> { <br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c51984de6bffb2d37a212620ac5e78bfe937">XTPG_BAYER_PHASE_RGRG</a>,
<a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c5196abd81eb7c177f39a4f52b24f031e6e1">XTPG_BAYER_PHASE_GRGR</a>,
<a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c51961abca56e7814bf7f38959b7dee0c2b1">XTPG_BAYER_PHASE_GBGB</a>,
<a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c519e0ce0a01bcdc0106017a4333e846b8bc">XTPG_BAYER_PHASE_BGBG</a>,
<br>
&nbsp;&nbsp;<a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c5194f517d88bfbbf045fb884b62924ead52">XTPG_BAYER_PHASE_TURNOFF</a>
<br>
}</td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1f07d28753e595bda57226e62d68cd1f">XTPG_H_</a></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1b93476ac8e511e646faa7560cb37a74">XTpg_CallBack</a> (void *CallBackRef)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#216b7c3287f46cc02c019011a0b95425">XTpg_ErrorCallBack</a> (void *CallBackRef, u32 ErrorMask)</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="struct_x_tpg___config.html">XTpg_Config</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#469043e8dd6792504739c48fbf9406a7">XTpg_LookupConfig</a> (u16 DeviceId)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#698faaf2415afa23731f5b300dffd10f">XTpg_CfgInitialize</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, <a class="el" href="struct_x_tpg___config.html">XTpg_Config</a> *CfgPtr, u32 EffectiveAddr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#8d2a1715d79178d882947242bdadc6de">XTpg_Setup</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#55a55de9bc8e45cbd6cb6ccd914e6a7f">XTpg_GetVersion</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#443d73019e3e8f29e6ad1e661678f467">XTpg_SetActiveSize</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 HSize, u16 VSize)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#57155013bf0bb1be8a723b3fc3c36291">XTpg_GetActiveSize</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 *HSize, u16 *VSize)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#f6783b9a514ab1b0c6221e417052844c">XTpg_SetPattern</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 Pattern)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6256661f2a9ab5e37bf4cf9be1992599">XTpg_GetPattern</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#bbd4255a15fdc65701ac1f510d9a686e">XTpg_SetBackground</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, enum <a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d">XTpg_BackgroundPattern</a> Pattern)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#926545a06de67862ef7e47f150398b1d">XTpg_GetBackground</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#bc862dbfd1852b1dad5b0d002a301d44">XTpg_EnableCrossHair</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#ce96009eea6ebfcd71bb91b5ff16ee93">XTpg_DisableCrossHair</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#d2cf13af361a9ee4a209bb1f6ed416d2">XTpg_EnableMotion</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#eaf136930153d53e9c409cbd678aff48">XTpg_DisableMotion</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#bd33abd48691073cd4c97e8e8ecabe6c">XTpg_EnableBox</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#32b89243e5f5ef7a81178b8ac7a5c839">XTpg_DisableBox</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#f56158886e9a7035ca278a3f09719a35">XTpg_SetComponentMask</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, enum <a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910">XTpg_ComponentMask</a> Mask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#a64c3c09f85d0a9be69f95a55042f1a6">XTpg_GetComponentMask</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1bed92a1e708eaba60da6422de9a39b6">XTpg_EnableStuckPixel</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6a1145da55323ef7110e3b223550a1d4">XTpg_DisableStuckPixel</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6ef195afeba30f1bd5e0161642053f4b">XTPg_EnableNoise</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#b970215d34b5a634debc562aac9b8160">XTPg_DisableNoise</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#d60e72ebf07cb299f40c8d62b33035f7">XTpg_SetMotionSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 MotionSpeed)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#0a97328739804518e64475233ae98103">XTpg_GetMotionSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#1a75c9bdad3e12c77b33a34f4caeaad8">XTpg_SetCrosshairPosition</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 HPos, u16 VPos)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#dc3232cd715ac67bc7ac687b7eccc160">XTpg_GetCrosshairPosition</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 *HPos, u16 *VPos)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#bdbd51a634cf14b6e4aecd4d10bb02d2">XTpg_SetZPlateHStart</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 ZPlateHStart)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#3c2504055b1745d04914578d2751c7b1">XTpg_GetZPlateHStart</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#3f8e4cb9ba82d5e0cd795115a90be70c">XTpg_SetZPlateHSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 ZPlateHSpeed)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#cf98040119054a473c4142be893bac7e">XTpg_GetZPlateHSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#e65b702fac1b48c6a8c9a6c7cd4d300a">XTpg_SetZPlateVStart</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 ZPlateVStart)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#a87dda13d4eed857bff5e652d6b8c86c">XTpg_GetZPlateVStart</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#40326b8e25f4fe2d5f270f841bc47ece">XTpg_SetZPlateVSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 ZPlateVSpeed)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#8b60fc34e62837b38f417e71885377ca">XTpg_GetZPlateVSpeed</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#a27f2faddfd8c184687a7cd70ac71ad4">XTpg_SetBoxSize</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 BoxSize)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#06ff7179299fcc305e52b0c70527caba">XTpg_GetBoxSize</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#b37f41e5b55568b965bac4adbd8212ab">XTpg_SetBoxColor</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 Blue, u16 Green, u16 Red)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#5959231490808cb1d84528f8157b077b">XTpg_GetBoxColor</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u16 *Blue, u16 *Green, u16 *Red)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#5fd07581e1d4d647153f6f7aceac999d">XTpg_SetStuckPixelThreshold</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 PixelThreshold)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#cb1f626ac7c66c678fc21fe9bdcb9e02">XTpg_GetStuckPixelThreshold</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#fe20be225a9b43e342e0ccd11f0ae3c9">XTpg_SetNoiseGain</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 NoiseGain)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#d1c4aa5543691d012b272a1527ebccac">XTpg_GetNoiseGain</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#a0212da7460aae9993a9624dfa7a9006">XTpg_SetBayerPhase</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, enum <a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c519">XTpg_BayerPhaseCombination</a> BayerPhaseComb)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#5bb2f302ceb32b9862de7a9f4e034e0c">XTpg_GetBayerPhase</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#4811952068028d9bdcf3e8beef071498">XTpg_SelfTest</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#53708212cf002f479926a6896aa8ef04">XTpg_IntrHandler</a> (void *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtpg_8h.html#6ca7050dcbbe005a69bd15cf2199de11">XTpg_SetCallBack</a> (<a class="el" href="struct_x_tpg.html">XTpg</a> *InstancePtr, u32 HandlerType, void *CallBackFunc, void *CallBackRef)</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="80d828ae1352852a76e8663cee7654d9"></a><!-- doxytag: member="xtpg.h::XTpg_Disable" ref="80d828ae1352852a76e8663cee7654d9" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_Disable </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), \
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>)) &amp; \
(~(<a class="code" href="xtpg__hw_8h.html#c5a88b7069eac263e1a01030eedb5217">XTPG_CTL_SW_EN_MASK</a>))))
</pre></div>This function macro disables the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#80d828ae1352852a76e8663cee7654d9">XTpg_Disable(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cef39da0dfcaabaa02bdd4e8f2aa8a62"></a><!-- doxytag: member="xtpg.h::XTpg_Enable" ref="cef39da0dfcaabaa02bdd4e8f2aa8a62" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_Enable </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), \
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>)) | (<a class="code" href="xtpg__hw_8h.html#c5a88b7069eac263e1a01030eedb5217">XTPG_CTL_SW_EN_MASK</a>)))
</pre></div>This function macro enables the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#cef39da0dfcaabaa02bdd4e8f2aa8a62">XTpg_Enable(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1f07d28753e595bda57226e62d68cd1f"></a><!-- doxytag: member="xtpg.h::XTPG_H_" ref="1f07d28753e595bda57226e62d68cd1f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_H_ </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Prevent circular inclusions by using protection macros
</div>
</div><p>
<a class="anchor" name="b689062bdc46127c2464edbd70a1f497"></a><!-- doxytag: member="xtpg.h::XTPG_HSIZE_FIRST" ref="b689062bdc46127c2464edbd70a1f497" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_HSIZE_FIRST&nbsp;&nbsp;&nbsp;32 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Horizontal Size starting value
</div>
</div><p>
<a class="anchor" name="6906cb7b7df0a7aa2c375e8635af0ada"></a><!-- doxytag: member="xtpg.h::XTPG_HSIZE_LAST" ref="6906cb7b7df0a7aa2c375e8635af0ada" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_HSIZE_LAST&nbsp;&nbsp;&nbsp;7680 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Horizontal Size ending value
</div>
</div><p>
<a class="anchor" name="b86c8ed6ca55229c6d94a7773bb5326b"></a><!-- doxytag: member="xtpg.h::XTpg_IntrClear" ref="b86c8ed6ca55229c6d94a7773bb5326b" args="(InstancePtr, IntrType)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_IntrClear </td>
<td>(</td>
<td class="paramtype">InstancePtr, <tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">IntrType&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#ac60a6adc8b96f9410f851500fbc2123">XTPG_STATUS_OFFSET</a>),\
(IntrType) &amp; ((u32)(<a class="code" href="xtpg__hw_8h.html#1ea4ea36d109c8d16cfcf0ccc6c648d0">XTPG_IXR_ALLINTR_MASK</a>)))
</pre></div>This function macro clears/acknowledges pending interrupts of the TPG core in the Status register. Bit positions of 1 will be cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IntrType</em>&nbsp;</td><td>is the pending interrupts to clear/acknowledge. Use OR'ing of XTPG_IXR_*_MASK constants defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a> to create this parameter value.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#b86c8ed6ca55229c6d94a7773bb5326b">XTpg_IntrClear(XTpg *InstancePtr, u32 IntrType)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="d2c673d9d4963ed7219769b437355595"></a><!-- doxytag: member="xtpg.h::XTpg_IntrDisable" ref="d2c673d9d4963ed7219769b437355595" args="(InstancePtr, IntrType)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_IntrDisable </td>
<td>(</td>
<td class="paramtype">InstancePtr, <tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">IntrType&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, (<a class="code" href="xtpg__hw_8h.html#fe29c531f32f9a6f7c05b25f83395d16">XTPG_IRQ_EN_OFFSET</a>),\
<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#fe29c531f32f9a6f7c05b25f83395d16">XTPG_IRQ_EN_OFFSET</a>)) &amp; ((~(IntrType)) &amp; \
(<a class="code" href="xtpg__hw_8h.html#1ea4ea36d109c8d16cfcf0ccc6c648d0">XTPG_IXR_ALLINTR_MASK</a>)))
</pre></div>This function macro disables individual interrupts of the TPG core by updating the IRQ_ENABLE register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IntrType</em>&nbsp;</td><td>is the bit-mask of the interrupts to be disabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XTPG_IXR_*_MASK bits defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Any other interrupt not covered by parameter IntrType, if enabled before this macro is called, will remain enabled. C-style signature: void <a class="el" href="xtpg_8h.html#d2c673d9d4963ed7219769b437355595">XTpg_IntrDisable(XTpg *InstancePtr, u32 IntrType)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="4f8e572c3d0973c9b6dc4864772788f4"></a><!-- doxytag: member="xtpg.h::XTpg_IntrEnable" ref="4f8e572c3d0973c9b6dc4864772788f4" args="(InstancePtr, IntrType)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_IntrEnable </td>
<td>(</td>
<td class="paramtype">InstancePtr, <tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">IntrType&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, (<a class="code" href="xtpg__hw_8h.html#fe29c531f32f9a6f7c05b25f83395d16">XTPG_IRQ_EN_OFFSET</a>),\
((IntrType) &amp; (<a class="code" href="xtpg__hw_8h.html#1ea4ea36d109c8d16cfcf0ccc6c648d0">XTPG_IXR_ALLINTR_MASK</a>)) | \
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#fe29c531f32f9a6f7c05b25f83395d16">XTPG_IRQ_EN_OFFSET</a>))))
</pre></div>This function macro enables individual interrupts of the TPG core by updating the IRQ_ENABLE register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IntrType</em>&nbsp;</td><td>is the bit-mask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XTPG_IXR_*_MASK bits defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The existing enabled interrupt(s) will remain enabled. C-style signature: void <a class="el" href="xtpg_8h.html#4f8e572c3d0973c9b6dc4864772788f4">XTpg_IntrEnable(XTpg *InstancePtr, u32 IntrType)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c4c2ef0a35975ab963616621c8edca6b"></a><!-- doxytag: member="xtpg.h::XTpg_IntrGetPending" ref="c4c2ef0a35975ab963616621c8edca6b" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_IntrGetPending </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#fe29c531f32f9a6f7c05b25f83395d16">XTPG_IRQ_EN_OFFSET</a>)) &amp;\
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#ac60a6adc8b96f9410f851500fbc2123">XTPG_STATUS_OFFSET</a>)) &amp; ((u32)<a class="code" href="xtpg__hw_8h.html#1ea4ea36d109c8d16cfcf0ccc6c648d0">XTPG_IXR_ALLINTR_MASK</a>))
</pre></div>This function macro returns the pending interrupts of the TPG core for the interrupts that have been enabled.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pending interrupts of the TPG. Use XTPG_IXR_*_MASK constants defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a> to interpret this value. The returned value is a logical AND of the contents of the Status Register and the IRQ_ENABLE Register.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: u32 <a class="el" href="xtpg_8h.html#c4c2ef0a35975ab963616621c8edca6b">XTpg_IntrGetPending(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="6e76040f79f07ebddfb273aa224e9fb5"></a><!-- doxytag: member="xtpg.h::XTPG_MOTION_SPEED_MAX" ref="6e76040f79f07ebddfb273aa224e9fb5" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_MOTION_SPEED_MAX&nbsp;&nbsp;&nbsp;255 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Motion Speed maximum value
</div>
</div><p>
<a class="anchor" name="1f0acf1b4ae5b44289655b4a0ca27f34"></a><!-- doxytag: member="xtpg.h::XTPG_MOTION_SPEED_MIN" ref="1f0acf1b4ae5b44289655b4a0ca27f34" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_MOTION_SPEED_MIN&nbsp;&nbsp;&nbsp;0 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Motion Speed minimum value
</div>
</div><p>
<a class="anchor" name="f1547439ff821874b850496e9b7eaaae"></a><!-- doxytag: member="xtpg.h::XTpg_RegUpdateDisable" ref="f1547439ff821874b850496e9b7eaaae" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_RegUpdateDisable </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), \
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>)) &amp; (~(<a class="code" href="xtpg__hw_8h.html#39e3278c5b90e6fe9cc816a1286544d4">XTPG_CTL_RUE_MASK</a>))))
</pre></div>This function macro prevents the TPG core from committing recent changes made so far by the software. When disabled, changes to other configuration registers are stored, but do not effect the behavior of the core.<p>
This function only works when the TPG core is enabled.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#f1547439ff821874b850496e9b7eaaae">XTpg_RegUpdateDisable(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3c244c71f3d053e57d83dd8ec148446e"></a><!-- doxytag: member="xtpg.h::XTpg_RegUpdateEnable" ref="3c244c71f3d053e57d83dd8ec148446e" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_RegUpdateEnable </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), \
(<a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>)) | (<a class="code" href="xtpg__hw_8h.html#39e3278c5b90e6fe9cc816a1286544d4">XTPG_CTL_RUE_MASK</a>)))
</pre></div>This function macro commits all the register value changes made so far by the software to the TPG core.<p>
This function only works when the TPG core is enabled.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#3c244c71f3d053e57d83dd8ec148446e">XTpg_RegUpdateEnable(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="984e395b9281b106ed436954edb24246"></a><!-- doxytag: member="xtpg.h::XTpg_Reset" ref="984e395b9281b106ed436954edb24246" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_Reset </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), (<a class="code" href="xtpg__hw_8h.html#62f060cf6aa1ca4f83e836a3b896858e">XTPG_CTL_RESET_MASK</a>))
</pre></div>This function macro resets a TPG core. This reset effects the core immediately and may cause image tearing.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This reset resets the TPG configuration registers. C-style signature: void <a class="el" href="xtpg_8h.html#984e395b9281b106ed436954edb24246">XTpg_Reset(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="da80576c8fbad71b963f0299c48cbd33"></a><!-- doxytag: member="xtpg.h::XTpg_Start" ref="da80576c8fbad71b963f0299c48cbd33" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_Start&nbsp;&nbsp;&nbsp;XTpg_Enable </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function macro enables/starts the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#da80576c8fbad71b963f0299c48cbd33">XTpg_Start(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3dcf60ec669731c06bffd2c36e7ae89f"></a><!-- doxytag: member="xtpg.h::XTpg_StatusGetPending" ref="3dcf60ec669731c06bffd2c36e7ae89f" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_StatusGetPending </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#2b30ef24c0847197fa8ac1bc4aff814c">XTpg_ReadReg</a>((InstancePtr)-&gt;Config.BaseAddress, \
(<a class="code" href="xtpg__hw_8h.html#ac60a6adc8b96f9410f851500fbc2123">XTPG_STATUS_OFFSET</a>)) &amp; \
(<a class="code" href="xtpg__hw_8h.html#1ea4ea36d109c8d16cfcf0ccc6c648d0">XTPG_IXR_ALLINTR_MASK</a>)
</pre></div>This function macro returns the pending interrupt status of the TPG core read from the Status register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The pending interrupts of the TPG. Use XTPG_IXR_*_MASK constants defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a> to interpret this value.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: u32 XTpg_StatusGePending(XTpg *InstancePtr) </dd></dl>
</div>
</div><p>
<a class="anchor" name="13f3a677fa2b0d05e0166c2b4908d2a9"></a><!-- doxytag: member="xtpg.h::XTpg_Stop" ref="13f3a677fa2b0d05e0166c2b4908d2a9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_Stop&nbsp;&nbsp;&nbsp;XTpg_Disable </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function macro disables/stops the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#13f3a677fa2b0d05e0166c2b4908d2a9">XTpg_Stop(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="6dd8b2a9ac48323b3751a4995f05f99e"></a><!-- doxytag: member="xtpg.h::XTpg_SyncReset" ref="6dd8b2a9ac48323b3751a4995f05f99e" args="(InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTpg_SyncReset </td>
<td>(</td>
<td class="paramtype">InstancePtr&nbsp;</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="xtpg__hw_8h.html#d294faacba4217a983999dfe77420cce">XTpg_WriteReg</a>(((InstancePtr)-&gt;Config.BaseAddress), \
(<a class="code" href="xtpg__hw_8h.html#0f1e3ea3cc30cd27e6ee6d4b36647e08">XTPG_CONTROL_OFFSET</a>), (<a class="code" href="xtpg__hw_8h.html#d37da6216b2136d32ee4db03da1a276f">XTPG_CTL_AUTORESET_MASK</a>))
</pre></div>This function macro resets a TPG core at the end of the frame being processed. It enables core automatically synchronizes to the SOF of the core to prevent image tearing. This function macro is differ from <a class="el" href="xtpg_8h.html#984e395b9281b106ed436954edb24246">XTpg_Reset()</a>.<p>
On the next rising-edge of SOF following a call to <a class="el" href="xtpg_8h.html#6dd8b2a9ac48323b3751a4995f05f99e">XTpg_SyncReset()</a>, all of the core's configuration registers and outputs will be reset, then the reset flag will be immediately released, allowing the core to immediately resume default operation.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>C-style signature: void <a class="el" href="xtpg_8h.html#6dd8b2a9ac48323b3751a4995f05f99e">XTpg_SyncReset(XTpg *InstancePtr)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="83ac52466510a57a1baa79c7c6a8d86e"></a><!-- doxytag: member="xtpg.h::XTPG_VSIZE_FIRST" ref="83ac52466510a57a1baa79c7c6a8d86e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_VSIZE_FIRST&nbsp;&nbsp;&nbsp;32 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Vertical Size starting value
</div>
</div><p>
<a class="anchor" name="f34a32ca1752105b5d7a6a5eb9ac95bd"></a><!-- doxytag: member="xtpg.h::XTPG_VSIZE_LAST" ref="f34a32ca1752105b5d7a6a5eb9ac95bd" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define XTPG_VSIZE_LAST&nbsp;&nbsp;&nbsp;7680 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Vertical Size ending value
</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="1b93476ac8e511e646faa7560cb37a74"></a><!-- doxytag: member="xtpg.h::XTpg_CallBack" ref="1b93476ac8e511e646faa7560cb37a74" args="(void *CallBackRef)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(*) <a class="el" href="xtpg_8h.html#1b93476ac8e511e646faa7560cb37a74">XTpg_CallBack</a>(void *CallBackRef) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Callback type for all interrupts except error interrupt.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>CallBackRef</em>&nbsp;</td><td>is a callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="216b7c3287f46cc02c019011a0b95425"></a><!-- doxytag: member="xtpg.h::XTpg_ErrorCallBack" ref="216b7c3287f46cc02c019011a0b95425" args="(void *CallBackRef, u32 ErrorMask)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(*) <a class="el" href="xtpg_8h.html#216b7c3287f46cc02c019011a0b95425">XTpg_ErrorCallBack</a>(void *CallBackRef, u32 ErrorMask) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Callback type for Error interrupt.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>CallBackRef</em>&nbsp;</td><td>is a callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ErrorMask</em>&nbsp;</td><td>is a bit mask indicating the cause of the error. Its value equals 'OR'ing one or more XTPG_IXR_*_MASK values defined in <a class="el" href="xtpg__hw_8h.html">xtpg_hw.h</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b"></a><!-- doxytag: member="xtpg.h::@0" ref="06fc87d81c62e9abb8790b6e5713c55b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">anonymous enum </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
These constants specify different types of handlers and used to differentiate interrupt requests from core. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b0fe9b123d3ff59c6f9c339942cf602b8"></a><!-- doxytag: member="XTPG_HANDLER_PROCSTART" ref="06fc87d81c62e9abb8790b6e5713c55b0fe9b123d3ff59c6f9c339942cf602b8" args="" -->XTPG_HANDLER_PROCSTART</em>&nbsp;</td><td>
A processing start event interrupt type </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55bd71e614a85238f7ccb58edc7fa8a6840"></a><!-- doxytag: member="XTPG_HANDLER_FRAMEDONE" ref="06fc87d81c62e9abb8790b6e5713c55bd71e614a85238f7ccb58edc7fa8a6840" args="" -->XTPG_HANDLER_FRAMEDONE</em>&nbsp;</td><td>
A frame done event interrupt type </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b6e599c9cd1f850e60558006c1c248eea"></a><!-- doxytag: member="XTPG_HANDLER_ERROR" ref="06fc87d81c62e9abb8790b6e5713c55b6e599c9cd1f850e60558006c1c248eea" args="" -->XTPG_HANDLER_ERROR</em>&nbsp;</td><td>
An error condition event interrupt type </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="2e143ee9595509e9f14a379fd271606d"></a><!-- doxytag: member="xtpg.h::XTpg_BackgroundPattern" ref="2e143ee9595509e9f14a379fd271606d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d">XTpg_BackgroundPattern</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
These constants specify different types of background patterns supported by the core. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606dbdc8c651da2e19980bbfa1bf1611e1b2"></a><!-- doxytag: member="XTPG_PASS_THROUGH" ref="2e143ee9595509e9f14a379fd271606dbdc8c651da2e19980bbfa1bf1611e1b2" args="" -->XTPG_PASS_THROUGH</em>&nbsp;</td><td>
Pass video input straight through the video output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d5486b82ac763e7fd021b1e7528c3cf6c"></a><!-- doxytag: member="XTPG_H_RAMP" ref="2e143ee9595509e9f14a379fd271606d5486b82ac763e7fd021b1e7528c3cf6c" args="" -->XTPG_H_RAMP</em>&nbsp;</td><td>
Horizontal ramp </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606df1ca8c7e6e0599bd036e978c6e6af987"></a><!-- doxytag: member="XTPG_V_RAMP" ref="2e143ee9595509e9f14a379fd271606df1ca8c7e6e0599bd036e978c6e6af987" args="" -->XTPG_V_RAMP</em>&nbsp;</td><td>
Vertical ramp </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606da0b5e90a74d3285f7dfa6eceb37c6f31"></a><!-- doxytag: member="XTPG_T_RAMP" ref="2e143ee9595509e9f14a379fd271606da0b5e90a74d3285f7dfa6eceb37c6f31" args="" -->XTPG_T_RAMP</em>&nbsp;</td><td>
Temporal ramp </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d2eff0a760f266c1434ad1d36ee41ec07"></a><!-- doxytag: member="XTPG_RED_PLANE" ref="2e143ee9595509e9f14a379fd271606d2eff0a760f266c1434ad1d36ee41ec07" args="" -->XTPG_RED_PLANE</em>&nbsp;</td><td>
Solid red output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d440581c72a5d0f0291a37818bb764d10"></a><!-- doxytag: member="XTPG_GREEN_PLANE" ref="2e143ee9595509e9f14a379fd271606d440581c72a5d0f0291a37818bb764d10" args="" -->XTPG_GREEN_PLANE</em>&nbsp;</td><td>
Solid green output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606dbf07a4e14b7ff3dde702429e09f6a450"></a><!-- doxytag: member="XTPG_BLUE_PLANE" ref="2e143ee9595509e9f14a379fd271606dbf07a4e14b7ff3dde702429e09f6a450" args="" -->XTPG_BLUE_PLANE</em>&nbsp;</td><td>
Solid blue output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d3488c7dd379445b372258f355bb82a26"></a><!-- doxytag: member="XTPG_BLACK_PLANE" ref="2e143ee9595509e9f14a379fd271606d3488c7dd379445b372258f355bb82a26" args="" -->XTPG_BLACK_PLANE</em>&nbsp;</td><td>
Solid black output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d430079fe26a4aeb37d22fc894e05c675"></a><!-- doxytag: member="XTPG_WHITE_PLANE" ref="2e143ee9595509e9f14a379fd271606d430079fe26a4aeb37d22fc894e05c675" args="" -->XTPG_WHITE_PLANE</em>&nbsp;</td><td>
Solid white output </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d0879d626210d14c035742cede5e7f0bd"></a><!-- doxytag: member="XTPG_COLOR_BARS" ref="2e143ee9595509e9f14a379fd271606d0879d626210d14c035742cede5e7f0bd" args="" -->XTPG_COLOR_BARS</em>&nbsp;</td><td>
Color bars </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606db93e621f9196bf70c348d4db2507c685"></a><!-- doxytag: member="XTPG_ZONE_PLATE" ref="2e143ee9595509e9f14a379fd271606db93e621f9196bf70c348d4db2507c685" args="" -->XTPG_ZONE_PLATE</em>&nbsp;</td><td>
Zone plate output (sinusoidal) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606dff1d9115be441f9ee6f91d42654cb70a"></a><!-- doxytag: member="XTPG_TARAN_BARS" ref="2e143ee9595509e9f14a379fd271606dff1d9115be441f9ee6f91d42654cb70a" args="" -->XTPG_TARAN_BARS</em>&nbsp;</td><td>
Tartan color bars </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d9e219ffd5873ba26386382c1c6ca0d56"></a><!-- doxytag: member="XTPG_CROSS_HATCH" ref="2e143ee9595509e9f14a379fd271606d9e219ffd5873ba26386382c1c6ca0d56" args="" -->XTPG_CROSS_HATCH</em>&nbsp;</td><td>
Cross hatch pattern </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d44b5ca40c1baae1159d30150bcff9d72"></a><!-- doxytag: member="XTPG_HV_RAMP" ref="2e143ee9595509e9f14a379fd271606d44b5ca40c1baae1159d30150bcff9d72" args="" -->XTPG_HV_RAMP</em>&nbsp;</td><td>
Horizontal vertical ramp </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2e143ee9595509e9f14a379fd271606d617d126acdc0c2a516a31d41387b7975"></a><!-- doxytag: member="XTPG_BLACK_AND_WHITE_CHECKERBOARD" ref="2e143ee9595509e9f14a379fd271606d617d126acdc0c2a516a31d41387b7975" args="" -->XTPG_BLACK_AND_WHITE_CHECKERBOARD</em>&nbsp;</td><td>
Black and white checker board </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c519"></a><!-- doxytag: member="xtpg.h::XTpg_BayerPhaseCombination" ref="cd31acaea34a0ee434bb96a76ab6c519" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c519">XTpg_BayerPhaseCombination</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
These constants specify Bayer phase combinations of the core. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c51984de6bffb2d37a212620ac5e78bfe937"></a><!-- doxytag: member="XTPG_BAYER_PHASE_RGRG" ref="cd31acaea34a0ee434bb96a76ab6c51984de6bffb2d37a212620ac5e78bfe937" args="" -->XTPG_BAYER_PHASE_RGRG</em>&nbsp;</td><td>
Red green combination </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c5196abd81eb7c177f39a4f52b24f031e6e1"></a><!-- doxytag: member="XTPG_BAYER_PHASE_GRGR" ref="cd31acaea34a0ee434bb96a76ab6c5196abd81eb7c177f39a4f52b24f031e6e1" args="" -->XTPG_BAYER_PHASE_GRGR</em>&nbsp;</td><td>
Green red combination </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c51961abca56e7814bf7f38959b7dee0c2b1"></a><!-- doxytag: member="XTPG_BAYER_PHASE_GBGB" ref="cd31acaea34a0ee434bb96a76ab6c51961abca56e7814bf7f38959b7dee0c2b1" args="" -->XTPG_BAYER_PHASE_GBGB</em>&nbsp;</td><td>
Green blue combination </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c519e0ce0a01bcdc0106017a4333e846b8bc"></a><!-- doxytag: member="XTPG_BAYER_PHASE_BGBG" ref="cd31acaea34a0ee434bb96a76ab6c519e0ce0a01bcdc0106017a4333e846b8bc" args="" -->XTPG_BAYER_PHASE_BGBG</em>&nbsp;</td><td>
Blue green combination </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd31acaea34a0ee434bb96a76ab6c5194f517d88bfbbf045fb884b62924ead52"></a><!-- doxytag: member="XTPG_BAYER_PHASE_TURNOFF" ref="cd31acaea34a0ee434bb96a76ab6c5194f517d88bfbbf045fb884b62924ead52" args="" -->XTPG_BAYER_PHASE_TURNOFF</em>&nbsp;</td><td>
Turn off the Bayer phase </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="1f1917d8a17d4c602c86ebb711b50910"></a><!-- doxytag: member="xtpg.h::XTpg_ComponentMask" ref="1f1917d8a17d4c602c86ebb711b50910" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910">XTpg_ComponentMask</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
These constants specify mask outs for a particular color component. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="1f1917d8a17d4c602c86ebb711b50910851c89dbb0c63e37b7b7dbf6ecf6585b"></a><!-- doxytag: member="XTPG_NOMASK" ref="1f1917d8a17d4c602c86ebb711b50910851c89dbb0c63e37b7b7dbf6ecf6585b" args="" -->XTPG_NOMASK</em>&nbsp;</td><td>
No masking </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1f1917d8a17d4c602c86ebb711b50910655b46ae347ca5604bf892405196d99a"></a><!-- doxytag: member="XTPG_MASKOUT_RED" ref="1f1917d8a17d4c602c86ebb711b50910655b46ae347ca5604bf892405196d99a" args="" -->XTPG_MASKOUT_RED</em>&nbsp;</td><td>
Mask out red, Cr(for YCbCr mode) component </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1f1917d8a17d4c602c86ebb711b50910b8bb193ec2b933b72b2b6400bd3aa332"></a><!-- doxytag: member="XTPG_MASKOUT_GREEN" ref="1f1917d8a17d4c602c86ebb711b50910b8bb193ec2b933b72b2b6400bd3aa332" args="" -->XTPG_MASKOUT_GREEN</em>&nbsp;</td><td>
Mask out green, Y( for YCbCr mode) component </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1f1917d8a17d4c602c86ebb711b509106db5ff213b52175299aff9f849eaef3d"></a><!-- doxytag: member="XTPG_MASKOUT_BLUE" ref="1f1917d8a17d4c602c86ebb711b509106db5ff213b52175299aff9f849eaef3d" args="" -->XTPG_MASKOUT_BLUE</em>&nbsp;</td><td>
Mask out blue, Cr(for YCbCr mode) component </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="698faaf2415afa23731f5b300dffd10f"></a><!-- doxytag: member="xtpg.h::XTpg_CfgInitialize" ref="698faaf2415afa23731f5b300dffd10f" args="(XTpg *InstancePtr, XTpg_Config *CfgPtr, u32 EffectiveAddr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XTpg_CfgInitialize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_tpg___config.html">XTpg_Config</a> *&nbsp;</td>
<td class="paramname"> <em>CfgPtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>EffectiveAddr</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function initializes the TPG core. This function must be called prior to using the TPG core. Initialization of the TPG includes setting up the instance data and ensuring the hardware is in a quiescent state.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>CfgPtr</em>&nbsp;</td><td>is a reference to a structure containing information about a specific <a class="el" href="struct_x_tpg.html">XTpg</a> instace. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>EffectiveAddr</em>&nbsp;</td><td>is the core base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the core physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, pass in the physical address instead.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>- XST_SUCCESS if <a class="el" href="struct_x_tpg.html">XTpg</a> instance initialization was successful.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="32b89243e5f5ef7a81178b8ac7a5c839"></a><!-- doxytag: member="xtpg.h::XTpg_DisableBox" ref="32b89243e5f5ef7a81178b8ac7a5c839" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_DisableBox </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables the Moving Box feature in the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="ce96009eea6ebfcd71bb91b5ff16ee93"></a><!-- doxytag: member="xtpg.h::XTpg_DisableCrossHair" ref="ce96009eea6ebfcd71bb91b5ff16ee93" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_DisableCrossHair </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables the drawing of Cross Hairs feature in the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="eaf136930153d53e9c409cbd678aff48"></a><!-- doxytag: member="xtpg.h::XTpg_DisableMotion" ref="eaf136930153d53e9c409cbd678aff48" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_DisableMotion </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables the Motion feature in the Pattern Control register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="b970215d34b5a634debc562aac9b8160"></a><!-- doxytag: member="xtpg.h::XTPg_DisableNoise" ref="b970215d34b5a634debc562aac9b8160" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTPg_DisableNoise </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables the Noise on the output by disabling this feature in Pattern Control register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="6a1145da55323ef7110e3b223550a1d4"></a><!-- doxytag: member="xtpg.h::XTpg_DisableStuckPixel" ref="6a1145da55323ef7110e3b223550a1d4" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_DisableStuckPixel </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables the Stuck Pixel feature in the Pattern Control register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="bd33abd48691073cd4c97e8e8ecabe6c"></a><!-- doxytag: member="xtpg.h::XTpg_EnableBox" ref="bd33abd48691073cd4c97e8e8ecabe6c" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_EnableBox </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the Moving Box feature in the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd><ul>
<li>XTpg_SetBoxSize API should be used for setting box size.</li><li>XTpg_SetBoxColor API should be used for setting box color. </li></ul>
</dd></dl>
</div>
</div><p>
<a class="anchor" name="bc862dbfd1852b1dad5b0d002a301d44"></a><!-- doxytag: member="xtpg.h::XTpg_EnableCrossHair" ref="bc862dbfd1852b1dad5b0d002a301d44" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_EnableCrossHair </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the drawing of Cross Hairs feature in the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>To draw the Cross Hairs, the position of drawing must be set by using XTpg_SetCrosshairPosition. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d2cf13af361a9ee4a209bb1f6ed416d2"></a><!-- doxytag: member="xtpg.h::XTpg_EnableMotion" ref="d2cf13af361a9ee4a209bb1f6ed416d2" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_EnableMotion </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the Motion Feature in the Pattern Control register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="6ef195afeba30f1bd5e0161642053f4b"></a><!-- doxytag: member="xtpg.h::XTPg_EnableNoise" ref="6ef195afeba30f1bd5e0161642053f4b" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTPg_EnableNoise </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the Noise on the output by setting value in Pattern Control register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>XTpg_SetNoiseGain API should be used to increase or decrease the noise produced on the output. </dd></dl>
</div>
</div><p>
<a class="anchor" name="1bed92a1e708eaba60da6422de9a39b6"></a><!-- doxytag: member="xtpg.h::XTpg_EnableStuckPixel" ref="1bed92a1e708eaba60da6422de9a39b6" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_EnableStuckPixel </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the Stuck Pixel Feature in the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>XTpg_SetStuckPixelThreshold API should be used to set Stuck Pixel threshold value. </dd></dl>
</div>
</div><p>
<a class="anchor" name="57155013bf0bb1be8a723b3fc3c36291"></a><!-- doxytag: member="xtpg.h::XTpg_GetActiveSize" ref="57155013bf0bb1be8a723b3fc3c36291" args="(XTpg *InstancePtr, u16 *HSize, u16 *VSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_GetActiveSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>HSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>VSize</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the number of Active Pixel per Scan line and number of Active Lines per Frame from the Active Size register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HSize</em>&nbsp;</td><td>is a pointer to 16-bit variable in which the number of Active Pixels per Scan Line is returned. (Range is 32 to 7680). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VSize</em>&nbsp;</td><td>is a pointer to 16-bit variable in which the number of Active Lines per Frame is returned. (Range is 32 to 7680). </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="926545a06de67862ef7e47f150398b1d"></a><!-- doxytag: member="xtpg.h::XTpg_GetBackground" ref="926545a06de67862ef7e47f150398b1d" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetBackground </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the background pattern for TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Background pattern is returned. The enum values for corresponding Background pattern value is<ul>
<li>0x0 XTPG_PASS_THROUGH- Pass video input straight video output</li><li>0x1 XTPG_H_RAMP - Horizontal ramp</li><li>0x2 XTPG_V_RAMP - Vertical ramp</li><li>0x3 XTPG_R_RAMP - Temporal ramp</li><li>0x4 XTPG_RED_PLANE - Solid red output</li><li>0x5 XTPG_GREEN_PLANE - Solid green output</li><li>0x6 XTPG_BLUE_PLANE - Solid blue output</li><li>0x7 XTPG_BLACK_PLANE - Solid black output</li><li>0x8 XTPG_WHITE_PLANE - Solid white output</li><li>0x9 XTPG_COLOR_BARS - Color bars</li><li>0xA XTPG_ZONE_PLATE - Zone plate output (sinusoidal)</li><li>0xB XTPG_TARAN_BARS - Tartan color bars</li><li>0xC XTPG_CROSS_HATCH - Cross hatch pattern</li><li>0xE XTPG_HV_RAMP - Horizontal vertical ramp</li><li>0xF XTPG_BLACK_AND_WHITE_CHECKERBOARD - Black and white checker board</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="5bb2f302ceb32b9862de7a9f4e034e0c"></a><!-- doxytag: member="xtpg.h::XTpg_GetBayerPhase" ref="5bb2f302ceb32b9862de7a9f4e034e0c" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetBayerPhase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the Bayer phase value which indicates starting pixel position.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>BayerPhase is the starting pixel indicator is returned. Corresponding enum values for Bayer Phase are:<ul>
<li>Bayer Phase 0 - XTPG_BAYER_PHASE_RGRG.</li><li>Bayer Phase 1 - XTPG_BAYER_PHASE_GRGR.</li><li>Bayer Phase 2 - XTPG_BAYER_PHASE_GBGB.</li><li>Bayer Phase 3 - XTPG_BAYER_PHASE_BGBG.</li><li>Bayer Phase 4 - XTPG_BAYER_PHASE_TURNOFF.</li><li>It is a double buffered register.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="5959231490808cb1d84528f8157b077b"></a><!-- doxytag: member="xtpg.h::XTpg_GetBoxColor" ref="5959231490808cb1d84528f8157b077b" args="(XTpg *InstancePtr, u16 *Blue, u16 *Green, u16 *Red)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_GetBoxColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>Blue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>Green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>Red</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the color components of the box in the Box Color register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Blue</em>&nbsp;</td><td>is a pointer to 16 bit color component of the box in which blue or Y (for YCbCr mode) is returned. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Green</em>&nbsp;</td><td>is a pointer to 16 bit color component of the box in which Green or Cr (for YCbCr mode) is returned. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Red</em>&nbsp;</td><td>is a pointer to 16 bit color component of the box in which Red or Cb (for YCbCr mode) is returned.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="06ff7179299fcc305e52b0c70527caba"></a><!-- doxytag: member="xtpg.h::XTpg_GetBoxSize" ref="06ff7179299fcc305e52b0c70527caba" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetBoxSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the Box Size in pixel.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>BoxSize is the size of a box in pixel.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a64c3c09f85d0a9be69f95a55042f1a6"></a><!-- doxytag: member="xtpg.h::XTpg_GetComponentMask" ref="a64c3c09f85d0a9be69f95a55042f1a6" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetComponentMask </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the color component mask status in the Pattern Control Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Color component value is returned. Corresponding enum values for Color component value is<ul>
<li>0x0 XTPG_NOMASK - No masking.</li><li>0x1 XTPG_MASKOUT_RED - Mask out red, Cr(for YCbCr mode) component.</li><li>0x2 XTPG_MASKOUT_GREE- Mask out green,N Y(for YCbCr mode) component.</li><li>0x4 XTPG_MASKOUT_BLUE- Mask out blue, Cb(for YCbCr mode) component.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="dc3232cd715ac67bc7ac687b7eccc160"></a><!-- doxytag: member="xtpg.h::XTpg_GetCrosshairPosition" ref="dc3232cd715ac67bc7ac687b7eccc160" args="(XTpg *InstancePtr, u16 *HPos, u16 *VPos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_GetCrosshairPosition </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>HPos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>VPos</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the cross hair positions.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HPos</em>&nbsp;</td><td>is the row of the frame that will have horizontal line of Cross Hairs is returned. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VPos</em>&nbsp;</td><td>is the column of the frame that will have vertical line of Cross Hairs is returned.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="0a97328739804518e64475233ae98103"></a><!-- doxytag: member="xtpg.h::XTpg_GetMotionSpeed" ref="0a97328739804518e64475233ae98103" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetMotionSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the Motion Speed.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>MotionSpeed, which indicates the speed that affects on test pattern changes from frame to frame is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d1c4aa5543691d012b272a1527ebccac"></a><!-- doxytag: member="xtpg.h::XTpg_GetNoiseGain" ref="d1c4aa5543691d012b272a1527ebccac" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetNoiseGain </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the noise gain of each component of TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>NoiseGain is a value to increase the noise added to each component.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="6256661f2a9ab5e37bf4cf9be1992599"></a><!-- doxytag: member="xtpg.h::XTpg_GetPattern" ref="6256661f2a9ab5e37bf4cf9be1992599" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetPattern </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the contents of the Pattern Control Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Contents of the Pattern Control Register is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="cb1f626ac7c66c678fc21fe9bdcb9e02"></a><!-- doxytag: member="xtpg.h::XTpg_GetStuckPixelThreshold" ref="cb1f626ac7c66c678fc21fe9bdcb9e02" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetStuckPixelThreshold </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the stuck pixel threshold in the STUCK_PIXEL_THRESH register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Stuck pixel threshold is an upper limit for PRNG for insertion of stuck pixel is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="55a55de9bc8e45cbd6cb6ccd914e6a7f"></a><!-- doxytag: member="xtpg.h::XTpg_GetVersion" ref="55a55de9bc8e45cbd6cb6ccd914e6a7f" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XTpg_GetVersion </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the contents of the Version register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Content of Version register is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="cf98040119054a473c4142be893bac7e"></a><!-- doxytag: member="xtpg.h::XTpg_GetZPlateHSpeed" ref="cf98040119054a473c4142be893bac7e" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u16 XTpg_GetZPlateHSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets how fast (the speed of) horizontal component changes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>ZPlateHSpeed is speed of the horizontal component changes is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="3c2504055b1745d04914578d2751c7b1"></a><!-- doxytag: member="xtpg.h::XTpg_GetZPlateHStart" ref="3c2504055b1745d04914578d2751c7b1" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u16 XTpg_GetZPlateHStart </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets a starting point in the ROM based sinusoidal values for the horizontal component.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>ZPlateHStart is starting point in the ROM based sinusoidal value for horizontal component is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8b60fc34e62837b38f417e71885377ca"></a><!-- doxytag: member="xtpg.h::XTpg_GetZPlateVSpeed" ref="8b60fc34e62837b38f417e71885377ca" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u16 XTpg_GetZPlateVSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets how fast (the speed of) the vertical component changes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>ZPlateVSpeed is a 16 bit variable the speed of the vertical component changes is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a87dda13d4eed857bff5e652d6b8c86c"></a><!-- doxytag: member="xtpg.h::XTpg_GetZPlateVStart" ref="a87dda13d4eed857bff5e652d6b8c86c" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u16 XTpg_GetZPlateVStart </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets a starting point in the ROM based sinusoidal values for the vertical component.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>ZPlateVStart is starting point in the ROM based sinusoidal value for vertical component is returned.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="53708212cf002f479926a6896aa8ef04"></a><!-- doxytag: member="xtpg.h::XTpg_IntrHandler" ref="53708212cf002f479926a6896aa8ef04" args="(void *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_IntrHandler </td>
<td>(</td>
<td class="paramtype">void *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function is the interrupt handler for the TPG driver.<p>
This handler reads the pending interrupt from the STATUS register, determines the source of the interrupts and calls the respective callbacks for the interrupts that are enabled in IRQ_ENABLE register, and finally clears the interrupts.<p>
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 <a class="el" href="xtpg_8h.html#6ca7050dcbbe005a69bd15cf2199de11">XTpg_SetCallBack()</a> during initialization phase.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance that just interrupted.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Interrupt interface should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="469043e8dd6792504739c48fbf9406a7"></a><!-- doxytag: member="xtpg.h::XTpg_LookupConfig" ref="469043e8dd6792504739c48fbf9406a7" args="(u16 DeviceId)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_x_tpg___config.html">XTpg_Config</a>* XTpg_LookupConfig </td>
<td>(</td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>DeviceId</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns a reference to an <a class="el" href="struct_x_tpg___config.html">XTpg_Config</a> structure based on the unique device id, <em>DeviceId</em>. The return value will refer to an entry in the device configuration table defined in the <a class="el" href="xtpg__g_8c.html">xtpg_g.c</a> file.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>DeviceId</em>&nbsp;</td><td>is the unique Device ID of the device for the lookup operation.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>CfgPtr is a reference to a config record in the configuration table (in <a class="el" href="xtpg__g_8c.html">xtpg_g.c</a>) corresponding to <em>DeviceId</em>, or NULL if no match is found.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="4811952068028d9bdcf3e8beef071498"></a><!-- doxytag: member="xtpg.h::XTpg_SelfTest" ref="4811952068028d9bdcf3e8beef071498" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XTpg_SelfTest </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function reads Version register of TPG core and compares with zero as part of self test.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the TPG instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the Version register read test was successful.</li><li>XST_FAILURE if the Version register read test failed.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="443d73019e3e8f29e6ad1e661678f467"></a><!-- doxytag: member="xtpg.h::XTpg_SetActiveSize" ref="443d73019e3e8f29e6ad1e661678f467" args="(XTpg *InstancePtr, u16 HSize, u16 VSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetActiveSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>HSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>VSize</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the active H/V sizes in the Active Size register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HSize</em>&nbsp;</td><td>specifies the number of Active Pixels per Scan Line that needs to be set (Range is 32 to 7680). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VSize</em>&nbsp;</td><td>specifies the number of Active Lines per Frame that needs to be set (Range is 32 to 7680).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="bbd4255a15fdc65701ac1f510d9a686e"></a><!-- doxytag: member="xtpg.h::XTpg_SetBackground" ref="bbd4255a15fdc65701ac1f510d9a686e" args="(XTpg *InstancePtr, enum XTpg_BackgroundPattern Pattern)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetBackground </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">enum <a class="el" href="xtpg_8h.html#2e143ee9595509e9f14a379fd271606d">XTpg_BackgroundPattern</a>&nbsp;</td>
<td class="paramname"> <em>Pattern</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the background pattern in the Pattern Control Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Pattern</em>&nbsp;</td><td>is the pattern to be generated. The enum values to be used for the patterns are :<ul>
<li>XTPG_PASS_THROUGH- Pass video input straight through the video output</li><li>XTPG_H_RAMP - Horizontal ramp</li><li>XTPG_V_RAMP - Vertical ramp</li><li>XTPG_R_RAMP - Temporal ramp</li><li>XTPG_RED_PLANE - Solid red output</li><li>XTPG_GREEN_PLANE - Solid green output</li><li>XTPG_BLUE_PLANE - Solid blue output</li><li>XTPG_BLACK_PLANE - Solid black output</li><li>XTPG_WHITE_PLANE - Solid white output</li><li>XTPG_COLOR_BARS - Color bars</li><li>XTPG_ZONE_PLATE - Zone plate output(sinusoidal)</li><li>XTPG_TARAN_BARS - Tartan color bars</li><li>XTPG_CROSS_HATCH - Cross hatch pattern</li><li>XTPG_HV_RAMP - Horizontal vertical ramp</li><li>XTPG_BLACK_AND_WHITE_CHECKERBOARD - Black and white checker board</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a0212da7460aae9993a9624dfa7a9006"></a><!-- doxytag: member="xtpg.h::XTpg_SetBayerPhase" ref="a0212da7460aae9993a9624dfa7a9006" args="(XTpg *InstancePtr, enum XTpg_BayerPhaseCombination BayerPhaseComb)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetBayerPhase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">enum <a class="el" href="xtpg_8h.html#cd31acaea34a0ee434bb96a76ab6c519">XTpg_BayerPhaseCombination</a>&nbsp;</td>
<td class="paramname"> <em>BayerPhaseComb</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function specifies or sets whether the starting position pixel(0,0) of the Bayer sampling grid is on a red-green or blue-green line and whether the first pixel is green or not.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>BayerPhaseComb</em>&nbsp;</td><td>is Bayer phase value to be set to identify starting pixel position. The enum values of Bayer phase are<ul>
<li>Bayer Phase 0 - XTPG_BAYER_PHASE_RGRG.</li><li>Bayer Phase 1 - XTPG_BAYER_PHASE_GRGR.</li><li>Bayer Phase 2 - XTPG_BAYER_PHASE_GBGB.</li><li>Bayer Phase 3 - XTPG_BAYER_PHASE_BGBG.</li><li>Bayer Phase 4 - XTPG_BAYER_PHASE_TURNOFF.</li><li>It is a double buffered register.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="b37f41e5b55568b965bac4adbd8212ab"></a><!-- doxytag: member="xtpg.h::XTpg_SetBoxColor" ref="b37f41e5b55568b965bac4adbd8212ab" args="(XTpg *InstancePtr, u16 Blue, u16 Green, u16 Red)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetBoxColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>Blue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>Green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>Red</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the color components of the box in the Box Color register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Blue</em>&nbsp;</td><td>is the color component of the box which needs to be set. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Green</em>&nbsp;</td><td>is the color component of the box which needs to be set. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Red</em>&nbsp;</td><td>is the color component of the box which needs to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>XTpg_EnableBox API should be used to enable the Box feature. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a27f2faddfd8c184687a7cd70ac71ad4"></a><!-- doxytag: member="xtpg.h::XTpg_SetBoxSize" ref="a27f2faddfd8c184687a7cd70ac71ad4" args="(XTpg *InstancePtr, u32 BoxSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XTpg_SetBoxSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>BoxSize</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the Box Size.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>BoxSize</em>&nbsp;</td><td>is size of the box in pixel.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>-XST_SUCCESS if BoxSize is less than active size. -XST_FAILURE if BoxSize is greater than active size.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd><ul>
<li>The size of the box has to be set smaller than the frame size that is set in the ACTIVE_SIZE register.</li><li>XTpg_EnableBox API should be used to enable the Box feature. </li></ul>
</dd></dl>
</div>
</div><p>
<a class="anchor" name="6ca7050dcbbe005a69bd15cf2199de11"></a><!-- doxytag: member="xtpg.h::XTpg_SetCallBack" ref="6ca7050dcbbe005a69bd15cf2199de11" args="(XTpg *InstancePtr, u32 HandlerType, void *CallBackFunc, void *CallBackRef)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XTpg_SetCallBack </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>HandlerType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&nbsp;</td>
<td class="paramname"> <em>CallBackFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&nbsp;</td>
<td class="paramname"> <em>CallBackRef</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function installs an asynchronous callback function for the given HandlerType.<p>
<pre>
HandlerType Callback Function Type
----------------------- ----------------------
XTPG_HANDLER_FRAMEDONE FrameDoneCallBack
XTPG_HANDLER_PROCSTART ProcStartCallBack
XTPG_HANDLER_ERROR ErrCallBack</pre><p>
<pre> </pre><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance to be worked on. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HandlerType</em>&nbsp;</td><td>specifies which callback is to be attached. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>CallBackFunc</em>&nbsp;</td><td>is the address of the callback function. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>CallBackRef</em>&nbsp;</td><td>is a user data item that will be passed to the callback function when it is invoked.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS when handler is installed.</li><li>XST_INVALID_PARAM when HandlerType is invalid.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Invoking this function for a handler that already has been installed replaces it with the new handler. </dd></dl>
</div>
</div><p>
<a class="anchor" name="f56158886e9a7035ca278a3f09719a35"></a><!-- doxytag: member="xtpg.h::XTpg_SetComponentMask" ref="f56158886e9a7035ca278a3f09719a35" args="(XTpg *InstancePtr, enum XTpg_ComponentMask Mask)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetComponentMask </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">enum <a class="el" href="xtpg_8h.html#1f1917d8a17d4c602c86ebb711b50910">XTpg_ComponentMask</a>&nbsp;</td>
<td class="paramname"> <em>Mask</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function masks out the specified color component by setting the Pattern Control Register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Mask</em>&nbsp;</td><td>specifies the ComponentMask that needs to be set. the enum values as<ul>
<li>XTPG_NOMASK, - No masking.</li><li>XTPG_MASKOUT_RED, - Mask out red, Cr(for YCbCr mode) component.</li><li>XTPG_MASKOUT_GREEN, - Mask out green, Y(for YCbCr mode) component.</li><li>XTPG_MASKOUT_BLUE - Mask out blue, Cb(for YCbCr mode) component.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="1a75c9bdad3e12c77b33a34f4caeaad8"></a><!-- doxytag: member="xtpg.h::XTpg_SetCrosshairPosition" ref="1a75c9bdad3e12c77b33a34f4caeaad8" args="(XTpg *InstancePtr, u16 HPos, u16 VPos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetCrosshairPosition </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>HPos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>VPos</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the Cross Hairs Positions.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HPos</em>&nbsp;</td><td>is the row of the frame that will have horizontal line of Cross Hairs that need to be set. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VPos</em>&nbsp;</td><td>is the column of the frame that will have vertical line of Cross Hairs that need to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Cross hair feature should be enabled by using the API XTpg_EnableCrossHair </dd></dl>
</div>
</div><p>
<a class="anchor" name="d60e72ebf07cb299f40c8d62b33035f7"></a><!-- doxytag: member="xtpg.h::XTpg_SetMotionSpeed" ref="d60e72ebf07cb299f40c8d62b33035f7" args="(XTpg *InstancePtr, u32 MotionSpeed)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetMotionSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>MotionSpeed</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the Motion Speed.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>MotionSpeed</em>&nbsp;</td><td>is how fast the temporal features of supported test pattern changes from frame to frame which need to be set. Range is 0 to 255.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="fe20be225a9b43e342e0ccd11f0ae3c9"></a><!-- doxytag: member="xtpg.h::XTpg_SetNoiseGain" ref="fe20be225a9b43e342e0ccd11f0ae3c9" args="(XTpg *InstancePtr, u32 NoiseGain)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetNoiseGain </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>NoiseGain</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the noise gain in Noise Gain register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>NoiseGain</em>&nbsp;</td><td>is a value to increase the noise added to each component which needs to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>- XTPg_EnableNoise API should be used to enable Noise feature. </dd></dl>
</div>
</div><p>
<a class="anchor" name="f6783b9a514ab1b0c6221e417052844c"></a><!-- doxytag: member="xtpg.h::XTpg_SetPattern" ref="f6783b9a514ab1b0c6221e417052844c" args="(XTpg *InstancePtr, u32 Pattern)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetPattern </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>Pattern</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the Pattern Control Register of TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Pattern</em>&nbsp;</td><td>is the 32 bit value to be written to the Pattern Control Register.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This API is used for writing the complete Pattern Control Register. Use the following APIs for the individual patterns separately<ul>
<li>XTpg_SetBackground</li><li>XTpg_EnableCrossHair</li><li>XTpg_DisableCrossHair</li><li>XTpg_EnableBox</li><li>XTpg_DisableBox</li><li>XTpg_SetComponentMask</li><li>XTpg_EnableStuckPixel</li><li>XTpg_DisableStuckPixel</li><li>XTPg_EnableNoise</li><li>XTPg_DisableNoise</li><li>XTpg_EnableMotion</li><li>XTpg_DisableMotion </li></ul>
</dd></dl>
</div>
</div><p>
<a class="anchor" name="5fd07581e1d4d647153f6f7aceac999d"></a><!-- doxytag: member="xtpg.h::XTpg_SetStuckPixelThreshold" ref="5fd07581e1d4d647153f6f7aceac999d" args="(XTpg *InstancePtr, u32 PixelThreshold)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetStuckPixelThreshold </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>PixelThreshold</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the stuck pixel threshold in STUCK_PIXEL_THRESH register of the TPG core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>PixelThreshold</em>&nbsp;</td><td>is an upper limit for PRNG for insertion of stuck pixel which needs to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>- XTpg_EnableStuckPixel API should be used to enable Stuck Pixel threshold value. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8d2a1715d79178d882947242bdadc6de"></a><!-- doxytag: member="xtpg.h::XTpg_Setup" ref="8d2a1715d79178d882947242bdadc6de" args="(XTpg *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_Setup </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the input/output frame size in Active Size register and enables the register update.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="3f8e4cb9ba82d5e0cd795115a90be70c"></a><!-- doxytag: member="xtpg.h::XTpg_SetZPlateHSpeed" ref="3f8e4cb9ba82d5e0cd795115a90be70c" args="(XTpg *InstancePtr, u16 ZPlateHSpeed)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetZPlateHSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>ZPlateHSpeed</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets how fast (the speed of) the horizontal component changes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ZPlateHSpeed</em>&nbsp;</td><td>is the speed of the horizontal component changes which need to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="bdbd51a634cf14b6e4aecd4d10bb02d2"></a><!-- doxytag: member="xtpg.h::XTpg_SetZPlateHStart" ref="bdbd51a634cf14b6e4aecd4d10bb02d2" args="(XTpg *InstancePtr, u16 ZPlateHStart)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetZPlateHStart </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>ZPlateHStart</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets a starting point in the ROM based sinusoidal values for the horizontal component.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ZPlateHStart</em>&nbsp;</td><td>is starting point in the ROM based sinusoidal value for horizontal component.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="40326b8e25f4fe2d5f270f841bc47ece"></a><!-- doxytag: member="xtpg.h::XTpg_SetZPlateVSpeed" ref="40326b8e25f4fe2d5f270f841bc47ece" args="(XTpg *InstancePtr, u16 ZPlateVSpeed)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetZPlateVSpeed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>ZPlateVSpeed</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets how fast (the speed of) the vertical component changes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ZPlateVSpeed</em>&nbsp;</td><td>is the speed of the vertical component changes which need to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="e65b702fac1b48c6a8c9a6c7cd4d300a"></a><!-- doxytag: member="xtpg.h::XTpg_SetZPlateVStart" ref="e65b702fac1b48c6a8c9a6c7cd4d300a" args="(XTpg *InstancePtr, u16 ZPlateVStart)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XTpg_SetZPlateVStart </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_tpg.html">XTpg</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>ZPlateVStart</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets a starting point in the ROM based sinusoidal values for the vertical component.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_tpg.html">XTpg</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ZPlateVStart</em>&nbsp;</td><td>is starting point in the ROM based sinusoidal value for vertical component which need to be set.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.