STM32F4xx_HAL_Driver  1.8.3
Initialization and De-initialization Functions
+ Collaboration diagram for Initialization and De-initialization Functions:

Functions

ErrorStatus LL_DMA2D_DeInit (DMA2D_TypeDef *DMA2Dx)
 De-initialize DMA2D registers (registers restored to their default values). More...
 
ErrorStatus LL_DMA2D_Init (DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct)
 Initialize DMA2D registers according to the specified parameters in DMA2D_InitStruct. More...
 
void LL_DMA2D_StructInit (LL_DMA2D_InitTypeDef *DMA2D_InitStruct)
 Set each LL_DMA2D_InitTypeDef field to default value. More...
 
void LL_DMA2D_ConfigLayer (DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t LayerIdx)
 Configure the foreground or background according to the specified parameters in the LL_DMA2D_LayerCfgTypeDef structure. More...
 
void LL_DMA2D_LayerCfgStructInit (LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg)
 Set each LL_DMA2D_LayerCfgTypeDef field to default value. More...
 
void LL_DMA2D_ConfigOutputColor (DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct)
 Initialize DMA2D output color register according to the specified parameters in DMA2D_ColorStruct. More...
 
uint32_t LL_DMA2D_GetOutputBlueColor (DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode)
 Return DMA2D output Blue color. More...
 
uint32_t LL_DMA2D_GetOutputGreenColor (DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode)
 Return DMA2D output Green color. More...
 
uint32_t LL_DMA2D_GetOutputRedColor (DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode)
 Return DMA2D output Red color. More...
 
uint32_t LL_DMA2D_GetOutputAlphaColor (DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode)
 Return DMA2D output Alpha color. More...
 
void LL_DMA2D_ConfigSize (DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines)
 Configure DMA2D transfer size. More...
 

Detailed Description

Function Documentation

◆ LL_DMA2D_ConfigLayer()

void LL_DMA2D_ConfigLayer ( DMA2D_TypeDef *  DMA2Dx,
LL_DMA2D_LayerCfgTypeDef DMA2D_LayerCfg,
uint32_t  LayerIdx 
)

Configure the foreground or background according to the specified parameters in the LL_DMA2D_LayerCfgTypeDef structure.

Parameters
DMA2DxDMA2D Instance
DMA2D_LayerCfgpointer to a LL_DMA2D_LayerCfgTypeDef structure that contains the configuration information for the specified layer.
LayerIdxDMA2D Layer index. This parameter can be one of the following values: 0(background) / 1(foreground)
Return values
None

Definition at line 255 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_ConfigOutputColor()

void LL_DMA2D_ConfigOutputColor ( DMA2D_TypeDef *  DMA2Dx,
LL_DMA2D_ColorTypeDef DMA2D_ColorStruct 
)

Initialize DMA2D output color register according to the specified parameters in DMA2D_ColorStruct.

Parameters
DMA2DxDMA2D Instance
DMA2D_ColorStructpointer to a LL_DMA2D_ColorTypeDef structure that contains the color configuration information for the specified DMA2D peripheral.
Return values
None

Definition at line 343 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_ConfigSize()

void LL_DMA2D_ConfigSize ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  NbrOfLines,
uint32_t  NbrOfPixelsPerLines 
)

Configure DMA2D transfer size.

Parameters
DMA2DxDMA2D Instance
NbrOfLinesValue between Min_Data=0 and Max_Data=0xFFFF
NbrOfPixelsPerLinesValue between Min_Data=0 and Max_Data=0x3FFF
Return values
None

Definition at line 570 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_DeInit()

ErrorStatus LL_DMA2D_DeInit ( DMA2D_TypeDef *  DMA2Dx)

De-initialize DMA2D registers (registers restored to their default values).

Parameters
DMA2DxDMA2D Instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DMA2D registers are de-initialized
  • ERROR: DMA2D registers are not de-initialized

Definition at line 125 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_GetOutputAlphaColor()

uint32_t LL_DMA2D_GetOutputAlphaColor ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  ColorMode 
)

Return DMA2D output Alpha color.

Parameters
DMA2DxDMA2D Instance.
ColorModeThis parameter can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444
Return values
OutputAlpha color value between Min_Data=0 and Max_Data=0xFF

Definition at line 534 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_GetOutputBlueColor()

uint32_t LL_DMA2D_GetOutputBlueColor ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  ColorMode 
)

Return DMA2D output Blue color.

Parameters
DMA2DxDMA2D Instance.
ColorModeThis parameter can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444
Return values
OutputBlue color value between Min_Data=0 and Max_Data=0xFF

Definition at line 402 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_GetOutputGreenColor()

uint32_t LL_DMA2D_GetOutputGreenColor ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  ColorMode 
)

Return DMA2D output Green color.

Parameters
DMA2DxDMA2D Instance.
ColorModeThis parameter can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444
Return values
OutputGreen color value between Min_Data=0 and Max_Data=0xFF

Definition at line 446 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_GetOutputRedColor()

uint32_t LL_DMA2D_GetOutputRedColor ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  ColorMode 
)

Return DMA2D output Red color.

Parameters
DMA2DxDMA2D Instance.
ColorModeThis parameter can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444
Return values
OutputRed color value between Min_Data=0 and Max_Data=0xFF

Definition at line 490 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_Init()

ErrorStatus LL_DMA2D_Init ( DMA2D_TypeDef *  DMA2Dx,
LL_DMA2D_InitTypeDef DMA2D_InitStruct 
)

Initialize DMA2D registers according to the specified parameters in DMA2D_InitStruct.

Note
DMA2D transfers must be disabled to set initialization bits in configuration registers, otherwise ERROR result is returned.
Parameters
DMA2DxDMA2D Instance
DMA2D_InitStructpointer to a LL_DMA2D_InitTypeDef structure that contains the configuration information for the specified DMA2D peripheral.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: DMA2D registers are initialized according to DMA2D_InitStruct content
  • ERROR: Issue occurred during DMA2D registers initialization

Definition at line 159 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_LayerCfgStructInit()

void LL_DMA2D_LayerCfgStructInit ( LL_DMA2D_LayerCfgTypeDef DMA2D_LayerCfg)

Set each LL_DMA2D_LayerCfgTypeDef field to default value.

Parameters
DMA2D_LayerCfgpointer to a LL_DMA2D_LayerCfgTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 319 of file stm32f4xx_ll_dma2d.c.

◆ LL_DMA2D_StructInit()

void LL_DMA2D_StructInit ( LL_DMA2D_InitTypeDef DMA2D_InitStruct)

Set each LL_DMA2D_InitTypeDef field to default value.

Parameters
DMA2D_InitStructpointer to a LL_DMA2D_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 229 of file stm32f4xx_ll_dma2d.c.