mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F411RE/stm32f4xx_hal_dma2d.h@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 235:685d5f11838f
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 235:685d5f11838f | 1 | /** |
mbed_official | 235:685d5f11838f | 2 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 3 | * @file stm32f4xx_hal_dma2d.h |
mbed_official | 235:685d5f11838f | 4 | * @author MCD Application Team |
mbed_official | 235:685d5f11838f | 5 | * @version V1.1.0 |
mbed_official | 235:685d5f11838f | 6 | * @date 19-June-2014 |
mbed_official | 235:685d5f11838f | 7 | * @brief Header file of DMA2D HAL module. |
mbed_official | 235:685d5f11838f | 8 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 9 | * @attention |
mbed_official | 235:685d5f11838f | 10 | * |
mbed_official | 235:685d5f11838f | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 235:685d5f11838f | 12 | * |
mbed_official | 235:685d5f11838f | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 235:685d5f11838f | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 235:685d5f11838f | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 235:685d5f11838f | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 235:685d5f11838f | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 235:685d5f11838f | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 235:685d5f11838f | 19 | * and/or other materials provided with the distribution. |
mbed_official | 235:685d5f11838f | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 235:685d5f11838f | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 235:685d5f11838f | 22 | * without specific prior written permission. |
mbed_official | 235:685d5f11838f | 23 | * |
mbed_official | 235:685d5f11838f | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 235:685d5f11838f | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 235:685d5f11838f | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 235:685d5f11838f | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 235:685d5f11838f | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 235:685d5f11838f | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 235:685d5f11838f | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 235:685d5f11838f | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 235:685d5f11838f | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 235:685d5f11838f | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 235:685d5f11838f | 34 | * |
mbed_official | 235:685d5f11838f | 35 | ****************************************************************************** |
mbed_official | 235:685d5f11838f | 36 | */ |
mbed_official | 235:685d5f11838f | 37 | |
mbed_official | 235:685d5f11838f | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 235:685d5f11838f | 39 | #ifndef __STM32F4xx_HAL_DMA2D_H |
mbed_official | 235:685d5f11838f | 40 | #define __STM32F4xx_HAL_DMA2D_H |
mbed_official | 235:685d5f11838f | 41 | |
mbed_official | 235:685d5f11838f | 42 | #ifdef __cplusplus |
mbed_official | 235:685d5f11838f | 43 | extern "C" { |
mbed_official | 235:685d5f11838f | 44 | #endif |
mbed_official | 235:685d5f11838f | 45 | |
mbed_official | 235:685d5f11838f | 46 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) |
mbed_official | 235:685d5f11838f | 47 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 48 | #include "stm32f4xx_hal_def.h" |
mbed_official | 235:685d5f11838f | 49 | |
mbed_official | 235:685d5f11838f | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
mbed_official | 235:685d5f11838f | 51 | * @{ |
mbed_official | 235:685d5f11838f | 52 | */ |
mbed_official | 235:685d5f11838f | 53 | |
mbed_official | 235:685d5f11838f | 54 | /** @addtogroup DMA2D |
mbed_official | 235:685d5f11838f | 55 | * @{ |
mbed_official | 235:685d5f11838f | 56 | */ |
mbed_official | 235:685d5f11838f | 57 | |
mbed_official | 235:685d5f11838f | 58 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 59 | |
mbed_official | 235:685d5f11838f | 60 | #define MAX_DMA2D_LAYER 2 |
mbed_official | 235:685d5f11838f | 61 | |
mbed_official | 235:685d5f11838f | 62 | /** |
mbed_official | 235:685d5f11838f | 63 | * @brief DMA2D color Structure definition |
mbed_official | 235:685d5f11838f | 64 | */ |
mbed_official | 235:685d5f11838f | 65 | typedef struct |
mbed_official | 235:685d5f11838f | 66 | { |
mbed_official | 235:685d5f11838f | 67 | uint32_t Blue; /*!< Configures the blue value. |
mbed_official | 235:685d5f11838f | 68 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
mbed_official | 235:685d5f11838f | 69 | |
mbed_official | 235:685d5f11838f | 70 | uint32_t Green; /*!< Configures the green value. |
mbed_official | 235:685d5f11838f | 71 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
mbed_official | 235:685d5f11838f | 72 | |
mbed_official | 235:685d5f11838f | 73 | uint32_t Red; /*!< Configures the red value. |
mbed_official | 235:685d5f11838f | 74 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
mbed_official | 235:685d5f11838f | 75 | } DMA2D_ColorTypeDef; |
mbed_official | 235:685d5f11838f | 76 | |
mbed_official | 235:685d5f11838f | 77 | /** |
mbed_official | 235:685d5f11838f | 78 | * @brief DMA2D CLUT Structure definition |
mbed_official | 235:685d5f11838f | 79 | */ |
mbed_official | 235:685d5f11838f | 80 | typedef struct |
mbed_official | 235:685d5f11838f | 81 | { |
mbed_official | 235:685d5f11838f | 82 | uint32_t *pCLUT; /*!< Configures the DMA2D CLUT memory address.*/ |
mbed_official | 235:685d5f11838f | 83 | |
mbed_official | 235:685d5f11838f | 84 | uint32_t CLUTColorMode; /*!< configures the DMA2D CLUT color mode. |
mbed_official | 235:685d5f11838f | 85 | This parameter can be one value of @ref DMA2D_CLUT_CM */ |
mbed_official | 235:685d5f11838f | 86 | |
mbed_official | 235:685d5f11838f | 87 | uint32_t Size; /*!< configures the DMA2D CLUT size. |
mbed_official | 235:685d5f11838f | 88 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.*/ |
mbed_official | 235:685d5f11838f | 89 | } DMA2D_CLUTCfgTypeDef; |
mbed_official | 235:685d5f11838f | 90 | |
mbed_official | 235:685d5f11838f | 91 | /** |
mbed_official | 235:685d5f11838f | 92 | * @brief DMA2D Init structure definition |
mbed_official | 235:685d5f11838f | 93 | */ |
mbed_official | 235:685d5f11838f | 94 | typedef struct |
mbed_official | 235:685d5f11838f | 95 | { |
mbed_official | 235:685d5f11838f | 96 | uint32_t Mode; /*!< configures the DMA2D transfer mode. |
mbed_official | 235:685d5f11838f | 97 | This parameter can be one value of @ref DMA2D_Mode */ |
mbed_official | 235:685d5f11838f | 98 | |
mbed_official | 235:685d5f11838f | 99 | uint32_t ColorMode; /*!< configures the color format of the output image. |
mbed_official | 235:685d5f11838f | 100 | This parameter can be one value of @ref DMA2D_Color_Mode */ |
mbed_official | 235:685d5f11838f | 101 | |
mbed_official | 235:685d5f11838f | 102 | uint32_t OutputOffset; /*!< Specifies the Offset value. |
mbed_official | 235:685d5f11838f | 103 | This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0x3FFF. */ |
mbed_official | 235:685d5f11838f | 104 | } DMA2D_InitTypeDef; |
mbed_official | 235:685d5f11838f | 105 | |
mbed_official | 235:685d5f11838f | 106 | /** |
mbed_official | 235:685d5f11838f | 107 | * @brief DMA2D Layer structure definition |
mbed_official | 235:685d5f11838f | 108 | */ |
mbed_official | 235:685d5f11838f | 109 | typedef struct |
mbed_official | 235:685d5f11838f | 110 | { |
mbed_official | 235:685d5f11838f | 111 | uint32_t InputOffset; /*!< configures the DMA2D foreground offset. |
mbed_official | 235:685d5f11838f | 112 | This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0x3FFF. */ |
mbed_official | 235:685d5f11838f | 113 | |
mbed_official | 235:685d5f11838f | 114 | uint32_t InputColorMode; /*!< configures the DMA2D foreground color mode . |
mbed_official | 235:685d5f11838f | 115 | This parameter can be one value of @ref DMA2D_Input_Color_Mode */ |
mbed_official | 235:685d5f11838f | 116 | |
mbed_official | 235:685d5f11838f | 117 | uint32_t AlphaMode; /*!< configures the DMA2D foreground alpha mode. |
mbed_official | 235:685d5f11838f | 118 | This parameter can be one value of @ref DMA2D_ALPHA_MODE */ |
mbed_official | 235:685d5f11838f | 119 | |
mbed_official | 235:685d5f11838f | 120 | uint32_t InputAlpha; /*!< Specifies the DMA2D foreground alpha value and color value in case of A8 or A4 color mode. |
mbed_official | 235:685d5f11838f | 121 | This parameter must be a number between Min_Data = 0x00000000 and Max_Data = 0xFFFFFFFF |
mbed_official | 235:685d5f11838f | 122 | in case of A8 or A4 color mode (ARGB). |
mbed_official | 235:685d5f11838f | 123 | Otherwise, This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.*/ |
mbed_official | 235:685d5f11838f | 124 | |
mbed_official | 235:685d5f11838f | 125 | } DMA2D_LayerCfgTypeDef; |
mbed_official | 235:685d5f11838f | 126 | |
mbed_official | 235:685d5f11838f | 127 | /** |
mbed_official | 235:685d5f11838f | 128 | * @brief HAL DMA2D State structures definition |
mbed_official | 235:685d5f11838f | 129 | */ |
mbed_official | 235:685d5f11838f | 130 | typedef enum |
mbed_official | 235:685d5f11838f | 131 | { |
mbed_official | 235:685d5f11838f | 132 | HAL_DMA2D_STATE_RESET = 0x00, /*!< DMA2D not yet initialized or disabled */ |
mbed_official | 235:685d5f11838f | 133 | HAL_DMA2D_STATE_READY = 0x01, /*!< Peripheral Initialized and ready for use */ |
mbed_official | 235:685d5f11838f | 134 | HAL_DMA2D_STATE_BUSY = 0x02, /*!< an internal process is ongoing */ |
mbed_official | 235:685d5f11838f | 135 | HAL_DMA2D_STATE_TIMEOUT = 0x03, /*!< Timeout state */ |
mbed_official | 235:685d5f11838f | 136 | HAL_DMA2D_STATE_ERROR = 0x04, /*!< DMA2D state error */ |
mbed_official | 235:685d5f11838f | 137 | HAL_DMA2D_STATE_SUSPEND = 0x05 /*!< DMA2D process is suspended */ |
mbed_official | 235:685d5f11838f | 138 | }HAL_DMA2D_StateTypeDef; |
mbed_official | 235:685d5f11838f | 139 | |
mbed_official | 235:685d5f11838f | 140 | /** |
mbed_official | 235:685d5f11838f | 141 | * @brief DMA2D handle Structure definition |
mbed_official | 235:685d5f11838f | 142 | */ |
mbed_official | 235:685d5f11838f | 143 | typedef struct __DMA2D_HandleTypeDef |
mbed_official | 235:685d5f11838f | 144 | { |
mbed_official | 235:685d5f11838f | 145 | DMA2D_TypeDef *Instance; /*!< DMA2D Register base address */ |
mbed_official | 235:685d5f11838f | 146 | |
mbed_official | 235:685d5f11838f | 147 | DMA2D_InitTypeDef Init; /*!< DMA2D communication parameters */ |
mbed_official | 235:685d5f11838f | 148 | |
mbed_official | 235:685d5f11838f | 149 | void (* XferCpltCallback)(struct __DMA2D_HandleTypeDef * hdma2d); /*!< DMA2D transfer complete callback */ |
mbed_official | 235:685d5f11838f | 150 | |
mbed_official | 235:685d5f11838f | 151 | void (* XferErrorCallback)(struct __DMA2D_HandleTypeDef * hdma2d); /*!< DMA2D transfer error callback */ |
mbed_official | 235:685d5f11838f | 152 | |
mbed_official | 235:685d5f11838f | 153 | DMA2D_LayerCfgTypeDef LayerCfg[MAX_DMA2D_LAYER]; /*!< DMA2D Layers parameters */ |
mbed_official | 235:685d5f11838f | 154 | |
mbed_official | 235:685d5f11838f | 155 | HAL_LockTypeDef Lock; /*!< DMA2D Lock */ |
mbed_official | 235:685d5f11838f | 156 | |
mbed_official | 235:685d5f11838f | 157 | __IO HAL_DMA2D_StateTypeDef State; /*!< DMA2D transfer state */ |
mbed_official | 235:685d5f11838f | 158 | |
mbed_official | 235:685d5f11838f | 159 | __IO uint32_t ErrorCode; /*!< DMA2D Error code */ |
mbed_official | 235:685d5f11838f | 160 | } DMA2D_HandleTypeDef; |
mbed_official | 235:685d5f11838f | 161 | |
mbed_official | 235:685d5f11838f | 162 | |
mbed_official | 235:685d5f11838f | 163 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 164 | |
mbed_official | 235:685d5f11838f | 165 | /** @defgroup DMA2D_Exported_Constants |
mbed_official | 235:685d5f11838f | 166 | * @{ |
mbed_official | 235:685d5f11838f | 167 | */ |
mbed_official | 235:685d5f11838f | 168 | |
mbed_official | 235:685d5f11838f | 169 | /** @defgroup DMA2D_Layer |
mbed_official | 235:685d5f11838f | 170 | * @{ |
mbed_official | 235:685d5f11838f | 171 | */ |
mbed_official | 235:685d5f11838f | 172 | #define IS_DMA2D_LAYER(LAYER) ((LAYER) <= MAX_DMA2D_LAYER) |
mbed_official | 235:685d5f11838f | 173 | /** |
mbed_official | 235:685d5f11838f | 174 | * @} |
mbed_official | 235:685d5f11838f | 175 | */ |
mbed_official | 235:685d5f11838f | 176 | |
mbed_official | 235:685d5f11838f | 177 | /** @defgroup DMA2D_Error_Code |
mbed_official | 235:685d5f11838f | 178 | * @{ |
mbed_official | 235:685d5f11838f | 179 | */ |
mbed_official | 235:685d5f11838f | 180 | #define HAL_DMA2D_ERROR_NONE ((uint32_t)0x00000000) /*!< No error */ |
mbed_official | 235:685d5f11838f | 181 | #define HAL_DMA2D_ERROR_TE ((uint32_t)0x00000001) /*!< Transfer error */ |
mbed_official | 235:685d5f11838f | 182 | #define HAL_DMA2D_ERROR_CE ((uint32_t)0x00000002) /*!< Configuration error */ |
mbed_official | 235:685d5f11838f | 183 | #define HAL_DMA2D_ERROR_TIMEOUT ((uint32_t)0x00000020) /*!< Timeout error */ |
mbed_official | 235:685d5f11838f | 184 | /** |
mbed_official | 235:685d5f11838f | 185 | * @} |
mbed_official | 235:685d5f11838f | 186 | */ |
mbed_official | 235:685d5f11838f | 187 | |
mbed_official | 235:685d5f11838f | 188 | /** @defgroup DMA2D_Mode |
mbed_official | 235:685d5f11838f | 189 | * @{ |
mbed_official | 235:685d5f11838f | 190 | */ |
mbed_official | 235:685d5f11838f | 191 | #define DMA2D_M2M ((uint32_t)0x00000000) /*!< DMA2D memory to memory transfer mode */ |
mbed_official | 235:685d5f11838f | 192 | #define DMA2D_M2M_PFC ((uint32_t)0x00010000) /*!< DMA2D memory to memory with pixel format conversion transfer mode */ |
mbed_official | 235:685d5f11838f | 193 | #define DMA2D_M2M_BLEND ((uint32_t)0x00020000) /*!< DMA2D memory to memory with blending transfer mode */ |
mbed_official | 235:685d5f11838f | 194 | #define DMA2D_R2M ((uint32_t)0x00030000) /*!< DMA2D register to memory transfer mode */ |
mbed_official | 235:685d5f11838f | 195 | |
mbed_official | 235:685d5f11838f | 196 | #define IS_DMA2D_MODE(MODE) (((MODE) == DMA2D_M2M) || ((MODE) == DMA2D_M2M_PFC) || \ |
mbed_official | 235:685d5f11838f | 197 | ((MODE) == DMA2D_M2M_BLEND) || ((MODE) == DMA2D_R2M)) |
mbed_official | 235:685d5f11838f | 198 | /** |
mbed_official | 235:685d5f11838f | 199 | * @} |
mbed_official | 235:685d5f11838f | 200 | */ |
mbed_official | 235:685d5f11838f | 201 | |
mbed_official | 235:685d5f11838f | 202 | /** @defgroup DMA2D_Color_Mode |
mbed_official | 235:685d5f11838f | 203 | * @{ |
mbed_official | 235:685d5f11838f | 204 | */ |
mbed_official | 235:685d5f11838f | 205 | #define DMA2D_ARGB8888 ((uint32_t)0x00000000) /*!< ARGB8888 DMA2D color mode */ |
mbed_official | 235:685d5f11838f | 206 | #define DMA2D_RGB888 ((uint32_t)0x00000001) /*!< RGB888 DMA2D color mode */ |
mbed_official | 235:685d5f11838f | 207 | #define DMA2D_RGB565 ((uint32_t)0x00000002) /*!< RGB565 DMA2D color mode */ |
mbed_official | 235:685d5f11838f | 208 | #define DMA2D_ARGB1555 ((uint32_t)0x00000003) /*!< ARGB1555 DMA2D color mode */ |
mbed_official | 235:685d5f11838f | 209 | #define DMA2D_ARGB4444 ((uint32_t)0x00000004) /*!< ARGB4444 DMA2D color mode */ |
mbed_official | 235:685d5f11838f | 210 | |
mbed_official | 235:685d5f11838f | 211 | #define IS_DMA2D_CMODE(MODE_ARGB) (((MODE_ARGB) == DMA2D_ARGB8888) || ((MODE_ARGB) == DMA2D_RGB888) || \ |
mbed_official | 235:685d5f11838f | 212 | ((MODE_ARGB) == DMA2D_RGB565) || ((MODE_ARGB) == DMA2D_ARGB1555) || \ |
mbed_official | 235:685d5f11838f | 213 | ((MODE_ARGB) == DMA2D_ARGB4444)) |
mbed_official | 235:685d5f11838f | 214 | /** |
mbed_official | 235:685d5f11838f | 215 | * @} |
mbed_official | 235:685d5f11838f | 216 | */ |
mbed_official | 235:685d5f11838f | 217 | |
mbed_official | 235:685d5f11838f | 218 | /** @defgroup DMA2D_COLOR_VALUE |
mbed_official | 235:685d5f11838f | 219 | * @{ |
mbed_official | 235:685d5f11838f | 220 | */ |
mbed_official | 235:685d5f11838f | 221 | |
mbed_official | 235:685d5f11838f | 222 | #define COLOR_VALUE ((uint32_t)0x000000FF) /*!< color value mask */ |
mbed_official | 235:685d5f11838f | 223 | |
mbed_official | 235:685d5f11838f | 224 | #define IS_DMA2D_COLOR(COLOR) ((COLOR) <= COLOR_VALUE) |
mbed_official | 235:685d5f11838f | 225 | /** |
mbed_official | 235:685d5f11838f | 226 | * @} |
mbed_official | 235:685d5f11838f | 227 | */ |
mbed_official | 235:685d5f11838f | 228 | |
mbed_official | 235:685d5f11838f | 229 | /** @defgroup DMA2D_SIZE |
mbed_official | 235:685d5f11838f | 230 | * @{ |
mbed_official | 235:685d5f11838f | 231 | */ |
mbed_official | 235:685d5f11838f | 232 | #define DMA2D_PIXEL (DMA2D_NLR_PL >> 16) /*!< DMA2D pixel per line */ |
mbed_official | 235:685d5f11838f | 233 | #define DMA2D_LINE DMA2D_NLR_NL /*!< DMA2D number of line */ |
mbed_official | 235:685d5f11838f | 234 | |
mbed_official | 235:685d5f11838f | 235 | #define IS_DMA2D_LINE(LINE) ((LINE) <= DMA2D_LINE) |
mbed_official | 235:685d5f11838f | 236 | #define IS_DMA2D_PIXEL(PIXEL) ((PIXEL) <= DMA2D_PIXEL) |
mbed_official | 235:685d5f11838f | 237 | /** |
mbed_official | 235:685d5f11838f | 238 | * @} |
mbed_official | 235:685d5f11838f | 239 | */ |
mbed_official | 235:685d5f11838f | 240 | |
mbed_official | 235:685d5f11838f | 241 | /** @defgroup DMA2D_Offset |
mbed_official | 235:685d5f11838f | 242 | * @{ |
mbed_official | 235:685d5f11838f | 243 | */ |
mbed_official | 235:685d5f11838f | 244 | #define DMA2D_OFFSET DMA2D_FGOR_LO /*!< Line Offset */ |
mbed_official | 235:685d5f11838f | 245 | |
mbed_official | 235:685d5f11838f | 246 | #define IS_DMA2D_OFFSET(OOFFSET) ((OOFFSET) <= DMA2D_OFFSET) |
mbed_official | 235:685d5f11838f | 247 | /** |
mbed_official | 235:685d5f11838f | 248 | * @} |
mbed_official | 235:685d5f11838f | 249 | */ |
mbed_official | 235:685d5f11838f | 250 | |
mbed_official | 235:685d5f11838f | 251 | /** @defgroup DMA2D_Input_Color_Mode |
mbed_official | 235:685d5f11838f | 252 | * @{ |
mbed_official | 235:685d5f11838f | 253 | */ |
mbed_official | 235:685d5f11838f | 254 | #define CM_ARGB8888 ((uint32_t)0x00000000) /*!< ARGB8888 color mode */ |
mbed_official | 235:685d5f11838f | 255 | #define CM_RGB888 ((uint32_t)0x00000001) /*!< RGB888 color mode */ |
mbed_official | 235:685d5f11838f | 256 | #define CM_RGB565 ((uint32_t)0x00000002) /*!< RGB565 color mode */ |
mbed_official | 235:685d5f11838f | 257 | #define CM_ARGB1555 ((uint32_t)0x00000003) /*!< ARGB1555 color mode */ |
mbed_official | 235:685d5f11838f | 258 | #define CM_ARGB4444 ((uint32_t)0x00000004) /*!< ARGB4444 color mode */ |
mbed_official | 235:685d5f11838f | 259 | #define CM_L8 ((uint32_t)0x00000005) /*!< L8 color mode */ |
mbed_official | 235:685d5f11838f | 260 | #define CM_AL44 ((uint32_t)0x00000006) /*!< AL44 color mode */ |
mbed_official | 235:685d5f11838f | 261 | #define CM_AL88 ((uint32_t)0x00000007) /*!< AL88 color mode */ |
mbed_official | 235:685d5f11838f | 262 | #define CM_L4 ((uint32_t)0x00000008) /*!< L4 color mode */ |
mbed_official | 235:685d5f11838f | 263 | #define CM_A8 ((uint32_t)0x00000009) /*!< A8 color mode */ |
mbed_official | 235:685d5f11838f | 264 | #define CM_A4 ((uint32_t)0x0000000A) /*!< A4 color mode */ |
mbed_official | 235:685d5f11838f | 265 | |
mbed_official | 235:685d5f11838f | 266 | #define IS_DMA2D_INPUT_COLOR_MODE(INPUT_CM) (((INPUT_CM) == CM_ARGB8888) || ((INPUT_CM) == CM_RGB888) || \ |
mbed_official | 235:685d5f11838f | 267 | ((INPUT_CM) == CM_RGB565) || ((INPUT_CM) == CM_ARGB1555) || \ |
mbed_official | 235:685d5f11838f | 268 | ((INPUT_CM) == CM_ARGB4444) || ((INPUT_CM) == CM_L8) || \ |
mbed_official | 235:685d5f11838f | 269 | ((INPUT_CM) == CM_AL44) || ((INPUT_CM) == CM_AL88) || \ |
mbed_official | 235:685d5f11838f | 270 | ((INPUT_CM) == CM_L4) || ((INPUT_CM) == CM_A8) || \ |
mbed_official | 235:685d5f11838f | 271 | ((INPUT_CM) == CM_A4)) |
mbed_official | 235:685d5f11838f | 272 | /** |
mbed_official | 235:685d5f11838f | 273 | * @} |
mbed_official | 235:685d5f11838f | 274 | */ |
mbed_official | 235:685d5f11838f | 275 | |
mbed_official | 235:685d5f11838f | 276 | /** @defgroup DMA2D_ALPHA_MODE |
mbed_official | 235:685d5f11838f | 277 | * @{ |
mbed_official | 235:685d5f11838f | 278 | */ |
mbed_official | 235:685d5f11838f | 279 | #define DMA2D_NO_MODIF_ALPHA ((uint32_t)0x00000000) /*!< No modification of the alpha channel value */ |
mbed_official | 235:685d5f11838f | 280 | #define DMA2D_REPLACE_ALPHA ((uint32_t)0x00000001) /*!< Replace original alpha channel value by programmed alpha value */ |
mbed_official | 235:685d5f11838f | 281 | #define DMA2D_COMBINE_ALPHA ((uint32_t)0x00000002) /*!< Replace original alpha channel value by programmed alpha value |
mbed_official | 235:685d5f11838f | 282 | with original alpha channel value */ |
mbed_official | 235:685d5f11838f | 283 | |
mbed_official | 235:685d5f11838f | 284 | #define IS_DMA2D_ALPHA_MODE(AlphaMode) (((AlphaMode) == DMA2D_NO_MODIF_ALPHA) || \ |
mbed_official | 235:685d5f11838f | 285 | ((AlphaMode) == DMA2D_REPLACE_ALPHA) || \ |
mbed_official | 235:685d5f11838f | 286 | ((AlphaMode) == DMA2D_COMBINE_ALPHA)) |
mbed_official | 235:685d5f11838f | 287 | /** |
mbed_official | 235:685d5f11838f | 288 | * @} |
mbed_official | 235:685d5f11838f | 289 | */ |
mbed_official | 235:685d5f11838f | 290 | |
mbed_official | 235:685d5f11838f | 291 | /** @defgroup DMA2D_CLUT_CM |
mbed_official | 235:685d5f11838f | 292 | * @{ |
mbed_official | 235:685d5f11838f | 293 | */ |
mbed_official | 235:685d5f11838f | 294 | #define DMA2D_CCM_ARGB8888 ((uint32_t)0x00000000) /*!< ARGB8888 DMA2D C-LUT color mode */ |
mbed_official | 235:685d5f11838f | 295 | #define DMA2D_CCM_RGB888 ((uint32_t)0x00000001) /*!< RGB888 DMA2D C-LUT color mode */ |
mbed_official | 235:685d5f11838f | 296 | |
mbed_official | 235:685d5f11838f | 297 | #define IS_DMA2D_CLUT_CM(CLUT_CM) (((CLUT_CM) == DMA2D_CCM_ARGB8888) || ((CLUT_CM) == DMA2D_CCM_RGB888)) |
mbed_official | 235:685d5f11838f | 298 | /** |
mbed_official | 235:685d5f11838f | 299 | * @} |
mbed_official | 235:685d5f11838f | 300 | */ |
mbed_official | 235:685d5f11838f | 301 | |
mbed_official | 235:685d5f11838f | 302 | /** @defgroup DMA2D_Size_Clut |
mbed_official | 235:685d5f11838f | 303 | * @{ |
mbed_official | 235:685d5f11838f | 304 | */ |
mbed_official | 235:685d5f11838f | 305 | #define DMA2D_CLUT_SIZE (DMA2D_FGPFCCR_CS >> 8) /*!< DMA2D C-LUT size */ |
mbed_official | 235:685d5f11838f | 306 | |
mbed_official | 235:685d5f11838f | 307 | #define IS_DMA2D_CLUT_SIZE(CLUT_SIZE) ((CLUT_SIZE) <= DMA2D_CLUT_SIZE) |
mbed_official | 235:685d5f11838f | 308 | /** |
mbed_official | 235:685d5f11838f | 309 | * @} |
mbed_official | 235:685d5f11838f | 310 | */ |
mbed_official | 235:685d5f11838f | 311 | |
mbed_official | 235:685d5f11838f | 312 | /** @defgroup DMA2D_DeadTime |
mbed_official | 235:685d5f11838f | 313 | * @{ |
mbed_official | 235:685d5f11838f | 314 | */ |
mbed_official | 235:685d5f11838f | 315 | #define LINE_WATERMARK DMA2D_LWR_LW |
mbed_official | 235:685d5f11838f | 316 | |
mbed_official | 235:685d5f11838f | 317 | #define IS_DMA2D_LineWatermark(LineWatermark) ((LineWatermark) <= LINE_WATERMARK) |
mbed_official | 235:685d5f11838f | 318 | /** |
mbed_official | 235:685d5f11838f | 319 | * @} |
mbed_official | 235:685d5f11838f | 320 | */ |
mbed_official | 235:685d5f11838f | 321 | |
mbed_official | 235:685d5f11838f | 322 | /** @defgroup DMA2D_Interrupts |
mbed_official | 235:685d5f11838f | 323 | * @{ |
mbed_official | 235:685d5f11838f | 324 | */ |
mbed_official | 235:685d5f11838f | 325 | #define DMA2D_IT_CE DMA2D_CR_CEIE /*!< Configuration Error Interrupt */ |
mbed_official | 235:685d5f11838f | 326 | #define DMA2D_IT_CTC DMA2D_CR_CTCIE /*!< C-LUT Transfer Complete Interrupt */ |
mbed_official | 235:685d5f11838f | 327 | #define DMA2D_IT_CAE DMA2D_CR_CAEIE /*!< C-LUT Access Error Interrupt */ |
mbed_official | 235:685d5f11838f | 328 | #define DMA2D_IT_TW DMA2D_CR_TWIE /*!< Transfer Watermark Interrupt */ |
mbed_official | 235:685d5f11838f | 329 | #define DMA2D_IT_TC DMA2D_CR_TCIE /*!< Transfer Complete Interrupt */ |
mbed_official | 235:685d5f11838f | 330 | #define DMA2D_IT_TE DMA2D_CR_TEIE /*!< Transfer Error Interrupt */ |
mbed_official | 235:685d5f11838f | 331 | |
mbed_official | 235:685d5f11838f | 332 | #define IS_DMA2D_IT(IT) (((IT) == DMA2D_IT_CTC) || ((IT) == DMA2D_IT_CAE) || \ |
mbed_official | 235:685d5f11838f | 333 | ((IT) == DMA2D_IT_TW) || ((IT) == DMA2D_IT_TC) || \ |
mbed_official | 235:685d5f11838f | 334 | ((IT) == DMA2D_IT_TE) || ((IT) == DMA2D_IT_CE)) |
mbed_official | 235:685d5f11838f | 335 | /** |
mbed_official | 235:685d5f11838f | 336 | * @} |
mbed_official | 235:685d5f11838f | 337 | */ |
mbed_official | 235:685d5f11838f | 338 | |
mbed_official | 235:685d5f11838f | 339 | /** @defgroup DMA2D_Flag |
mbed_official | 235:685d5f11838f | 340 | * @{ |
mbed_official | 235:685d5f11838f | 341 | */ |
mbed_official | 235:685d5f11838f | 342 | #define DMA2D_FLAG_CE DMA2D_ISR_CEIF /*!< Configuration Error Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 343 | #define DMA2D_FLAG_CTC DMA2D_ISR_CTCIF /*!< C-LUT Transfer Complete Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 344 | #define DMA2D_FLAG_CAE DMA2D_ISR_CAEIF /*!< C-LUT Access Error Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 345 | #define DMA2D_FLAG_TW DMA2D_ISR_TWIF /*!< Transfer Watermark Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 346 | #define DMA2D_FLAG_TC DMA2D_ISR_TCIF /*!< Transfer Complete Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 347 | #define DMA2D_FLAG_TE DMA2D_ISR_TEIF /*!< Transfer Error Interrupt Flag */ |
mbed_official | 235:685d5f11838f | 348 | |
mbed_official | 235:685d5f11838f | 349 | #define IS_DMA2D_GET_FLAG(FLAG) (((FLAG) == DMA2D_FLAG_CTC) || ((FLAG) == DMA2D_FLAG_CAE) || \ |
mbed_official | 235:685d5f11838f | 350 | ((FLAG) == DMA2D_FLAG_TW) || ((FLAG) == DMA2D_FLAG_TC) || \ |
mbed_official | 235:685d5f11838f | 351 | ((FLAG) == DMA2D_FLAG_TE) || ((FLAG) == DMA2D_FLAG_CE)) |
mbed_official | 235:685d5f11838f | 352 | /** |
mbed_official | 235:685d5f11838f | 353 | * @} |
mbed_official | 235:685d5f11838f | 354 | */ |
mbed_official | 235:685d5f11838f | 355 | |
mbed_official | 235:685d5f11838f | 356 | /** |
mbed_official | 235:685d5f11838f | 357 | * @} |
mbed_official | 235:685d5f11838f | 358 | */ |
mbed_official | 235:685d5f11838f | 359 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 360 | |
mbed_official | 235:685d5f11838f | 361 | /** @brief Reset DMA2D handle state |
mbed_official | 235:685d5f11838f | 362 | * @param __HANDLE__: specifies the DMA2D handle. |
mbed_official | 235:685d5f11838f | 363 | * @retval None |
mbed_official | 235:685d5f11838f | 364 | */ |
mbed_official | 235:685d5f11838f | 365 | #define __HAL_DMA2D_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_DMA2D_STATE_RESET) |
mbed_official | 235:685d5f11838f | 366 | |
mbed_official | 235:685d5f11838f | 367 | /** |
mbed_official | 235:685d5f11838f | 368 | * @brief Enable the DMA2D. |
mbed_official | 235:685d5f11838f | 369 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 370 | * @retval None. |
mbed_official | 235:685d5f11838f | 371 | */ |
mbed_official | 235:685d5f11838f | 372 | #define __HAL_DMA2D_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= DMA2D_CR_START) |
mbed_official | 235:685d5f11838f | 373 | |
mbed_official | 235:685d5f11838f | 374 | /** |
mbed_official | 235:685d5f11838f | 375 | * @brief Disable the DMA2D. |
mbed_official | 235:685d5f11838f | 376 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 377 | * @retval None. |
mbed_official | 235:685d5f11838f | 378 | */ |
mbed_official | 235:685d5f11838f | 379 | #define __HAL_DMA2D_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~DMA2D_CR_START) |
mbed_official | 235:685d5f11838f | 380 | |
mbed_official | 235:685d5f11838f | 381 | /* Interrupt & Flag management */ |
mbed_official | 235:685d5f11838f | 382 | /** |
mbed_official | 235:685d5f11838f | 383 | * @brief Get the DMA2D pending flags. |
mbed_official | 235:685d5f11838f | 384 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 385 | * @param __FLAG__: Get the specified flag. |
mbed_official | 235:685d5f11838f | 386 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 387 | * @arg DMA2D_FLAG_CE: Configuration error flag |
mbed_official | 235:685d5f11838f | 388 | * @arg DMA2D_FLAG_CTC: C-LUT transfer complete flag |
mbed_official | 235:685d5f11838f | 389 | * @arg DMA2D_FLAG_CAE: C-LUT access error flag |
mbed_official | 235:685d5f11838f | 390 | * @arg DMA2D_FLAG_TW: Transfer Watermark flag |
mbed_official | 235:685d5f11838f | 391 | * @arg DMA2D_FLAG_TC: Transfer complete flag |
mbed_official | 235:685d5f11838f | 392 | * @arg DMA2D_FLAG_TE: Transfer error flag |
mbed_official | 235:685d5f11838f | 393 | * @retval The state of FLAG. |
mbed_official | 235:685d5f11838f | 394 | */ |
mbed_official | 235:685d5f11838f | 395 | #define __HAL_DMA2D_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR & (__FLAG__)) |
mbed_official | 235:685d5f11838f | 396 | |
mbed_official | 235:685d5f11838f | 397 | /** |
mbed_official | 235:685d5f11838f | 398 | * @brief Clears the DMA2D pending flags. |
mbed_official | 235:685d5f11838f | 399 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 400 | * @param __FLAG__: specifies the flag to clear. |
mbed_official | 235:685d5f11838f | 401 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 402 | * @arg DMA2D_FLAG_CE: Configuration error flag |
mbed_official | 235:685d5f11838f | 403 | * @arg DMA2D_FLAG_CTC: C-LUT transfer complete flag |
mbed_official | 235:685d5f11838f | 404 | * @arg DMA2D_FLAG_CAE: C-LUT access error flag |
mbed_official | 235:685d5f11838f | 405 | * @arg DMA2D_FLAG_TW: Transfer Watermark flag |
mbed_official | 235:685d5f11838f | 406 | * @arg DMA2D_FLAG_TC: Transfer complete flag |
mbed_official | 235:685d5f11838f | 407 | * @arg DMA2D_FLAG_TE: Transfer error flag |
mbed_official | 235:685d5f11838f | 408 | * @retval None |
mbed_official | 235:685d5f11838f | 409 | */ |
mbed_official | 235:685d5f11838f | 410 | #define __HAL_DMA2D_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->IFCR = (__FLAG__)) |
mbed_official | 235:685d5f11838f | 411 | |
mbed_official | 235:685d5f11838f | 412 | /** |
mbed_official | 235:685d5f11838f | 413 | * @brief Enables the specified DMA2D interrupts. |
mbed_official | 235:685d5f11838f | 414 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 415 | * @param __INTERRUPT__: specifies the DMA2D interrupt sources to be enabled. |
mbed_official | 235:685d5f11838f | 416 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 417 | * @arg DMA2D_IT_CE: Configuration error interrupt mask |
mbed_official | 235:685d5f11838f | 418 | * @arg DMA2D_IT_CTC: C-LUT transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 419 | * @arg DMA2D_IT_CAE: C-LUT access error interrupt mask |
mbed_official | 235:685d5f11838f | 420 | * @arg DMA2D_IT_TW: Transfer Watermark interrupt mask |
mbed_official | 235:685d5f11838f | 421 | * @arg DMA2D_IT_TC: Transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 422 | * @arg DMA2D_IT_TE: Transfer error interrupt mask |
mbed_official | 235:685d5f11838f | 423 | * @retval None |
mbed_official | 235:685d5f11838f | 424 | */ |
mbed_official | 235:685d5f11838f | 425 | #define __HAL_DMA2D_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 426 | |
mbed_official | 235:685d5f11838f | 427 | /** |
mbed_official | 235:685d5f11838f | 428 | * @brief Disables the specified DMA2D interrupts. |
mbed_official | 235:685d5f11838f | 429 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 430 | * @param __INTERRUPT__: specifies the DMA2D interrupt sources to be disabled. |
mbed_official | 235:685d5f11838f | 431 | * This parameter can be any combination of the following values: |
mbed_official | 235:685d5f11838f | 432 | * @arg DMA2D_IT_CE: Configuration error interrupt mask |
mbed_official | 235:685d5f11838f | 433 | * @arg DMA2D_IT_CTC: C-LUT transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 434 | * @arg DMA2D_IT_CAE: C-LUT access error interrupt mask |
mbed_official | 235:685d5f11838f | 435 | * @arg DMA2D_IT_TW: Transfer Watermark interrupt mask |
mbed_official | 235:685d5f11838f | 436 | * @arg DMA2D_IT_TC: Transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 437 | * @arg DMA2D_IT_TE: Transfer error interrupt mask |
mbed_official | 235:685d5f11838f | 438 | * @retval None |
mbed_official | 235:685d5f11838f | 439 | */ |
mbed_official | 235:685d5f11838f | 440 | #define __HAL_DMA2D_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 441 | |
mbed_official | 235:685d5f11838f | 442 | /** |
mbed_official | 235:685d5f11838f | 443 | * @brief Checks whether the specified DMA2D interrupt has occurred or not. |
mbed_official | 235:685d5f11838f | 444 | * @param __HANDLE__: DMA2D handle |
mbed_official | 235:685d5f11838f | 445 | * @param __INTERRUPT__: specifies the DMA2D interrupt source to check. |
mbed_official | 235:685d5f11838f | 446 | * This parameter can be one of the following values: |
mbed_official | 235:685d5f11838f | 447 | * @arg DMA2D_IT_CE: Configuration error interrupt mask |
mbed_official | 235:685d5f11838f | 448 | * @arg DMA2D_IT_CTC: C-LUT transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 449 | * @arg DMA2D_IT_CAE: C-LUT access error interrupt mask |
mbed_official | 235:685d5f11838f | 450 | * @arg DMA2D_IT_TW: Transfer Watermark interrupt mask |
mbed_official | 235:685d5f11838f | 451 | * @arg DMA2D_IT_TC: Transfer complete interrupt mask |
mbed_official | 235:685d5f11838f | 452 | * @arg DMA2D_IT_TE: Transfer error interrupt mask |
mbed_official | 235:685d5f11838f | 453 | * @retval The state of INTERRUPT. |
mbed_official | 235:685d5f11838f | 454 | */ |
mbed_official | 235:685d5f11838f | 455 | #define __HAL_DMA2D_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR & (__INTERRUPT__)) |
mbed_official | 235:685d5f11838f | 456 | |
mbed_official | 235:685d5f11838f | 457 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 235:685d5f11838f | 458 | |
mbed_official | 235:685d5f11838f | 459 | /* Initialization and de-initialization functions *******************************/ |
mbed_official | 235:685d5f11838f | 460 | HAL_StatusTypeDef HAL_DMA2D_Init(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 461 | HAL_StatusTypeDef HAL_DMA2D_DeInit (DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 462 | void HAL_DMA2D_MspInit(DMA2D_HandleTypeDef* hdma2d); |
mbed_official | 235:685d5f11838f | 463 | void HAL_DMA2D_MspDeInit(DMA2D_HandleTypeDef* hdma2d); |
mbed_official | 235:685d5f11838f | 464 | |
mbed_official | 235:685d5f11838f | 465 | /* IO operation functions *******************************************************/ |
mbed_official | 235:685d5f11838f | 466 | HAL_StatusTypeDef HAL_DMA2D_Start(DMA2D_HandleTypeDef *hdma2d, uint32_t pdata, uint32_t DstAddress, uint32_t Width, uint32_t Heigh); |
mbed_official | 235:685d5f11838f | 467 | HAL_StatusTypeDef HAL_DMA2D_BlendingStart(DMA2D_HandleTypeDef *hdma2d, uint32_t SrcAddress1, uint32_t SrcAddress2, uint32_t DstAddress, uint32_t Width, uint32_t Heigh); |
mbed_official | 235:685d5f11838f | 468 | HAL_StatusTypeDef HAL_DMA2D_Start_IT(DMA2D_HandleTypeDef *hdma2d, uint32_t pdata, uint32_t DstAddress, uint32_t Width, uint32_t Heigh); |
mbed_official | 235:685d5f11838f | 469 | HAL_StatusTypeDef HAL_DMA2D_BlendingStart_IT(DMA2D_HandleTypeDef *hdma2d, uint32_t SrcAddress1, uint32_t SrcAddress2, uint32_t DstAddress, uint32_t Width, uint32_t Heigh); |
mbed_official | 235:685d5f11838f | 470 | HAL_StatusTypeDef HAL_DMA2D_Suspend(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 471 | HAL_StatusTypeDef HAL_DMA2D_Resume(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 472 | HAL_StatusTypeDef HAL_DMA2D_Abort(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 473 | HAL_StatusTypeDef HAL_DMA2D_PollForTransfer(DMA2D_HandleTypeDef *hdma2d, uint32_t Timeout); |
mbed_official | 235:685d5f11838f | 474 | void HAL_DMA2D_IRQHandler(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 475 | |
mbed_official | 235:685d5f11838f | 476 | /* Peripheral Control functions *************************************************/ |
mbed_official | 235:685d5f11838f | 477 | HAL_StatusTypeDef HAL_DMA2D_ConfigLayer(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx); |
mbed_official | 235:685d5f11838f | 478 | HAL_StatusTypeDef HAL_DMA2D_ConfigCLUT(DMA2D_HandleTypeDef *hdma2d, DMA2D_CLUTCfgTypeDef CLUTCfg, uint32_t LayerIdx); |
mbed_official | 235:685d5f11838f | 479 | HAL_StatusTypeDef HAL_DMA2D_EnableCLUT(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx); |
mbed_official | 235:685d5f11838f | 480 | HAL_StatusTypeDef HAL_DMA2D_DisableCLUT(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx); |
mbed_official | 235:685d5f11838f | 481 | HAL_StatusTypeDef HAL_DMA2D_ProgramLineEvent(DMA2D_HandleTypeDef *hdma2d, uint32_t Line); |
mbed_official | 235:685d5f11838f | 482 | |
mbed_official | 235:685d5f11838f | 483 | /* Peripheral State functions ***************************************************/ |
mbed_official | 235:685d5f11838f | 484 | HAL_DMA2D_StateTypeDef HAL_DMA2D_GetState(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 485 | uint32_t HAL_DMA2D_GetError(DMA2D_HandleTypeDef *hdma2d); |
mbed_official | 235:685d5f11838f | 486 | |
mbed_official | 235:685d5f11838f | 487 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
mbed_official | 235:685d5f11838f | 488 | |
mbed_official | 235:685d5f11838f | 489 | /** |
mbed_official | 235:685d5f11838f | 490 | * @} |
mbed_official | 235:685d5f11838f | 491 | */ |
mbed_official | 235:685d5f11838f | 492 | |
mbed_official | 235:685d5f11838f | 493 | /** |
mbed_official | 235:685d5f11838f | 494 | * @} |
mbed_official | 235:685d5f11838f | 495 | */ |
mbed_official | 235:685d5f11838f | 496 | |
mbed_official | 235:685d5f11838f | 497 | #ifdef __cplusplus |
mbed_official | 235:685d5f11838f | 498 | } |
mbed_official | 235:685d5f11838f | 499 | #endif |
mbed_official | 235:685d5f11838f | 500 | |
mbed_official | 235:685d5f11838f | 501 | #endif /* __STM32F4xx_HAL_DMA2D_H */ |
mbed_official | 235:685d5f11838f | 502 | |
mbed_official | 235:685d5f11838f | 503 | |
mbed_official | 235:685d5f11838f | 504 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |