discoverpixy
Modules | Classes | Macros | Functions

DMA2D driver modules. More...

Collaboration diagram for DMA2D:

Modules

 DMA2D_Exported_Constants
 
 DMA2D_Private_Functions
 

Classes

struct  DMA2D_InitTypeDef
 DMA2D Init structure definition. More...
 
struct  DMA2D_FG_InitTypeDef
 
struct  DMA2D_BG_InitTypeDef
 

Macros

#define CR_MASK   ((uint32_t)0xFFFCE0FC) /* DMA2D CR Mask */
 
#define PFCCR_MASK   ((uint32_t)0x00FC00C0) /* DMA2D FGPFCCR Mask */
 
#define DEAD_MASK   ((uint32_t)0xFFFF00FE) /* DMA2D DEAD Mask */
 

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...
 
void DMA2D_ITConfig (uint32_t DMA2D_IT, FunctionalState NewState)
 Enables or disables the specified DMA2D's interrupts. More...
 
FlagStatus DMA2D_GetFlagStatus (uint32_t DMA2D_FLAG)
 Checks whether the specified DMA2D's flag is set or not. More...
 
void DMA2D_ClearFlag (uint32_t DMA2D_FLAG)
 Clears the DMA2D's pending flags. More...
 
ITStatus DMA2D_GetITStatus (uint32_t DMA2D_IT)
 Checks whether the specified DMA2D's interrupt has occurred or not. More...
 
void DMA2D_ClearITPendingBit (uint32_t DMA2D_IT)
 Clears the DMA2D's interrupt pending bits. More...
 

Detailed Description

DMA2D driver modules.

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_ClearFlag ( uint32_t  DMA2D_FLAG)

Clears the DMA2D's pending flags.

Parameters
DMA2D_FLAGspecifies the flag to clear. This parameter can be any combination of the following values:
  • DMA2D_FLAG_CE: Configuration Error Interrupt flag.
  • DMA2D_FLAG_CTC: CLUT Transfer Complete Interrupt flag.
  • DMA2D_FLAG_CAE: CLUT Access Error Interrupt flag.
  • DMA2D_FLAG_TW: Transfer Watermark Interrupt flag.
  • DMA2D_FLAG_TC: Transfer Complete interrupt flag.
  • DMA2D_FLAG_TE: Transfer Error interrupt flag.
Return values
None
void DMA2D_ClearITPendingBit ( uint32_t  DMA2D_IT)

Clears the DMA2D's interrupt pending bits.

Parameters
DMA2D_ITspecifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
  • DMA2D_IT_CE: Configuration Error Interrupt.
  • DMA2D_IT_CTC: CLUT Transfer Complete Interrupt.
  • DMA2D_IT_CAE: CLUT Access Error Interrupt.
  • DMA2D_IT_TW: Transfer Watermark Interrupt.
  • DMA2D_IT_TC: Transfer Complete interrupt.
  • DMA2D_IT_TE: Transfer Error interrupt.
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
FlagStatus DMA2D_GetFlagStatus ( uint32_t  DMA2D_FLAG)

Checks whether the specified DMA2D's flag is set or not.

Parameters
DMA2D_FLAGspecifies the flag to check. This parameter can be one of the following values:
  • DMA2D_FLAG_CE: Configuration Error Interrupt flag.
  • DMA2D_FLAG_CTC: CLUT Transfer Complete Interrupt flag.
  • DMA2D_FLAG_CAE: CLUT Access Error Interrupt flag.
  • DMA2D_FLAG_TW: Transfer Watermark Interrupt flag.
  • DMA2D_FLAG_TC: Transfer Complete interrupt flag.
  • DMA2D_FLAG_TE: Transfer Error interrupt flag.
Return values
Thenew state of DMA2D_FLAG (SET or RESET).
ITStatus DMA2D_GetITStatus ( uint32_t  DMA2D_IT)

Checks whether the specified DMA2D's interrupt has occurred or not.

Parameters
DMA2D_ITspecifies the DMA2D interrupts sources to check. This parameter can be one of the following values:
  • DMA2D_IT_CE: Configuration Error Interrupt Enable.
  • DMA2D_IT_CTC: CLUT Transfer Complete Interrupt Enable.
  • DMA2D_IT_CAE: CLUT Access Error Interrupt Enable.
  • DMA2D_IT_TW: Transfer Watermark Interrupt Enable.
  • DMA2D_IT_TC: Transfer Complete interrupt enable.
  • DMA2D_IT_TE: Transfer Error interrupt enable.
Return values
Thenew state of the DMA2D_IT (SET or RESET).
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_ITConfig ( uint32_t  DMA2D_IT,
FunctionalState  NewState 
)

Enables or disables the specified DMA2D's interrupts.

Parameters
DMA2D_ITspecifies the DMA2D interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • DMA2D_IT_CE: Configuration Error Interrupt Enable.
  • DMA2D_IT_CTC: CLUT Transfer Complete Interrupt Enable.
  • DMA2D_IT_CAE: CLUT Access Error Interrupt Enable.
  • DMA2D_IT_TW: Transfer Watermark Interrupt Enable.
  • DMA2D_IT_TC: Transfer Complete interrupt enable.
  • DMA2D_IT_TE: Transfer Error interrupt enable.
NewStatenew state of the specified DMA2D interrupts. This parameter can be: ENABLE or DISABLE.
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