<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP DBVersion="V4.0" IPType="peripheral" IpGroup="Multimedia" Name="LTDC" Version="lcdtft1_v1_0" 
    xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance"
    ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/IP_Modes.xsd"
    xmlns="http://mcd.rou.st.com/modules.php?name=mcu">
    <About>LTDC: LCD-TFT controller</About>
	
    <!-- Generic RefParameters for LTDC --> 
    <RefParameter Name="Instance" DefaultValue="LTDC$Index" Comment="Instance" Type="" Visible="false"/>
	
	
	
    <!-- Synchronization RefParameters for LTDC -->
    <!-- Width Synchronization RefParameters for LTDC. Default is for 640 x 480 screen. Maximum is for 800 x 600 screen -->
    <RefParameter Comment="Horizontal Synchronization Width" DefaultValue="8" Max="4095" Min="1" Name="HSync" Type="integer" Unit="pixels" Group="Synchronization for Width"/>
    <RefParameter Comment="Horizontal Back Porch" DefaultValue="7" Max="4095" Min="0" Name="HBP" Type="integer" Unit="pixels" Group="Synchronization for Width"/>
    <RefParameter Comment="Active Width" DefaultValue="640" Max="=4095-(HBP+HSync+HFP)" Min="0" Name="ActiveW" Type="integer" Unit="pixels" Group="Synchronization for Width"/>
    <RefParameter Comment="Horizontal Front Porch" DefaultValue="6" Max="4095" Min="0" Name="HFP" Type="integer" Unit="pixels" Group="Synchronization for Width"/>
	
    <!-- Calculated Values. Normally, Read Only -->
    <RefParameter Comment="HSync Width" DefaultValue="=HSync-1" Max="4095" Name="HorizontalSync" Type="string" Group="Synchronization for Width">
        <Description> This register value is equal to (Horizontal Synchronization Width - 1)</Description>
    </RefParameter>
    <RefParameter Comment="Accumulated Horizontal Back Porch Width" DefaultValue="=HorizontalSync+HBP" Max="4095" Name="AccumulatedHBP" Type="string" Group="Synchronization for Width">
        <Description> This register value is equal to the (Horizontal Synchronization Width + Horizontal Back Porch - 1)</Description>
    </RefParameter>
	
    <RefParameter Comment="Accumulated Active Width" DefaultValue="=AccumulatedHBP+ActiveW" Max="4095" Name="AccumulatedActiveW" Type="string" Group="Synchronization for Width">
        <Description> This register value is equal to (Horizontal Synchronization Width + Horizontal Back Porch + Active Width - 1)  </Description>
    </RefParameter>
    <RefParameter Comment="Total Width" DefaultValue="=AccumulatedActiveW+HFP" Max="4095" Name="TotalWidth" Type="string" Group="Synchronization for Width">
        <Description> This register value is equal to (Horizontal Synchronization Width + Horizontal Back Porch + Active Width + Horizontal Front Porch - 1) </Description>
    </RefParameter>
	
    <!-- Height Synchronization RefParameters for LTDC -->
    <RefParameter Comment="Vertical Synchronization Height" DefaultValue="4" Max="2047" Min="1" Name="VSync" Type="integer" Unit="lines" Group="Synchronization for Height"/>
    <RefParameter Comment="Vertical Back Porch" DefaultValue="2" Max="2047" Min="0" Name="VBP" Type="integer" Unit="lines" Group="Synchronization for Height"/>
    <RefParameter Comment="Active Height" DefaultValue="480" Max="=2047-(VBP+VSync+VFP)" Min="0" Name="ActiveH" Type="integer" Unit="lines" Group="Synchronization for Height"/>
    <RefParameter Comment="Vertical Front Porch" DefaultValue="2" Max="2047" Min="0" Name="VFP" Type="integer" Unit="lines" Group="Synchronization for Height"/>
	
    <!-- Calculated Values. Normally, Read Only -->
    <RefParameter Comment="VSync Height" DefaultValue="=VSync-1" Max="2047" Name="VerticalSync" Type="string" Group="Synchronization for Height">
        <Description> This register value is equal to (Vertical Synchronization Height - 1)  </Description>
    </RefParameter>
    <RefParameter Comment="Accumulated Vertical Back Porch Height" DefaultValue="=VerticalSync+VBP" Max="2047" Name="AccumulatedVBP" Type="string" Group="Synchronization for Height">
        <Description> This register value is equal to the (Vertical Synchronization Height + Vertical Back Porch - 1) </Description>
    </RefParameter>
    <RefParameter Comment="Accumulated Active Height" DefaultValue="=AccumulatedVBP+ActiveH" Max="2047" Name="AccumulatedActiveH" Type="string" Group="Synchronization for Height">
        <Description> This register value is equal to the (Vertical Synchronization Height + Vertical Back Porch + Active Height - 1) </Description>
    </RefParameter>
    <RefParameter Comment="Total Height" DefaultValue="=AccumulatedActiveH+VFP" Max="2047" Name="TotalHeigh" Type="string" Group="Synchronization for Height">
        <Description> This register value is equal to the (Vertical Synchronization Height + Vertical Back Porch + Active Height + Vertical Front Porch - 1) </Description>
    </RefParameter>


    <!-- Polarity RefParameters for LTDC -->
    <RefParameter Comment="Horizontal Synchronization Polarity" DefaultValue="LTDC_HSPOLARITY_AL" Name="HSPolarity" Type="list" Group="Signal Polarity">
        <PossibleValue Comment="Active Low" Value="LTDC_HSPOLARITY_AL"/>
        <PossibleValue Comment="Active High" Value="LTDC_HSPOLARITY_AH"/>
    </RefParameter>
	
    <RefParameter Comment="Vertical Synchronization Polarity" DefaultValue="LTDC_VSPOLARITY_AL" Name="VSPolarity" Type="list" Group="Signal Polarity">
        <PossibleValue Comment="Active Low" Value="LTDC_VSPOLARITY_AL"/>
        <PossibleValue Comment="Active High" Value="LTDC_VSPOLARITY_AH"/>
    </RefParameter>
	
    <RefParameter Comment="Not Data Enable Polarity" DefaultValue="LTDC_DEPOLARITY_AL" Name="DEPolarity" Type="list" Group="Signal Polarity">
        <PossibleValue Comment="Active Low" Value="LTDC_DEPOLARITY_AL"/>
        <!-- add the condition: if DSI is used, then (Action=) remove the value from the list -->
        <PossibleValue Comment="Active High" Value="LTDC_DEPOLARITY_AH" Condition="DSIUsed_ForRCC" Action="Remove" />
    </RefParameter>
	
    <RefParameter Comment="Pixel Clock Polarity" DefaultValue="LTDC_PCPOLARITY_IPC" Name="PCPolarity" Type="list" Group="Signal Polarity">
        <PossibleValue Comment="Normal Input" Value="LTDC_PCPOLARITY_IPC"/>
        <PossibleValue Comment="Inverted Input" Value="LTDC_PCPOLARITY_IIPC"/>
    </RefParameter>
	
	
    <!-- Background Color RefParameters for LTDC -->
    <RefParameter Comment="Red" DefaultValue="0" Max="255" Min="0" Name="Red" Type="integer" Group="BackGround Color"/>
    <RefParameter Comment="Green" DefaultValue="0" Max="255" Min="0" Name="Green" Type="integer" Group="BackGround Color"/>
    <RefParameter Comment="Blue" DefaultValue="0" Max="255" Min="0" Name="Blue" Type="integer" Group="BackGround Color"/>
    <RefParameter Comment="Reserved" DefaultValue="null" Max="255" Min="0" Name="Reserved" Type="integer" Visible="false"/>
	
    <!-- *************** START OF LAYER SETTINGS **************** -->
    <RefParameter Comment="Number of Layers" Name="Layers" DefaultValue="1" Max="2" Min="1" Type="list" Visible="true" Group="Number of Layers" TabName="Layer Settings">
        <Description> Select the number of layers to configure (max of 2) </Description>
        <PossibleValue Value="0" Comment="1 layer"/>
        <PossibleValue Value="1" Comment="2 layers"/>
    </RefParameter>
	
    <!-- *************** START OF LAYER 0 SETTINGS **************** -->
    <!-- Background Layer 0 RefParameters for LTDC -->
	
    <RefParameter Comment="LayerIdx" DefaultValue="0" Visible="false" Max="1" Min="0" Name="LayerIdx_L0" Type="integer" Group="Layer 0 BackGround Color" TabName="Layer Settings"/>
	
    <RefParameter Comment="Layer 0 - Red" DefaultValue="0" Max="255" Min="0" Name="Red_L0" Type="integer" Group="BackGround Color" TabName="Layer Settings"/>
    <RefParameter Comment="Layer 0 - Green" DefaultValue="0" Max="255" Min="0" Name="Green_L0" Type="integer" Group="BackGround Color" TabName="Layer Settings"/>
    <RefParameter Comment="Layer 0 - Blue" DefaultValue="0" Max="255" Min="0" Name="Blue_L0" Type="integer" Group="BackGround Color" TabName="Layer Settings"/>
	
	
    <!-- Layer 0 Windows Position -->
    <RefParameter Comment="Layer 0 - Window Horizontal Start" DefaultValue="0" Max="4095" Min="0" Name="WindowX0_L0" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window Horizontal Start Position Window X0.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Window Horizontal Stop" DefaultValue="0" Max="4095" Min="0" Name="WindowX1_L0" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window Horizontal Stop Position Window X1.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Window Vertical Start" DefaultValue="0" Max="2047" Min="0" Name="WindowY0_L0" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window vertical Start Position Window Y0.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Window Vertical Stop" DefaultValue="0" Max="2047" Min="0" Name="WindowY1_L0" Type="integer" Group="Windows Position"  TabName="Layer Settings">
        <Description>Configures the Window vertical Stop Position Window Y1.</Description>
    </RefParameter>
	
    <!-- Layer 0 Pixel Format for RGB888-->
	
    <RefParameter Comment="Layer 0 - Pixel Format" DefaultValue="LTDC_PIXEL_FORMAT_ARGB8888" Name="PixelFormat_L0" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
        <Description>Specifies the pixel format.</Description>
        <PossibleValue Comment="ARGB8888" Value="LTDC_PIXEL_FORMAT_ARGB8888"/>
        <PossibleValue Comment="RGB888" Value="LTDC_PIXEL_FORMAT_RGB888"/>
        <PossibleValue Comment="RGB565" Value="LTDC_PIXEL_FORMAT_RGB565"/>
        <PossibleValue Comment="ARGB1555" Value="LTDC_PIXEL_FORMAT_ARGB1555"/>
        <PossibleValue Comment="ARGB4444" Value="LTDC_PIXEL_FORMAT_ARGB4444"/>
        <PossibleValue Comment="L8" Value="LTDC_PIXEL_FORMAT_L8"/>
        <PossibleValue Comment="AL44" Value="LTDC_PIXEL_FORMAT_AL44"/>
        <PossibleValue Comment="AL88" Value="LTDC_PIXEL_FORMAT_AL88"/>
    </RefParameter>
	
    <!-- Layer 0 Pixel Format for RGB666 and RGB565-->
	
    <RefParameter Comment="Layer 0 - Pixel Format" DefaultValue="LTDC_PIXEL_FORMAT_RGB565" Name="PixelFormat_L0_not888" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
        <Description>Specifies the pixel format.</Description>
        <PossibleValue Comment="RGB565" Value="LTDC_PIXEL_FORMAT_RGB565"/>
        <PossibleValue Comment="ARGB1555" Value="LTDC_PIXEL_FORMAT_ARGB1555"/>
        <PossibleValue Comment="ARGB4444" Value="LTDC_PIXEL_FORMAT_ARGB4444"/>
        <PossibleValue Comment="L8" Value="LTDC_PIXEL_FORMAT_L8"/>
        <PossibleValue Comment="AL44" Value="LTDC_PIXEL_FORMAT_AL44"/>
        <PossibleValue Comment="AL88" Value="LTDC_PIXEL_FORMAT_AL88"/>
    </RefParameter>
	
	
    <!-- Layer 0 Blending  -->
	
    <RefParameter Comment="Layer 0 - Alpha constant for blending" DefaultValue="0" Max="255" Min="0" Name="Alpha_L0" Type="integer" Group="Blending" TabName="Layer Settings">
        <Description>Specifies the constant alpha used for blending.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Default Alpha value " DefaultValue="0" Max="255" Min="0" Name="Alpha0_L0" Type="integer" Group="Blending" TabName="Layer Settings">
        <Description>Configures the default alpha value Alpha0.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Blending Factor1" DefaultValue="LTDC_BLENDING_FACTOR1_CA" Name="BlendingFactor1_L0" Type="list" Group="Blending" TabName="Layer Settings">
        <Description>Select the blending factor 1:
		 &lt;br&gt; LTDC_BLENDING_FACTOR1_CA: blending factor is Alpha constant 
		 &lt;br&gt; LTDC_BLENDING_FACTOR1_PAxCA: blending factor is Alpha constant x Pixel Alpha 
        </Description>
        <PossibleValue Comment="Alpha constant " Value="LTDC_BLENDING_FACTOR1_CA"/>
        <PossibleValue Comment="Alpha constant x Pixel Alpha " Value="LTDC_BLENDING_FACTOR1_PAxCA"/>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Blending Factor2" DefaultValue="LTDC_BLENDING_FACTOR2_CA" Name="BlendingFactor2_L0" Type="list" Group="Blending" TabName="Layer Settings">
        <Description>Select the blending factor 2.
		 &lt;br&gt; LTDC_BLENDING_FACTOR2_CA: blending factor is Alpha constant 
		 &lt;br&gt; LTDC_BLENDING_FACTOR2_PAxCA: blending factor is Alpha constant x Pixel Alpha 
        </Description>
        <PossibleValue Comment="Alpha constant " Value="LTDC_BLENDING_FACTOR2_CA"/>
        <PossibleValue Comment="Alpha constant x Pixel Alpha " Value="LTDC_BLENDING_FACTOR2_PAxCA"/>
    </RefParameter>
	
    <!-- Layer 0 - Frame Buffer RefParameters for LTDC -->
	
    <RefParameter Comment="Layer 0 - Color Frame Buffer Start Adress" DefaultValue="0" Max="4294967295" Min="0" Name="FBStartAdress_L0" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Configures the color frame buffer address </Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Color Frame Buffer Line Length (Image Width)" DefaultValue="0" Max="8191" Min="0" Name="ImageWidth_L0" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Configures the color frame buffer line length.</Description>
    </RefParameter>
    <RefParameter Comment="Layer 0 - Color Frame Buffer Number of Lines (Image Height)" DefaultValue="0" Max="2047" Min="0" Name="ImageHeight_L0" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Specifies the number of line in frame buffer.</Description>
    </RefParameter>
	
    <!-- *************** END OF LAYER 0 SETTINGS *************** -->
    
    <!-- *************** START OF LAYER 1 SETTINGS *************** -->
    <!-- Background Layer 1 RefParameters for LTDC -->
    
    <RefParameter Comment="Layer 1 - LayerIdx" DefaultValue="1" Visible="false" Max="1" Min="0" Name="LayerIdx_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <!-- this RefParameter without condition must be commented or Layer 1 init code will be generated systematically (even when number of layers =1)
    <RefParameter Comment="Layer 1 - LayerIdx" Visible="false" DefaultValue="1" Max="1" Min="0" Name="LayerIdx_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
    </RefParameter>		
    -->
    
    <RefParameter Comment="Layer 1 - Red" DefaultValue="0" Max="255" Min="0" Name="Red_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
        <Condition Expression="(Layers = 1)" Diagnostic=""/>	
    </RefParameter>
    <RefParameter Comment="Layer 1 - Red" Visible="false" DefaultValue="0" Max="255" Min="0" Name="Red_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Green" DefaultValue="0" Max="255" Min="0" Name="Green_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
        <Condition Expression="(Layers = 1)" Diagnostic=""/>	
    </RefParameter>
    <RefParameter Comment="Layer 1 - Green" Visible="false" DefaultValue="0" Max="255" Min="0" Name="Green_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blue" DefaultValue="0" Max="255" Min="0" Name="Blue_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
        <Condition Expression="(Layers = 1)" Diagnostic=""/>	
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blue" Visible="false" DefaultValue="0" Max="255" Min="0" Name="Blue_L1" Type="integer" Group="BackGround Color" TabName="Layer Settings">
    </RefParameter>
    
	
    <!-- Layer 1 Windows Position -->
    
    <RefParameter Comment="Layer 1 - Window Horizontal Start" DefaultValue="0" Max="4095" Min="0" Name="WindowX0_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window Horizontal Start Position Window X0.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Horizontal Start" Visible="false" DefaultValue="0" Max="4095" Min="0" Name="WindowX0_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Horizontal Stop" DefaultValue="0" Max="4095" Min="0" Name="WindowX1_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window Horizontal Stop Position Window X1.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Horizontal Stop" Visible="false" DefaultValue="0" Max="4095" Min="0" Name="WindowX1_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Vertical Start" DefaultValue="0" Max="2047" Min="0" Name="WindowY0_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
        <Description>Configures the Window vertical Start Position Window Y0.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Vertical Start" Visible="false" DefaultValue="0" Max="2047" Min="0" Name="WindowY0_L1" Type="integer" Group="Windows Position" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Vertical Stop" DefaultValue="0" Max="2047" Min="0" Name="WindowY1_L1" Type="integer" Group="Windows Position"  TabName="Layer Settings">
        <Description>Configures the Window vertical Stop Position Window Y1.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Window Vertical Stop" Visible="false" DefaultValue="0" Max="2047" Min="0" Name="WindowY1_L1" Type="integer" Group="Windows Position"  TabName="Layer Settings">
    </RefParameter>
    
    <!-- Layer 1 Pixel Format for RGB888 -->
	
    <RefParameter Comment="Layer 1 - Pixel Format" DefaultValue="LTDC_PIXEL_FORMAT_ARGB8888" Name="PixelFormat_L1" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
        <Description>Specifies the pixel format.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
        <PossibleValue Comment="ARGB8888" Value="LTDC_PIXEL_FORMAT_ARGB8888"/>
        <PossibleValue Comment="RGB888" Value="LTDC_PIXEL_FORMAT_RGB888"/>
        <PossibleValue Comment="RGB565" Value="LTDC_PIXEL_FORMAT_RGB565"/>
        <PossibleValue Comment="ARGB1555" Value="LTDC_PIXEL_FORMAT_ARGB1555"/>
        <PossibleValue Comment="ARGB4444" Value="LTDC_PIXEL_FORMAT_ARGB4444"/>
        <PossibleValue Comment="L8" Value="LTDC_PIXEL_FORMAT_L8"/>
        <PossibleValue Comment="AL44" Value="LTDC_PIXEL_FORMAT_AL44"/>
        <PossibleValue Comment="AL88" Value="LTDC_PIXEL_FORMAT_AL88"/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Pixel Format" Visible="false" Name="PixelFormat_L1" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
    </RefParameter>
    
	
    <!-- Layer 1 Pixel Format for RGB666 and RGB565 -->
	
    <RefParameter Comment="Layer 1 - Pixel Format" DefaultValue="LTDC_PIXEL_FORMAT_RGB565" Name="PixelFormat_L1_not888" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
        <Description>Specifies the pixel format.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
        <PossibleValue Comment="RGB565" Value="LTDC_PIXEL_FORMAT_RGB565"/>
        <PossibleValue Comment="ARGB1555" Value="LTDC_PIXEL_FORMAT_ARGB1555"/>
        <PossibleValue Comment="ARGB4444" Value="LTDC_PIXEL_FORMAT_ARGB4444"/>
        <PossibleValue Comment="L8" Value="LTDC_PIXEL_FORMAT_L8"/>
        <PossibleValue Comment="AL44" Value="LTDC_PIXEL_FORMAT_AL44"/>
        <PossibleValue Comment="AL88" Value="LTDC_PIXEL_FORMAT_AL88"/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Pixel Format" Visible="false" Name="PixelFormat_L1_not888" Type="list" Group="Pixel Parameters" TabName="Layer Settings">
    </RefParameter>
	
    <!-- Layer 1 Blending  -->
     
    <RefParameter Comment="Layer 1 - Alpha constant for blending" DefaultValue="0" Max="255" Min="0" Name="Alpha_L1" Type="integer" Group="Blending" TabName="Layer Settings">
        <Description>Specifies the constant alpha used for blending.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Alpha constant for blending" Visible="false" DefaultValue="0" Max="255" Min="0" Name="Alpha_L1" Type="integer" Group="Blending" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Default Alpha value " DefaultValue="0" Max="255" Min="0" Name="Alpha0_L1" Type="integer" Group="Blending" TabName="Layer Settings">
        <Description>Configures the default alpha value Alpha0.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Default Alpha value " Visible="false" DefaultValue="0" Max="255" Min="0" Name="Alpha0_L1" Type="integer" Group="Blending" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blending Factor1" DefaultValue="LTDC_BLENDING_FACTOR1_CA" Name="BlendingFactor1_L1" Type="list" Group="Blending" TabName="Layer Settings">
        <Description>Select the blending factor 1:
			&lt;br&gt; LTDC_BLENDING_FACTOR1_CA: blending factor is Alpha constant 
			&lt;br&gt; LTDC_BLENDING_FACTOR1_PAxCA: blending factor is Alpha constant x Pixel Alpha 
        </Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
        <PossibleValue Comment="Alpha constant " Value="LTDC_BLENDING_FACTOR1_CA"/>
        <PossibleValue Comment="Alpha constant x Pixel Alpha " Value="LTDC_BLENDING_FACTOR1_PAxCA"/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blending Factor1" Visible="false" DefaultValue="LTDC_BLENDING_FACTOR1_CA" Name="BlendingFactor1_L1" Type="list" Group="Blending" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blending Factor2" DefaultValue="LTDC_BLENDING_FACTOR2_CA" Name="BlendingFactor2_L1" Type="list" Group="Blending" TabName="Layer Settings">
        <Description>Select the blending factor 2.
			&lt;br&gt; LTDC_BLENDING_FACTOR2_CA: blending factor is Alpha constant 
			&lt;br&gt; LTDC_BLENDING_FACTOR2_PAxCA: blending factor is Alpha constant x Pixel Alpha 
        </Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
        <PossibleValue Comment="Alpha constant " Value="LTDC_BLENDING_FACTOR2_CA"/>
        <PossibleValue Comment="Alpha constant x Pixel Alpha " Value="LTDC_BLENDING_FACTOR2_PAxCA"/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Blending Factor2" Visible="false" DefaultValue="LTDC_BLENDING_FACTOR2_CA" Name="BlendingFactor2_L1" Type="list" Group="Blending" TabName="Layer Settings">
    </RefParameter>
    
    <!-- Layer 1 - Frame Buffer RefParameters for LTDC -->
    
    <RefParameter Comment="Layer 1 - Color Frame Buffer Start Adress" DefaultValue="0" Max="4294967295" Min="0" Name="FBStartAdress_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Configures the color frame buffer address </Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Color Frame Buffer Start Adress" Visible="false" DefaultValue="0" Max="4294967295" Min="0" Name="FBStartAdress_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Color Frame Buffer Line Length (Image Width)" DefaultValue="0" Max="8191" Min="0" Name="ImageWidth_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Configures the color frame buffer line length.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Color Frame Buffer Line Length (Image Width)" Visible="false" DefaultValue="0" Max="8191" Min="0" Name="ImageWidth_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
    </RefParameter>
    <RefParameter Comment="Layer 1 - Color Frame Buffer Number of Lines (Image Height)" DefaultValue="0" Max="2047" Min="0" Name="ImageHeight_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
        <Description>Specifies the number of line in frame buffer.</Description>
        <Condition Expression="(Layers = 1)" Diagnostic=""/>
    </RefParameter>
    <RefParameter Comment="Layer 1 - Color Frame Buffer Number of Lines (Image Height)" Visible="false" DefaultValue="0" Max="2047" Min="0" Name="ImageHeight_L1" Type="integer" Group="Frame Buffer" TabName="Layer Settings">
    </RefParameter>
    <!-- ***************  END OF LAYER 1 SETTINGS *************** -->
	
	
    <!-- RefModes 'RGB888' for LTDC -->
    <RefMode Name="RGB888">
        <ConfigForMode>Ltdc_Init</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer0</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer1</ConfigForMode>
		
        <!-- Width Synchronization RefParameters for LTDC -->
        <Parameter Name="HSync"/>
        <Parameter Name="HBP"/>
              <!-- WARNING : ActiveW parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveW"/>
        <Parameter Name="HFP"/>
        <Parameter Name="HorizontalSync"/>
        <Parameter Name="AccumulatedHBP"/>
        <Parameter Name="AccumulatedActiveW"/>
        <Parameter Name="TotalWidth"/>
		
        <!-- Height Synchronization RefParameters for LTDC -->
        <Parameter Name="VSync"/>
        <Parameter Name="VBP"/>
              <!-- WARNING : ActiveH parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveH"/>
        <Parameter Name="VFP"/>
        <Parameter Name="VerticalSync"/>
        <Parameter Name="AccumulatedVBP"/>
        <Parameter Name="AccumulatedActiveH"/>
        <Parameter Name="TotalHeigh"/>
		
        <!-- Polarity RefParameter -->
        <Parameter Name="HSPolarity"/>
        <Parameter Name="VSPolarity"/>
        <Parameter Name="DEPolarity"/>
        <Parameter Name="PCPolarity"/>
		
        <!-- Background Color RefParameters -->
        <Parameter Name="Red"/>
        <Parameter Name="Green"/>
        <Parameter Name="Blue"/>
		
        <!-- LTDC Layer settings start here -->
        <Parameter Name="Layers"/>
        <!-- LTDC L0 (Background) parameters -->
        <Parameter Name="LayerIdx_L0" />
		
        <Parameter Name="WindowX0_L0" />
        <Parameter Name="WindowX1_L0" />
        <Parameter Name="WindowY0_L0" />
        <Parameter Name="WindowY1_L0" />
		
              <!-- WARNING : PixelFormat_L0 parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="PixelFormat_L0" />
		
        <Parameter Name="Alpha_L0" />
        <Parameter Name="Alpha0_L0" />
        <Parameter Name="BlendingFactor1_L0" />
        <Parameter Name="BlendingFactor2_L0" />	
		
        <Parameter Name="FBStartAdress_L0" />
        <Parameter Name="ImageWidth_L0" />
        <Parameter Name="ImageHeight_L0" />
		
        <Parameter Name="Blue_L0" />
        <Parameter Name="Green_L0" />
        <Parameter Name="Red_L0" />
		
        <!-- LTDC L1 (Foreground) parameters -->
        <Parameter Name="LayerIdx_L1" />
		
        <Parameter Name="WindowX0_L1" />
        <Parameter Name="WindowX1_L1" />
        <Parameter Name="WindowY0_L1" />
        <Parameter Name="WindowY1_L1" />
		
        <Parameter Name="PixelFormat_L1" />
		
        <Parameter Name="Alpha_L1" />
        <Parameter Name="Alpha0_L1" />
        <Parameter Name="BlendingFactor1_L1" />
        <Parameter Name="BlendingFactor2_L1" />	
		
        <Parameter Name="FBStartAdress_L1" />
        <Parameter Name="ImageWidth_L1" />
        <Parameter Name="ImageHeight_L1" />
		
        <Parameter Name="Blue_L1" />
        <Parameter Name="Green_L1" />
        <Parameter Name="Red_L1" />
	
    </RefMode>
	
    <!-- RefModes 'RGB666' for LTDC -->
    <RefMode Name="RGB666">
        <ConfigForMode>Ltdc_Init</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer0</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer1</ConfigForMode>
        <!-- LTDC init parameters -->

        <!-- Width Synchronization RefParameters for LTDC -->
        <Parameter Name="HSync"/>
        <Parameter Name="HBP"/>
              <!-- WARNING : ActiveW parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveW"/>
        <Parameter Name="HFP"/>
        <Parameter Name="HorizontalSync"/>
        <Parameter Name="AccumulatedHBP"/>
        <Parameter Name="AccumulatedActiveW"/>
        <Parameter Name="TotalWidth"/>
		
        <!-- Height Synchronization RefParameters for LTDC -->
        <Parameter Name="VSync"/>
        <Parameter Name="VBP"/>
              <!-- WARNING : ActiveH parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveH"/>
        <Parameter Name="VFP"/>
        <Parameter Name="VerticalSync"/>
        <Parameter Name="AccumulatedVBP"/>
        <Parameter Name="AccumulatedActiveH"/>
        <Parameter Name="TotalHeigh"/>
		
        <!-- Polarity RefParameter -->
        <Parameter Name="HSPolarity"/>
        <Parameter Name="VSPolarity"/>
        <Parameter Name="DEPolarity"/>
        <Parameter Name="PCPolarity"/>
		
        <!-- Background Color RefParameters -->
        <Parameter Name="Red"/>
        <Parameter Name="Green"/>
        <Parameter Name="Blue"/>
		
        <!-- LTDC Layer settings start here -->
        <Parameter Name="Layers"/>
        <!-- LTDC Config L0 (Background) parameters -->
        <Parameter Name="LayerIdx_L0" />
		
        <Parameter Name="WindowX0_L0" />
        <Parameter Name="WindowX1_L0" />
        <Parameter Name="WindowY0_L0" />
        <Parameter Name="WindowY1_L0" />
		
              <!-- WARNING : PixelFormat_L0 parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="PixelFormat_L0" />
		
        <Parameter Name="Alpha_L0" />
        <Parameter Name="Alpha0_L0" />
        <Parameter Name="BlendingFactor1_L0" />
        <Parameter Name="BlendingFactor2_L0" />	
		
        <Parameter Name="FBStartAdress_L0" />
        <Parameter Name="ImageWidth_L0" />
        <Parameter Name="ImageHeight_L0" />
		
        <Parameter Name="Blue_L0" />
        <Parameter Name="Green_L0" />
        <Parameter Name="Red_L0" />
		
		
        <!-- LTDC Config L1 (Foreground) parameters -->
        <Parameter Name="LayerIdx_L1" />
		
        <Parameter Name="WindowX0_L1" />
        <Parameter Name="WindowX1_L1" />
        <Parameter Name="WindowY0_L1" />
        <Parameter Name="WindowY1_L1" />
		
        <Parameter Name="PixelFormat_L1" />
		
        <Parameter Name="Alpha_L1" />
        <Parameter Name="Alpha0_L1" />
        <Parameter Name="BlendingFactor1_L1" />
        <Parameter Name="BlendingFactor2_L1" />	
		
        <Parameter Name="FBStartAdress_L1" />
        <Parameter Name="ImageWidth_L1" />
        <Parameter Name="ImageHeight_L1" />
		
        <Parameter Name="Blue_L1" />
        <Parameter Name="Green_L1" />
        <Parameter Name="Red_L1" />
		
		
    </RefMode>
	
    <!-- RefModes 'RGB565' for LTDC -->
    <RefMode Name="RGB565">
        <ConfigForMode>Ltdc_Init</ConfigForMode>
        <!-- <ConfigForMode>LTDC_ConfigLayer0_not888</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer1_not888</ConfigForMode> -->
        <ConfigForMode>LTDC_ConfigLayer0</ConfigForMode>
        <ConfigForMode>LTDC_ConfigLayer1</ConfigForMode>
		
        <!-- Width Synchronization RefParameters for LTDC -->
        <Parameter Name="HSync"/>
        <Parameter Name="HBP"/>
              <!-- WARNING : ActiveW parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveW"/>
        <Parameter Name="HFP"/>
        <Parameter Name="HorizontalSync"/>
        <Parameter Name="AccumulatedHBP"/>
        <Parameter Name="AccumulatedActiveW"/>
        <Parameter Name="TotalWidth"/>
		
        <!-- Height Synchronization RefParameters for LTDC -->
        <Parameter Name="VSync"/>
        <Parameter Name="VBP"/>
              <!-- WARNING : ActiveH parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="ActiveH"/>
        <Parameter Name="VFP"/>
        <Parameter Name="VerticalSync"/>
        <Parameter Name="AccumulatedVBP"/>
        <Parameter Name="AccumulatedActiveH"/>
        <Parameter Name="TotalHeigh"/>
		
        <!-- Polarity RefParameter -->
        <Parameter Name="HSPolarity"/>
        <Parameter Name="VSPolarity"/>
        <Parameter Name="DEPolarity"/>
        <Parameter Name="PCPolarity"/>
		
        <!-- Background Color RefParameters -->
        <Parameter Name="Red"/>
        <Parameter Name="Green"/>
        <Parameter Name="Blue"/>
		
				
        <!-- LTDC Config L0 (Background) parameters -->
        <Parameter Name="LayerIdx_L0" />
		
        <Parameter Name="WindowX0_L0" />
        <Parameter Name="WindowX1_L0" />
        <Parameter Name="WindowY0_L0" />
        <Parameter Name="WindowY1_L0" />
		
        <!-- <Parameter Name="PixelFormat_L0_not888" replaced with: /> -->
              <!-- WARNING : PixelFormat_L0 parameter is also used by X-CUBE-TOUCHGFX -->
        <Parameter Name="PixelFormat_L0" />
		
        <Parameter Name="Alpha_L0" />
        <Parameter Name="Alpha0_L0" />
        <Parameter Name="BlendingFactor1_L0" />
        <Parameter Name="BlendingFactor2_L0" />	
		
        <Parameter Name="FBStartAdress_L0" />
        <Parameter Name="ImageWidth_L0" />
        <Parameter Name="ImageHeight_L0" />
		
        <Parameter Name="Blue_L0" />
        <Parameter Name="Green_L0" />
        <Parameter Name="Red_L0" />
		
        <!-- LTDC Layer settings start here -->
        <Parameter Name="Layers"/>
        <!-- LTDC Config L1 (Foreground) parameters -->
        <Parameter Name="LayerIdx_L1" />
		
        <Parameter Name="WindowX0_L1" />
        <Parameter Name="WindowX1_L1" />
        <Parameter Name="WindowY0_L1" />
        <Parameter Name="WindowY1_L1" />
		
        <!-- <Parameter Name="PixelFormat_L1_not888" replaced with: /> -->
        <Parameter Name="PixelFormat_L1" />
        <Parameter Name="Alpha_L1" />
        <Parameter Name="Alpha0_L1" />
        <Parameter Name="BlendingFactor1_L1" />
        <Parameter Name="BlendingFactor2_L1" />	
		
        <Parameter Name="FBStartAdress_L1" />
        <Parameter Name="ImageWidth_L1" />
        <Parameter Name="ImageHeight_L1" />
		
        <Parameter Name="Blue_L1" />
        <Parameter Name="Green_L1" />
        <Parameter Name="Red_L1" />
		
    </RefMode>
		
		
    <!-- ModeLogicOperator for LTDC -->
    <ModeLogicOperator Name="OR">
        <Mode Name="Display" UserName="Display Type">
            <ModeLogicOperator Name="XOR">
                <Mode Name="RGB888" UserName="RGB888 (24 bits)">
                    <Semaphore>Semaphore_LTDC_ConfiguredforDSI_24bits</Semaphore>
                    <SignalLogicalOp Name="AND">
                        <Signal Name="R0" />
                        <Signal Name="R1" />
                        <Signal Name="R2" />
                        <Signal Name="R3" />
                        <Signal Name="R4" />
                        <Signal Name="R5" />
                        <Signal Name="R6" />
                        <Signal Name="R7" />
						
                        <Signal Name="G0" />
                        <Signal Name="G1" />
                        <Signal Name="G2" />
                        <Signal Name="G3" />
                        <Signal Name="G4" />
                        <Signal Name="G5" />
                        <Signal Name="G6" />
                        <Signal Name="G7" />
						
                        <Signal Name="B0" />
                        <Signal Name="B1" />
                        <Signal Name="B2" />
                        <Signal Name="B3" />
                        <Signal Name="B4" />
                        <Signal Name="B5" />
                        <Signal Name="B6" />
                        <Signal Name="B7" />
						
                        <Signal Name="HSYNC" />
                        <Signal Name="VSYNC" />
                        <Signal Name="CLK" />
                        <Signal Name="DE" />
                    </SignalLogicalOp>
                </Mode>
				
                <Mode Name="RGB666" UserName="RGB666 (18 bits)">
                    <Semaphore>Semaphore_LTDC_ConfiguredforDSI_18bits</Semaphore>
                    <SignalLogicalOp Name="AND">
                        <Signal Name="R2" />
                        <Signal Name="R3" />
                        <Signal Name="R4" />
                        <Signal Name="R5" />
                        <Signal Name="R6" />
                        <Signal Name="R7" />
						
                        <Signal Name="G2" />
                        <Signal Name="G3" />
                        <Signal Name="G4" />
                        <Signal Name="G5" />
                        <Signal Name="G6" />
                        <Signal Name="G7" />
						
                        <Signal Name="B2" />
                        <Signal Name="B3" />
                        <Signal Name="B4" />
                        <Signal Name="B5" />
                        <Signal Name="B6" />
                        <Signal Name="B7" />
						
                        <Signal Name="HSYNC" />
                        <Signal Name="VSYNC" />
                        <Signal Name="CLK" />
                        <Signal Name="DE" />
                    </SignalLogicalOp>
                </Mode>
				
                <Mode Name="RGB565" UserName="RGB565 (16 bits)">
                    <Semaphore>Semaphore_LTDC_ConfiguredforDSI_16bits</Semaphore>
                    <SignalLogicalOp Name="AND">
                        <Signal Name="R3" />
                        <Signal Name="R4" />
                        <Signal Name="R5" />
                        <Signal Name="R6" />
                        <Signal Name="R7" />
						
                        <Signal Name="G2" />
                        <Signal Name="G3" />
                        <Signal Name="G4" />
                        <Signal Name="G5" />
                        <Signal Name="G6" />
                        <Signal Name="G7" />
						
                        <Signal Name="B3" />
                        <Signal Name="B4" />
                        <Signal Name="B5" />
                        <Signal Name="B6" />
                        <Signal Name="B7" />
						
                        <Signal Name="HSYNC" />
                        <Signal Name="VSYNC" />
                        <Signal Name="CLK" />
                        <Signal Name="DE" />
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
              <!-- WARNING : MW_LTDC_MW semaphore is also used by X-CUBE-TOUCHGFX -->
            <Semaphore>MW_LTDC_MW</Semaphore>
        </Mode>
    </ModeLogicOperator>
	
	
    <!-- RefSignal for LCD-TFT -->
    <RefSignal Name="R0" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R1" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R2" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R3" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R4" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R5" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R6" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="R7" IOMode="AlternateFunctionPushPull"/>
	
    <RefSignal Name="G0" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G1" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G2" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G3" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G4" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G5" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G6" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="G7" IOMode="AlternateFunctionPushPull"/>
	
    <RefSignal Name="B0" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B1" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B2" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B3" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B4" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B5" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B6" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="B7" IOMode="AlternateFunctionPushPull"/>
	
    <RefSignal Name="HSYNC" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="VSYNC" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="CLK" IOMode="AlternateFunctionPushPull"/>
    <RefSignal Name="DE" IOMode="AlternateFunctionPushPull"/>
	
    <!-- Clock Semaphore for this IP. -->
    <Semaphore>LTDCUsed_ForRCC</Semaphore>
</IP>
