discoverpixy
Classes | Macros | Functions
stm32f4xx_dma2d.h File Reference

This file contains all the functions prototypes for the DMA2D firmware library. More...

#include "stm32f4xx.h"
Include dependency graph for stm32f4xx_dma2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Macros

#define DMA2D_M2M   ((uint32_t)0x00000000)
 
#define DMA2D_M2M_PFC   ((uint32_t)0x00010000)
 
#define DMA2D_M2M_BLEND   ((uint32_t)0x00020000)
 
#define DMA2D_R2M   ((uint32_t)0x00030000)
 
#define IS_DMA2D_MODE(MODE)
 
#define DMA2D_ARGB8888   ((uint32_t)0x00000000)
 
#define DMA2D_RGB888   ((uint32_t)0x00000001)
 
#define DMA2D_RGB565   ((uint32_t)0x00000002)
 
#define DMA2D_ARGB1555   ((uint32_t)0x00000003)
 
#define DMA2D_ARGB4444   ((uint32_t)0x00000004)
 
#define IS_DMA2D_CMODE(MODE_ARGB)
 
#define DMA2D_Output_Color   ((uint32_t)0x000000FF)
 
#define IS_DMA2D_OGREEN(OGREEN)   ((OGREEN) <= DMA2D_Output_Color)
 
#define IS_DMA2D_ORED(ORED)   ((ORED) <= DMA2D_Output_Color)
 
#define IS_DMA2D_OBLUE(OBLUE)   ((OBLUE) <= DMA2D_Output_Color)
 
#define IS_DMA2D_OALPHA(OALPHA)   ((OALPHA) <= DMA2D_Output_Color)
 
#define DMA2D_OUTPUT_OFFSET   ((uint32_t)0x00003FFF)
 
#define IS_DMA2D_OUTPUT_OFFSET(OOFFSET)   ((OOFFSET) <= DMA2D_OUTPUT_OFFSET)
 
#define DMA2D_pixel   ((uint32_t)0x00003FFF)
 
#define DMA2D_Line   ((uint32_t)0x0000FFFF)
 
#define IS_DMA2D_LINE(LINE)   ((LINE) <= DMA2D_Line)
 
#define IS_DMA2D_PIXEL(PIXEL)   ((PIXEL) <= DMA2D_pixel)
 
#define OFFSET   ((uint32_t)0x00003FFF)
 
#define IS_DMA2D_FGO(FGO)   ((FGO) <= OFFSET)
 
#define IS_DMA2D_BGO(BGO)   ((BGO) <= OFFSET)
 
#define CM_ARGB8888   ((uint32_t)0x00000000)
 
#define CM_RGB888   ((uint32_t)0x00000001)
 
#define CM_RGB565   ((uint32_t)0x00000002)
 
#define CM_ARGB1555   ((uint32_t)0x00000003)
 
#define CM_ARGB4444   ((uint32_t)0x00000004)
 
#define CM_L8   ((uint32_t)0x00000005)
 
#define CM_AL44   ((uint32_t)0x00000006)
 
#define CM_AL88   ((uint32_t)0x00000007)
 
#define CM_L4   ((uint32_t)0x00000008)
 
#define CM_A8   ((uint32_t)0x00000009)
 
#define CM_A4   ((uint32_t)0x0000000A)
 
#define IS_DMA2D_FGCM(FGCM)
 
#define IS_DMA2D_BGCM(BGCM)
 
#define CLUT_CM_ARGB8888   ((uint32_t)0x00000000)
 
#define CLUT_CM_RGB888   ((uint32_t)0x00000001)
 
#define IS_DMA2D_FG_CLUT_CM(FG_CLUT_CM)   (((FG_CLUT_CM) == CLUT_CM_ARGB8888) || ((FG_CLUT_CM) == CLUT_CM_RGB888))
 
