discoverpixy
Functions
Initialization and Configuration functions

Initialization and Configuration functions. More...

Collaboration diagram for Initialization and Configuration functions:

Functions

void DMA2D_DeInit (void)
 Deinitializes the DMA2D peripheral registers to their default reset values. More...
 
void DMA2D_Init (DMA2D_InitTypeDef *DMA2D_InitStruct)
 Initializes the DMA2D peripheral according to the specified parameters in the DMA2D_InitStruct. More...
 
void DMA2D_StructInit (DMA2D_InitTypeDef *DMA2D_InitStruct)
 
void DMA2D_StartTransfer (void)
 Start the DMA2D transfer. More...
 
void DMA2D_AbortTransfer (void)
 Aboart the DMA2D transfer. More...
 
void DMA2D_Suspend (FunctionalState NewState)
 Stop or continue the DMA2D transfer. More...
 
void DMA2D_FGConfig (DMA2D_FG_InitTypeDef *DMA2D_FG_InitStruct)
 Configures the Foreground according to the specified parameters in the DMA2D_FGStruct. More...
 
void DMA2D_FG_StructInit (DMA2D_FG_InitTypeDef *DMA2D_FG_InitStruct)
 Fills each DMA2D_FGStruct member with its default value. More...
 
void DMA2D_BGConfig (DMA2D_BG_InitTypeDef *DMA2D_BG_InitStruct)
 Configures the Background according to the specified parameters in the DMA2D_BGStruct. More...
 
void DMA2D_BG_StructInit (DMA2D_BG_InitTypeDef *DMA2D_BG_InitStruct)
 Fills each DMA2D_BGStruct member with its default value. More...
 
void DMA2D_FGStart (FunctionalState NewState)
 Start the automatic loading of the CLUT or abort the transfer. More...
 
void DMA2D_BGStart (FunctionalState NewState)
 Start the automatic loading of the CLUT or abort the transfer. More...
 
void DMA2D_DeadTimeConfig (uint32_t DMA2D_DeadTime, FunctionalState NewState)
 Configures the DMA2D dead time. More...
 
void DMA2D_LineWatermarkConfig (uint32_t DMA2D_LWatermarkConfig)
 Define the configuration of the line watermark . More...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
            ##### Initialization and Configuration functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the DMA2D
      (+) Start/Abort/Suspend Transfer
      (+) Initialize, configure and set Foreground and background
      (+) configure and enable DeadTime
      (+) configure lineWatermark

Function Documentation

void DMA2D_AbortTransfer ( void  )

Aboart the DMA2D transfer.

Parameters
void DMA2D_BG_StructInit ( DMA2D_BG_InitTypeDef DMA2D_BG_InitStruct)

Fills each DMA2D_BGStruct member with its default value.

Parameters
DMA2D_BGStructpointer to a DMA2D_BGTypeDef structure which will be initialized.
Return values
None

< Initialize the DMA2D background memory address

< Initialize the DMA2D background offset

< Initialize the DMA2D background color mode

< Initialize the DMA2D background CLUT color mode

< Initialize the DMA2D background CLUT size

< Initialize the DMA2D background alpha mode

< Initialize the DMA2D background alpha value

< Initialize the DMA2D background blue value

< Initialize the DMA2D background green value

< Initialize the DMA2D background red value

< Initialize the DMA2D background CLUT memory address

void DMA2D_BGConfig ( DMA2D_BG_InitTypeDef DMA2D_BG_InitStruct)

Configures the Background according to the specified parameters in the DMA2D_BGStruct.

Note
This function can be used only when the transfer is disabled.
Parameters
DMA2D_BGStructpointer to a DMA2D_BGTypeDef structure that contains the configuration information for the specified Background.
Return values
None
void DMA2D_BGStart ( FunctionalState  NewState)

Start the automatic loading of the CLUT or abort the transfer.

Parameters
NewStatenew state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
void DMA2D_DeadTimeConfig ( uint32_t  DMA2D_DeadTime,
FunctionalState  NewState 
)

Configures the DMA2D dead time.

Parameters
DMA2D_DeadTimespecifies the DMA2D dead time. This parameter can be one of the following values:
Return values
None
void DMA2D_DeInit ( void  )

Deinitializes the DMA2D peripheral registers to their default reset values.

Parameters
None
Return values
None

Here is the call graph for this function:

void DMA2D_FG_StructInit ( DMA2D_FG_InitTypeDef DMA2D_FG_InitStruct)

Fills each DMA2D_FGStruct member with its default value.

Parameters
DMA2D_FGStructpointer to a DMA2D_FGTypeDef structure which will be initialized.
Return values
None

< Initialize the DMA2D foreground memory address

< Initialize the DMA2D foreground offset

< Initialize the DMA2D foreground color mode

< Initialize the DMA2D foreground CLUT color mode

< Initialize the DMA2D foreground CLUT size

< Initialize the DMA2D foreground alpha mode

< Initialize the DMA2D foreground alpha value

< Initialize the DMA2D foreground blue value

< Initialize the DMA2D foreground green value

< Initialize the DMA2D foreground red value

< Initialize the DMA2D foreground CLUT memory address

void DMA2D_FGConfig ( DMA2D_FG_InitTypeDef DMA2D_FG_InitStruct)

Configures the Foreground according to the specified parameters in the DMA2D_FGStruct.

Note
This function can be used only when the transfer is disabled.
Parameters
DMA2D_FGStructpointer to a DMA2D_FGTypeDef structure that contains the configuration information for the specified Background.
Return values
None
void DMA2D_FGStart ( FunctionalState  NewState)

Start the automatic loading of the CLUT or abort the transfer.

Parameters
NewStatenew state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
void DMA2D_Init ( DMA2D_InitTypeDef DMA2D_InitStruct)

Initializes the DMA2D peripheral according to the specified parameters in the DMA2D_InitStruct.

Note
This function can be used only when the DMA2D is disabled.
Parameters
DMA2D_InitStructpointer to a DMA2D_InitTypeDef structure that contains the configuration information for the specified DMA2D peripheral.
Return values
None

Fills each DMA2D_InitStruct member with its default value.

Parameters
DMA2D_InitStructpointer to a DMA2D_InitTypeDef structure which will be initialized.
Return values
None
void DMA2D_LineWatermarkConfig ( uint32_t  DMA2D_LWatermarkConfig)

Define the configuration of the line watermark .

Parameters
DMA2D_LWatermarkConfigLine Watermark configuration.
Return values
None
void DMA2D_StartTransfer ( void  )

Start the DMA2D transfer.

Parameters
void DMA2D_Suspend ( FunctionalState  NewState)

Stop or continue the DMA2D transfer.

Parameters
NewStatenew state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None