<?xml version="1.0" encoding="utf-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" DBVersion="V4.0" Name="DMA2D" Version="STM32Cube_FW_H7_V1.5.0" IncludeFile="stm32h7xx_ll_dma2d.h" 
    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_Configs.xsd">

    <RefConfig Name="Dma2D_Init">
      
        <!--Configure DMA2D output parameters -->
	<IFCondition Expression ="1=1">
            <CallLibMethod Name="LL_DMA2D_SetMode">
                <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="Mode" ParameterName="Mode"/>
            </CallLibMethod>        
            <CallLibMethod Name="LL_DMA2D_SetOutputColorMode">
              <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
              <MethodArg Name="ColorMode" ParameterName="ColorMode"/>
            </CallLibMethod>
            <CallLibMethod Name="LL_DMA2D_SetLineOffset">
               <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
               <MethodArg Name="LineOffset" ParameterName="OutputOffset"/>
            </CallLibMethod>        
            <CallLibMethod Name="LL_DMA2D_SetLineOffsetMode">
               <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
               <MethodArg Name="LineOffsetMode" ParameterName="LineOffsetMode"/>
            </CallLibMethod>      
            <CallLibMethod Name="LL_DMA2D_SetOutputSwapMode">
               <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
               <MethodArg Name="OutputSwapMode" ParameterName="BytesSwap"/>
            </CallLibMethod>
        </IFCondition>		

        <!--Configure DMA2D input (foreground layer) parameters -->
		
        <IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetColorMode">
               <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="ColorMode" ParameterName="InputColorModeForeground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetAlphaMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="AphaMode" ParameterName="AlphaModeForeground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetAlpha">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="Alpha" ParameterName="InputAlphaForeground"/>
            </CallLibMethod>
        </IFCondition>
		
        <IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetLineOffset">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="LineOffset" ParameterName="InputOffsetForeground"/>
            </CallLibMethod>
        </IFCondition>
		
        <IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetRBSwapMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="RBSwapMode" ParameterName="RedBlueSwapForeground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="!R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetAlphaInvMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="AlphaInversionMode" ParameterName="AlphaInvertedForeground"/>
            </CallLibMethod>
        </IFCondition>
        <!--Configure DMA2D input (background layer) parameters -->


        <IFCondition Expression ="M2M_BLEND_semaphore|FG_M2M_semaphore|BG_M2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetColorMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="ColorMode" ParameterName="InputColorModeBackground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="M2M_BLEND_semaphore|FG_M2M_semaphore|BG_M2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetAlphaMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="AphaMode" ParameterName="AlphaModeBackground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="M2M_BLEND_semaphore|FG_M2M_semaphore|BG_M2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetAlpha">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="Alpha" ParameterName="InputAlphaBackground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="M2M_BLEND_semaphore|FG_M2M_semaphore|BG_M2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetLineOffset">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="LineOffset" ParameterName="InputOffsetBackground"/>
            </CallLibMethod>
        </IFCondition>
		
	<IFCondition Expression ="M2M_BLEND_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetRBSwapMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="RBSwapMode" ParameterName="RedBlueSwapBackground"/>
            </CallLibMethod>
        </IFCondition>
		
        <IFCondition Expression ="M2M_BLEND_semaphore">
            <CallLibMethod Name="LL_DMA2D_BGND_SetAlphaInvMode">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="AlphaInversionMode" ParameterName="AlphaInvertedBackground"/>
            </CallLibMethod>
        </IFCondition>
        <IFCondition Expression ="(STM32H7) &amp; !R2M_semaphore">
            <CallLibMethod Name="LL_DMA2D_FGND_SetChrSubSampling">
                 <MethodArg Name="DMA2Dx" ParameterName="DMA2Dx"/>
                <MethodArg Name="ChromaSubSampling" ParameterName="ChromaSubSamplingForeground"/>
            </CallLibMethod>
        </IFCondition>
    </RefConfig>

    <LibMethod Comment="" Name="LL_DMA2D_SetMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="Mode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetOutputColorMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="ColorMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetLineOffset">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="LineOffset"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetLineOffsetMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="LineOffsetMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetOutputSwapMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="OutputSwapMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetOutputRBSwapMode">
       <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
       <Argument AddressOf="false" GenericType="simple" Name="RBSwapMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_SetOutputAlphaInvMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
        <Argument AddressOf="false" GenericType="simple" Name="AlphaInversionMode"/>
    </LibMethod>
	
	 
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetColorMode">
        <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>       
        <Argument AddressOf="false" GenericType="simple" Name="ColorMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetAlphaMode">
       <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
       <Argument AddressOf="false" GenericType="simple" Name="AphaMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetAlpha">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="Alpha"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetLineOffset">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="LineOffset"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetRBSwapMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="RBSwapMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetAlphaInvMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="AlphaInversionMode"/>
    </LibMethod>

    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetColorMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="ColorMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetAlphaMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="AphaMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetAlpha">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="Alpha"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetLineOffset">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="LineOffset"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetRBSwapMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="RBSwapMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_BGND_SetAlphaInvMode">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="AlphaInversionMode"/>
    </LibMethod>
    <LibMethod Comment="" Name="LL_DMA2D_FGND_SetChrSubSampling">
         <Argument AddressOf="false" GenericType="simple" Name="DMA2Dx"/>
         <Argument AddressOf="false" GenericType="simple" Name="ChromaSubSampling"/>
    </LibMethod>
    
    <RefComponent Cclass="HAL" Cgroup="RCC" Cversion="1.5.0">
        <File Category="header" Name="Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma2d.h"/>
    </RefComponent>
</IP>
