Initialization and Configuration functions.
More...
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
| void DMA2D_AbortTransfer |
( |
void |
| ) |
|
Aboart the DMA2D transfer.
- Parameters
-
Fills each DMA2D_BGStruct member with its default value.
- Parameters
-
| DMA2D_BGStruct | pointer to a DMA2D_BGTypeDef structure which will be initialized. |
- Return values
-
< 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
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_BGStruct | pointer to a DMA2D_BGTypeDef structure that contains the configuration information for the specified Background. |
- Return values
-
| void DMA2D_BGStart |
( |
FunctionalState |
NewState | ) |
|
Start the automatic loading of the CLUT or abort the transfer.
- Parameters
-
| NewState | new state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
| void DMA2D_DeadTimeConfig |
( |
uint32_t |
DMA2D_DeadTime, |
|
|
FunctionalState |
NewState |
|
) |
| |
Configures the DMA2D dead time.
- Parameters
-
| DMA2D_DeadTime | specifies the DMA2D dead time. This parameter can be one of the following values: |
- Return values
-
| void DMA2D_DeInit |
( |
void |
| ) |
|
Deinitializes the DMA2D peripheral registers to their default reset values.
- Parameters
-
- Return values
-
Fills each DMA2D_FGStruct member with its default value.
- Parameters
-
| DMA2D_FGStruct | pointer to a DMA2D_FGTypeDef structure which will be initialized. |
- Return values
-
< 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
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_FGStruct | pointer to a DMA2D_FGTypeDef structure that contains the configuration information for the specified Background. |
- Return values
-
| void DMA2D_FGStart |
( |
FunctionalState |
NewState | ) |
|
Start the automatic loading of the CLUT or abort the transfer.
- Parameters
-
| NewState | new state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
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_InitStruct | pointer to a DMA2D_InitTypeDef structure that contains the configuration information for the specified DMA2D peripheral. |
- Return values
-
Fills each DMA2D_InitStruct member with its default value.
- Parameters
-
- Return values
-
| void DMA2D_LineWatermarkConfig |
( |
uint32_t |
DMA2D_LWatermarkConfig | ) |
|
Define the configuration of the line watermark .
- Parameters
-
| DMA2D_LWatermarkConfig | Line Watermark configuration. |
- Return values
-
| void DMA2D_StartTransfer |
( |
void |
| ) |
|
Start the DMA2D transfer.
- Parameters
-
| void DMA2D_Suspend |
( |
FunctionalState |
NewState | ) |
|
Stop or continue the DMA2D transfer.
- Parameters
-
| NewState | new state of the DMA2D peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-