#define IS_DMA2D_BG_CLUT_CM(BG_CLUT_CM)   (((BG_CLUT_CM) == CLUT_CM_ARGB8888) || ((BG_CLUT_CM) == CLUT_CM_RGB888))
 
#define COLOR_VALUE   ((uint32_t)0x000000FF)
 
#define IS_DMA2D_FG_CLUT_SIZE(FG_CLUT_SIZE)   ((FG_CLUT_SIZE) <= COLOR_VALUE)
 
#define IS_DMA2D_FG_ALPHA_VALUE(FG_ALPHA_VALUE)   ((FG_ALPHA_VALUE) <= COLOR_VALUE)
 
#define IS_DMA2D_FGC_BLUE(FGC_BLUE)   ((FGC_BLUE) <= COLOR_VALUE)
 
#define IS_DMA2D_FGC_GREEN(FGC_GREEN)   ((FGC_GREEN) <= COLOR_VALUE)
 
#define IS_DMA2D_FGC_RED(FGC_RED)   ((FGC_RED) <= COLOR_VALUE)
 
#define IS_DMA2D_BG_CLUT_SIZE(BG_CLUT_SIZE)   ((BG_CLUT_SIZE) <= COLOR_VALUE)
 
#define IS_DMA2D_BG_ALPHA_VALUE(BG_ALPHA_VALUE)   ((BG_ALPHA_VALUE) <= COLOR_VALUE)
 
#define IS_DMA2D_BGC_BLUE(BGC_BLUE)   ((BGC_BLUE) <= COLOR_VALUE)
 
#define IS_DMA2D_BGC_GREEN(BGC_GREEN)   ((BGC_GREEN) <= COLOR_VALUE)
 
#define IS_DMA2D_BGC_RED(BGC_RED)   ((BGC_RED) <= COLOR_VALUE)
 
#define DMA2D_IT_CE   DMA2D_CR_CEIE
 
#define DMA2D_IT_CTC   DMA2D_CR_CTCIE
 
#define DMA2D_IT_CAE   DMA2D_CR_CAEIE
 
#define DMA2D_IT_TW   DMA2D_CR_TWIE
 
#define DMA2D_IT_TC   DMA2D_CR_TCIE
 
#define DMA2D_IT_TE   DMA2D_CR_TEIE
 
#define IS_DMA2D_IT(IT)
 
#define DMA2D_FLAG_CE   DMA2D_ISR_CEIF
 
#define DMA2D_FLAG_CTC   DMA2D_ISR_CTCIF
 
#define DMA2D_FLAG_CAE   DMA2D_ISR_CAEIF
 
#define DMA2D_FLAG_TW   DMA2D_ISR_TWIF
 
#define DMA2D_FLAG_TC   DMA2D_ISR_TCIF
 
#define DMA2D_FLAG_TE   DMA2D_ISR_TEIF
 
#define IS_DMA2D_GET_FLAG(FLAG)
 
#define DEADTIME   ((uint32_t)0x000000FF)
 
#define IS_DMA2D_DEAD_TIME(DEAD_TIME)   ((DEAD_TIME) <= DEADTIME)
 
#define LINE_WATERMARK   DMA2D_LWR_LW
 
#define IS_DMA2D_LineWatermark(LineWatermark)   ((LineWatermark) <= LINE_WATERMARK)
 
#define NO_MODIF_ALPHA_VALUE   ((uint32_t)0x00000000)
 
#define REPLACE_ALPHA_VALUE   ((uint32_t)0x00000001)
 
#define COMBINE_ALPHA_VALUE   ((uint32_t)0x00000002)
 
#define IS_DMA2D_FG_ALPHA_MODE(FG_ALPHA_MODE)
 
#define IS_DMA2D_BG_ALPHA_MODE(BG_ALPHA_MODE)
 

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

This file contains all the functions prototypes for the DMA2D firmware library.

Author
MCD Application Team
Version
V1.4.0
Date
04-August-2014
Attention

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.