Mouse code for the MacroRat
mbed-dev/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_ltdc.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /** |
sahilmgandhi | 18:6a4db94011d3 | 2 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 3 | * @file stm32f4xx_hal_ltdc.h |
sahilmgandhi | 18:6a4db94011d3 | 4 | * @author MCD Application Team |
sahilmgandhi | 18:6a4db94011d3 | 5 | * @version V1.5.0 |
sahilmgandhi | 18:6a4db94011d3 | 6 | * @date 06-May-2016 |
sahilmgandhi | 18:6a4db94011d3 | 7 | * @brief Header file of LTDC HAL module. |
sahilmgandhi | 18:6a4db94011d3 | 8 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 9 | * @attention |
sahilmgandhi | 18:6a4db94011d3 | 10 | * |
sahilmgandhi | 18:6a4db94011d3 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
sahilmgandhi | 18:6a4db94011d3 | 12 | * |
sahilmgandhi | 18:6a4db94011d3 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
sahilmgandhi | 18:6a4db94011d3 | 14 | * are permitted provided that the following conditions are met: |
sahilmgandhi | 18:6a4db94011d3 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
sahilmgandhi | 18:6a4db94011d3 | 16 | * this list of conditions and the following disclaimer. |
sahilmgandhi | 18:6a4db94011d3 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
sahilmgandhi | 18:6a4db94011d3 | 18 | * this list of conditions and the following disclaimer in the documentation |
sahilmgandhi | 18:6a4db94011d3 | 19 | * and/or other materials provided with the distribution. |
sahilmgandhi | 18:6a4db94011d3 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
sahilmgandhi | 18:6a4db94011d3 | 21 | * may be used to endorse or promote products derived from this software |
sahilmgandhi | 18:6a4db94011d3 | 22 | * without specific prior written permission. |
sahilmgandhi | 18:6a4db94011d3 | 23 | * |
sahilmgandhi | 18:6a4db94011d3 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
sahilmgandhi | 18:6a4db94011d3 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
sahilmgandhi | 18:6a4db94011d3 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
sahilmgandhi | 18:6a4db94011d3 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
sahilmgandhi | 18:6a4db94011d3 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
sahilmgandhi | 18:6a4db94011d3 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
sahilmgandhi | 18:6a4db94011d3 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
sahilmgandhi | 18:6a4db94011d3 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
sahilmgandhi | 18:6a4db94011d3 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
sahilmgandhi | 18:6a4db94011d3 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
sahilmgandhi | 18:6a4db94011d3 | 34 | * |
sahilmgandhi | 18:6a4db94011d3 | 35 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 36 | */ |
sahilmgandhi | 18:6a4db94011d3 | 37 | |
sahilmgandhi | 18:6a4db94011d3 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 39 | #ifndef __STM32F4xx_HAL_LTDC_H |
sahilmgandhi | 18:6a4db94011d3 | 40 | #define __STM32F4xx_HAL_LTDC_H |
sahilmgandhi | 18:6a4db94011d3 | 41 | |
sahilmgandhi | 18:6a4db94011d3 | 42 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 43 | extern "C" { |
sahilmgandhi | 18:6a4db94011d3 | 44 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 45 | |
sahilmgandhi | 18:6a4db94011d3 | 46 | #if defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) |
sahilmgandhi | 18:6a4db94011d3 | 47 | /* Includes ------------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 48 | #include "stm32f4xx_hal_def.h" |
sahilmgandhi | 18:6a4db94011d3 | 49 | |
sahilmgandhi | 18:6a4db94011d3 | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
sahilmgandhi | 18:6a4db94011d3 | 51 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 52 | */ |
sahilmgandhi | 18:6a4db94011d3 | 53 | |
sahilmgandhi | 18:6a4db94011d3 | 54 | /** @defgroup LTDC LTDC |
sahilmgandhi | 18:6a4db94011d3 | 55 | * @brief LTDC HAL module driver |
sahilmgandhi | 18:6a4db94011d3 | 56 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 57 | */ |
sahilmgandhi | 18:6a4db94011d3 | 58 | |
sahilmgandhi | 18:6a4db94011d3 | 59 | /* Exported types ------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 60 | /** @defgroup LTDC_Exported_Types LTDC Exported Types |
sahilmgandhi | 18:6a4db94011d3 | 61 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 62 | */ |
sahilmgandhi | 18:6a4db94011d3 | 63 | #define MAX_LAYER 2 |
sahilmgandhi | 18:6a4db94011d3 | 64 | |
sahilmgandhi | 18:6a4db94011d3 | 65 | /** |
sahilmgandhi | 18:6a4db94011d3 | 66 | * @brief LTDC color structure definition |
sahilmgandhi | 18:6a4db94011d3 | 67 | */ |
sahilmgandhi | 18:6a4db94011d3 | 68 | typedef struct |
sahilmgandhi | 18:6a4db94011d3 | 69 | { |
sahilmgandhi | 18:6a4db94011d3 | 70 | uint8_t Blue; /*!< Configures the blue value. |
sahilmgandhi | 18:6a4db94011d3 | 71 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 72 | |
sahilmgandhi | 18:6a4db94011d3 | 73 | uint8_t Green; /*!< Configures the green value. |
sahilmgandhi | 18:6a4db94011d3 | 74 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 75 | |
sahilmgandhi | 18:6a4db94011d3 | 76 | uint8_t Red; /*!< Configures the red value. |
sahilmgandhi | 18:6a4db94011d3 | 77 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 78 | |
sahilmgandhi | 18:6a4db94011d3 | 79 | uint8_t Reserved; /*!< Reserved 0xFF */ |
sahilmgandhi | 18:6a4db94011d3 | 80 | } LTDC_ColorTypeDef; |
sahilmgandhi | 18:6a4db94011d3 | 81 | |
sahilmgandhi | 18:6a4db94011d3 | 82 | /** |
sahilmgandhi | 18:6a4db94011d3 | 83 | * @brief LTDC Init structure definition |
sahilmgandhi | 18:6a4db94011d3 | 84 | */ |
sahilmgandhi | 18:6a4db94011d3 | 85 | typedef struct |
sahilmgandhi | 18:6a4db94011d3 | 86 | { |
sahilmgandhi | 18:6a4db94011d3 | 87 | uint32_t HSPolarity; /*!< configures the horizontal synchronization polarity. |
sahilmgandhi | 18:6a4db94011d3 | 88 | This parameter can be one value of @ref LTDC_HS_POLARITY */ |
sahilmgandhi | 18:6a4db94011d3 | 89 | |
sahilmgandhi | 18:6a4db94011d3 | 90 | uint32_t VSPolarity; /*!< configures the vertical synchronization polarity. |
sahilmgandhi | 18:6a4db94011d3 | 91 | This parameter can be one value of @ref LTDC_VS_POLARITY */ |
sahilmgandhi | 18:6a4db94011d3 | 92 | |
sahilmgandhi | 18:6a4db94011d3 | 93 | uint32_t DEPolarity; /*!< configures the data enable polarity. |
sahilmgandhi | 18:6a4db94011d3 | 94 | This parameter can be one of value of @ref LTDC_DE_POLARITY */ |
sahilmgandhi | 18:6a4db94011d3 | 95 | |
sahilmgandhi | 18:6a4db94011d3 | 96 | uint32_t PCPolarity; /*!< configures the pixel clock polarity. |
sahilmgandhi | 18:6a4db94011d3 | 97 | This parameter can be one of value of @ref LTDC_PC_POLARITY */ |
sahilmgandhi | 18:6a4db94011d3 | 98 | |
sahilmgandhi | 18:6a4db94011d3 | 99 | uint32_t HorizontalSync; /*!< configures the number of Horizontal synchronization width. |
sahilmgandhi | 18:6a4db94011d3 | 100 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 101 | |
sahilmgandhi | 18:6a4db94011d3 | 102 | uint32_t VerticalSync; /*!< configures the number of Vertical synchronization height. |
sahilmgandhi | 18:6a4db94011d3 | 103 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 104 | |
sahilmgandhi | 18:6a4db94011d3 | 105 | uint32_t AccumulatedHBP; /*!< configures the accumulated horizontal back porch width. |
sahilmgandhi | 18:6a4db94011d3 | 106 | This parameter must be a number between Min_Data = LTDC_HorizontalSync and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 107 | |
sahilmgandhi | 18:6a4db94011d3 | 108 | uint32_t AccumulatedVBP; /*!< configures the accumulated vertical back porch height. |
sahilmgandhi | 18:6a4db94011d3 | 109 | This parameter must be a number between Min_Data = LTDC_VerticalSync and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 110 | |
sahilmgandhi | 18:6a4db94011d3 | 111 | uint32_t AccumulatedActiveW; /*!< configures the accumulated active width. |
sahilmgandhi | 18:6a4db94011d3 | 112 | This parameter must be a number between Min_Data = LTDC_AccumulatedHBP and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 113 | |
sahilmgandhi | 18:6a4db94011d3 | 114 | uint32_t AccumulatedActiveH; /*!< configures the accumulated active height. |
sahilmgandhi | 18:6a4db94011d3 | 115 | This parameter must be a number between Min_Data = LTDC_AccumulatedVBP and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 116 | |
sahilmgandhi | 18:6a4db94011d3 | 117 | uint32_t TotalWidth; /*!< configures the total width. |
sahilmgandhi | 18:6a4db94011d3 | 118 | This parameter must be a number between Min_Data = LTDC_AccumulatedActiveW and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 119 | |
sahilmgandhi | 18:6a4db94011d3 | 120 | uint32_t TotalHeigh; /*!< configures the total height. |
sahilmgandhi | 18:6a4db94011d3 | 121 | This parameter must be a number between Min_Data = LTDC_AccumulatedActiveH and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 122 | |
sahilmgandhi | 18:6a4db94011d3 | 123 | LTDC_ColorTypeDef Backcolor; /*!< Configures the background color. */ |
sahilmgandhi | 18:6a4db94011d3 | 124 | } LTDC_InitTypeDef; |
sahilmgandhi | 18:6a4db94011d3 | 125 | |
sahilmgandhi | 18:6a4db94011d3 | 126 | /** |
sahilmgandhi | 18:6a4db94011d3 | 127 | * @brief LTDC Layer structure definition |
sahilmgandhi | 18:6a4db94011d3 | 128 | */ |
sahilmgandhi | 18:6a4db94011d3 | 129 | typedef struct |
sahilmgandhi | 18:6a4db94011d3 | 130 | { |
sahilmgandhi | 18:6a4db94011d3 | 131 | uint32_t WindowX0; /*!< Configures the Window Horizontal Start Position. |
sahilmgandhi | 18:6a4db94011d3 | 132 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 133 | |
sahilmgandhi | 18:6a4db94011d3 | 134 | uint32_t WindowX1; /*!< Configures the Window Horizontal Stop Position. |
sahilmgandhi | 18:6a4db94011d3 | 135 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 136 | |
sahilmgandhi | 18:6a4db94011d3 | 137 | uint32_t WindowY0; /*!< Configures the Window vertical Start Position. |
sahilmgandhi | 18:6a4db94011d3 | 138 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 139 | |
sahilmgandhi | 18:6a4db94011d3 | 140 | uint32_t WindowY1; /*!< Configures the Window vertical Stop Position. |
sahilmgandhi | 18:6a4db94011d3 | 141 | This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 142 | |
sahilmgandhi | 18:6a4db94011d3 | 143 | uint32_t PixelFormat; /*!< Specifies the pixel format. |
sahilmgandhi | 18:6a4db94011d3 | 144 | This parameter can be one of value of @ref LTDC_Pixelformat */ |
sahilmgandhi | 18:6a4db94011d3 | 145 | |
sahilmgandhi | 18:6a4db94011d3 | 146 | uint32_t Alpha; /*!< Specifies the constant alpha used for blending. |
sahilmgandhi | 18:6a4db94011d3 | 147 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 148 | |
sahilmgandhi | 18:6a4db94011d3 | 149 | uint32_t Alpha0; /*!< Configures the default alpha value. |
sahilmgandhi | 18:6a4db94011d3 | 150 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 151 | |
sahilmgandhi | 18:6a4db94011d3 | 152 | uint32_t BlendingFactor1; /*!< Select the blending factor 1. |
sahilmgandhi | 18:6a4db94011d3 | 153 | This parameter can be one of value of @ref LTDC_BlendingFactor1 */ |
sahilmgandhi | 18:6a4db94011d3 | 154 | |
sahilmgandhi | 18:6a4db94011d3 | 155 | uint32_t BlendingFactor2; /*!< Select the blending factor 2. |
sahilmgandhi | 18:6a4db94011d3 | 156 | This parameter can be one of value of @ref LTDC_BlendingFactor2 */ |
sahilmgandhi | 18:6a4db94011d3 | 157 | |
sahilmgandhi | 18:6a4db94011d3 | 158 | uint32_t FBStartAdress; /*!< Configures the color frame buffer address */ |
sahilmgandhi | 18:6a4db94011d3 | 159 | |
sahilmgandhi | 18:6a4db94011d3 | 160 | uint32_t ImageWidth; /*!< Configures the color frame buffer line length. |
sahilmgandhi | 18:6a4db94011d3 | 161 | This parameter must be a number between Min_Data = 0x0000U and Max_Data = 0x1FFF. */ |
sahilmgandhi | 18:6a4db94011d3 | 162 | |
sahilmgandhi | 18:6a4db94011d3 | 163 | uint32_t ImageHeight; /*!< Specifies the number of line in frame buffer. |
sahilmgandhi | 18:6a4db94011d3 | 164 | This parameter must be a number between Min_Data = 0x000 and Max_Data = 0x7FF. */ |
sahilmgandhi | 18:6a4db94011d3 | 165 | |
sahilmgandhi | 18:6a4db94011d3 | 166 | LTDC_ColorTypeDef Backcolor; /*!< Configures the layer background color. */ |
sahilmgandhi | 18:6a4db94011d3 | 167 | } LTDC_LayerCfgTypeDef; |
sahilmgandhi | 18:6a4db94011d3 | 168 | |
sahilmgandhi | 18:6a4db94011d3 | 169 | /** |
sahilmgandhi | 18:6a4db94011d3 | 170 | * @brief HAL LTDC State structures definition |
sahilmgandhi | 18:6a4db94011d3 | 171 | */ |
sahilmgandhi | 18:6a4db94011d3 | 172 | typedef enum |
sahilmgandhi | 18:6a4db94011d3 | 173 | { |
sahilmgandhi | 18:6a4db94011d3 | 174 | HAL_LTDC_STATE_RESET = 0x00U, /*!< LTDC not yet initialized or disabled */ |
sahilmgandhi | 18:6a4db94011d3 | 175 | HAL_LTDC_STATE_READY = 0x01U, /*!< LTDC initialized and ready for use */ |
sahilmgandhi | 18:6a4db94011d3 | 176 | HAL_LTDC_STATE_BUSY = 0x02U, /*!< LTDC internal process is ongoing */ |
sahilmgandhi | 18:6a4db94011d3 | 177 | HAL_LTDC_STATE_TIMEOUT = 0x03U, /*!< LTDC Timeout state */ |
sahilmgandhi | 18:6a4db94011d3 | 178 | HAL_LTDC_STATE_ERROR = 0x04U /*!< LTDC state error */ |
sahilmgandhi | 18:6a4db94011d3 | 179 | }HAL_LTDC_StateTypeDef; |
sahilmgandhi | 18:6a4db94011d3 | 180 | |
sahilmgandhi | 18:6a4db94011d3 | 181 | /** |
sahilmgandhi | 18:6a4db94011d3 | 182 | * @brief LTDC handle Structure definition |
sahilmgandhi | 18:6a4db94011d3 | 183 | */ |
sahilmgandhi | 18:6a4db94011d3 | 184 | typedef struct |
sahilmgandhi | 18:6a4db94011d3 | 185 | { |
sahilmgandhi | 18:6a4db94011d3 | 186 | LTDC_TypeDef *Instance; /*!< LTDC Register base address */ |
sahilmgandhi | 18:6a4db94011d3 | 187 | |
sahilmgandhi | 18:6a4db94011d3 | 188 | LTDC_InitTypeDef Init; /*!< LTDC parameters */ |
sahilmgandhi | 18:6a4db94011d3 | 189 | |
sahilmgandhi | 18:6a4db94011d3 | 190 | LTDC_LayerCfgTypeDef LayerCfg[MAX_LAYER]; /*!< LTDC Layers parameters */ |
sahilmgandhi | 18:6a4db94011d3 | 191 | |
sahilmgandhi | 18:6a4db94011d3 | 192 | HAL_LockTypeDef Lock; /*!< LTDC Lock */ |
sahilmgandhi | 18:6a4db94011d3 | 193 | |
sahilmgandhi | 18:6a4db94011d3 | 194 | __IO HAL_LTDC_StateTypeDef State; /*!< LTDC state */ |
sahilmgandhi | 18:6a4db94011d3 | 195 | |
sahilmgandhi | 18:6a4db94011d3 | 196 | __IO uint32_t ErrorCode; /*!< LTDC Error code */ |
sahilmgandhi | 18:6a4db94011d3 | 197 | |
sahilmgandhi | 18:6a4db94011d3 | 198 | } LTDC_HandleTypeDef; |
sahilmgandhi | 18:6a4db94011d3 | 199 | /** |
sahilmgandhi | 18:6a4db94011d3 | 200 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 201 | */ |
sahilmgandhi | 18:6a4db94011d3 | 202 | |
sahilmgandhi | 18:6a4db94011d3 | 203 | /* Exported constants --------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 204 | /** @defgroup LTDC_Exported_Constants LTDC Exported Constants |
sahilmgandhi | 18:6a4db94011d3 | 205 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 206 | */ |
sahilmgandhi | 18:6a4db94011d3 | 207 | |
sahilmgandhi | 18:6a4db94011d3 | 208 | /** @defgroup LTDC_Error_Code LTDC Error Code |
sahilmgandhi | 18:6a4db94011d3 | 209 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 210 | */ |
sahilmgandhi | 18:6a4db94011d3 | 211 | #define HAL_LTDC_ERROR_NONE ((uint32_t)0x00000000U) /*!< LTDC No error */ |
sahilmgandhi | 18:6a4db94011d3 | 212 | #define HAL_LTDC_ERROR_TE ((uint32_t)0x00000001U) /*!< LTDC Transfer error */ |
sahilmgandhi | 18:6a4db94011d3 | 213 | #define HAL_LTDC_ERROR_FU ((uint32_t)0x00000002U) /*!< LTDC FIFO Underrun */ |
sahilmgandhi | 18:6a4db94011d3 | 214 | #define HAL_LTDC_ERROR_TIMEOUT ((uint32_t)0x00000020U) /*!< LTDC Timeout error */ |
sahilmgandhi | 18:6a4db94011d3 | 215 | /** |
sahilmgandhi | 18:6a4db94011d3 | 216 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 217 | */ |
sahilmgandhi | 18:6a4db94011d3 | 218 | |
sahilmgandhi | 18:6a4db94011d3 | 219 | /** @defgroup LTDC_HS_POLARITY LTDC HS POLARITY |
sahilmgandhi | 18:6a4db94011d3 | 220 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 221 | */ |
sahilmgandhi | 18:6a4db94011d3 | 222 | #define LTDC_HSPOLARITY_AL ((uint32_t)0x00000000U) /*!< Horizontal Synchronization is active low. */ |
sahilmgandhi | 18:6a4db94011d3 | 223 | #define LTDC_HSPOLARITY_AH LTDC_GCR_HSPOL /*!< Horizontal Synchronization is active high. */ |
sahilmgandhi | 18:6a4db94011d3 | 224 | /** |
sahilmgandhi | 18:6a4db94011d3 | 225 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 226 | */ |
sahilmgandhi | 18:6a4db94011d3 | 227 | |
sahilmgandhi | 18:6a4db94011d3 | 228 | /** @defgroup LTDC_VS_POLARITY LTDC VS POLARITY |
sahilmgandhi | 18:6a4db94011d3 | 229 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 230 | */ |
sahilmgandhi | 18:6a4db94011d3 | 231 | #define LTDC_VSPOLARITY_AL ((uint32_t)0x00000000U) /*!< Vertical Synchronization is active low. */ |
sahilmgandhi | 18:6a4db94011d3 | 232 | #define LTDC_VSPOLARITY_AH LTDC_GCR_VSPOL /*!< Vertical Synchronization is active high. */ |
sahilmgandhi | 18:6a4db94011d3 | 233 | /** |
sahilmgandhi | 18:6a4db94011d3 | 234 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 235 | */ |
sahilmgandhi | 18:6a4db94011d3 | 236 | |
sahilmgandhi | 18:6a4db94011d3 | 237 | /** @defgroup LTDC_DE_POLARITY LTDC DE POLARITY |
sahilmgandhi | 18:6a4db94011d3 | 238 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 239 | */ |
sahilmgandhi | 18:6a4db94011d3 | 240 | #define LTDC_DEPOLARITY_AL ((uint32_t)0x00000000U) /*!< Data Enable, is active low. */ |
sahilmgandhi | 18:6a4db94011d3 | 241 | #define LTDC_DEPOLARITY_AH LTDC_GCR_DEPOL /*!< Data Enable, is active high. */ |
sahilmgandhi | 18:6a4db94011d3 | 242 | /** |
sahilmgandhi | 18:6a4db94011d3 | 243 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 244 | */ |
sahilmgandhi | 18:6a4db94011d3 | 245 | |
sahilmgandhi | 18:6a4db94011d3 | 246 | /** @defgroup LTDC_PC_POLARITY LTDC PC POLARITY |
sahilmgandhi | 18:6a4db94011d3 | 247 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 248 | */ |
sahilmgandhi | 18:6a4db94011d3 | 249 | #define LTDC_PCPOLARITY_IPC ((uint32_t)0x00000000U) /*!< input pixel clock. */ |
sahilmgandhi | 18:6a4db94011d3 | 250 | #define LTDC_PCPOLARITY_IIPC LTDC_GCR_PCPOL /*!< inverted input pixel clock. */ |
sahilmgandhi | 18:6a4db94011d3 | 251 | /** |
sahilmgandhi | 18:6a4db94011d3 | 252 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 253 | */ |
sahilmgandhi | 18:6a4db94011d3 | 254 | |
sahilmgandhi | 18:6a4db94011d3 | 255 | /** @defgroup LTDC_SYNC LTDC SYNC |
sahilmgandhi | 18:6a4db94011d3 | 256 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 257 | */ |
sahilmgandhi | 18:6a4db94011d3 | 258 | #define LTDC_HORIZONTALSYNC (LTDC_SSCR_HSW >> 16U) /*!< Horizontal synchronization width. */ |
sahilmgandhi | 18:6a4db94011d3 | 259 | #define LTDC_VERTICALSYNC LTDC_SSCR_VSH /*!< Vertical synchronization height. */ |
sahilmgandhi | 18:6a4db94011d3 | 260 | /** |
sahilmgandhi | 18:6a4db94011d3 | 261 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 262 | */ |
sahilmgandhi | 18:6a4db94011d3 | 263 | |
sahilmgandhi | 18:6a4db94011d3 | 264 | /** @defgroup LTDC_BACK_COLOR LTDC BACK COLOR |
sahilmgandhi | 18:6a4db94011d3 | 265 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 266 | */ |
sahilmgandhi | 18:6a4db94011d3 | 267 | #define LTDC_COLOR ((uint32_t)0x000000FFU) /*!< Color mask */ |
sahilmgandhi | 18:6a4db94011d3 | 268 | /** |
sahilmgandhi | 18:6a4db94011d3 | 269 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 270 | */ |
sahilmgandhi | 18:6a4db94011d3 | 271 | |
sahilmgandhi | 18:6a4db94011d3 | 272 | /** @defgroup LTDC_BlendingFactor1 LTDC Blending Factor1 |
sahilmgandhi | 18:6a4db94011d3 | 273 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 274 | */ |
sahilmgandhi | 18:6a4db94011d3 | 275 | #define LTDC_BLENDING_FACTOR1_CA ((uint32_t)0x00000400U) /*!< Blending factor : Cte Alpha */ |
sahilmgandhi | 18:6a4db94011d3 | 276 | #define LTDC_BLENDING_FACTOR1_PAxCA ((uint32_t)0x00000600U) /*!< Blending factor : Cte Alpha x Pixel Alpha*/ |
sahilmgandhi | 18:6a4db94011d3 | 277 | /** |
sahilmgandhi | 18:6a4db94011d3 | 278 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 279 | */ |
sahilmgandhi | 18:6a4db94011d3 | 280 | |
sahilmgandhi | 18:6a4db94011d3 | 281 | /** @defgroup LTDC_BlendingFactor2 LTDC Blending Factor2 |
sahilmgandhi | 18:6a4db94011d3 | 282 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 283 | */ |
sahilmgandhi | 18:6a4db94011d3 | 284 | #define LTDC_BLENDING_FACTOR2_CA ((uint32_t)0x00000005U) /*!< Blending factor : Cte Alpha */ |
sahilmgandhi | 18:6a4db94011d3 | 285 | #define LTDC_BLENDING_FACTOR2_PAxCA ((uint32_t)0x00000007U) /*!< Blending factor : Cte Alpha x Pixel Alpha*/ |
sahilmgandhi | 18:6a4db94011d3 | 286 | /** |
sahilmgandhi | 18:6a4db94011d3 | 287 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 288 | */ |
sahilmgandhi | 18:6a4db94011d3 | 289 | |
sahilmgandhi | 18:6a4db94011d3 | 290 | /** @defgroup LTDC_Pixelformat LTDC Pixel format |
sahilmgandhi | 18:6a4db94011d3 | 291 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 292 | */ |
sahilmgandhi | 18:6a4db94011d3 | 293 | #define LTDC_PIXEL_FORMAT_ARGB8888 ((uint32_t)0x00000000U) /*!< ARGB8888 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 294 | #define LTDC_PIXEL_FORMAT_RGB888 ((uint32_t)0x00000001U) /*!< RGB888 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 295 | #define LTDC_PIXEL_FORMAT_RGB565 ((uint32_t)0x00000002U) /*!< RGB565 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 296 | #define LTDC_PIXEL_FORMAT_ARGB1555 ((uint32_t)0x00000003U) /*!< ARGB1555 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 297 | #define LTDC_PIXEL_FORMAT_ARGB4444 ((uint32_t)0x00000004U) /*!< ARGB4444 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 298 | #define LTDC_PIXEL_FORMAT_L8 ((uint32_t)0x00000005U) /*!< L8 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 299 | #define LTDC_PIXEL_FORMAT_AL44 ((uint32_t)0x00000006U) /*!< AL44 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 300 | #define LTDC_PIXEL_FORMAT_AL88 ((uint32_t)0x00000007U) /*!< AL88 LTDC pixel format */ |
sahilmgandhi | 18:6a4db94011d3 | 301 | /** |
sahilmgandhi | 18:6a4db94011d3 | 302 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 303 | */ |
sahilmgandhi | 18:6a4db94011d3 | 304 | |
sahilmgandhi | 18:6a4db94011d3 | 305 | /** @defgroup LTDC_Alpha LTDC Alpha |
sahilmgandhi | 18:6a4db94011d3 | 306 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 307 | */ |
sahilmgandhi | 18:6a4db94011d3 | 308 | #define LTDC_ALPHA LTDC_LxCACR_CONSTA /*!< LTDC Cte Alpha mask */ |
sahilmgandhi | 18:6a4db94011d3 | 309 | /** |
sahilmgandhi | 18:6a4db94011d3 | 310 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 311 | */ |
sahilmgandhi | 18:6a4db94011d3 | 312 | |
sahilmgandhi | 18:6a4db94011d3 | 313 | /** @defgroup LTDC_LAYER_Config LTDC LAYER Config |
sahilmgandhi | 18:6a4db94011d3 | 314 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 315 | */ |
sahilmgandhi | 18:6a4db94011d3 | 316 | #define LTDC_STOPPOSITION (LTDC_LxWHPCR_WHSPPOS >> 16U) /*!< LTDC Layer stop position */ |
sahilmgandhi | 18:6a4db94011d3 | 317 | #define LTDC_STARTPOSITION LTDC_LxWHPCR_WHSTPOS /*!< LTDC Layer start position */ |
sahilmgandhi | 18:6a4db94011d3 | 318 | |
sahilmgandhi | 18:6a4db94011d3 | 319 | #define LTDC_COLOR_FRAME_BUFFER LTDC_LxCFBLR_CFBLL /*!< LTDC Layer Line length */ |
sahilmgandhi | 18:6a4db94011d3 | 320 | #define LTDC_LINE_NUMBER LTDC_LxCFBLNR_CFBLNBR /*!< LTDC Layer Line number */ |
sahilmgandhi | 18:6a4db94011d3 | 321 | /** |
sahilmgandhi | 18:6a4db94011d3 | 322 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 323 | */ |
sahilmgandhi | 18:6a4db94011d3 | 324 | |
sahilmgandhi | 18:6a4db94011d3 | 325 | /** @defgroup LTDC_Interrupts LTDC Interrupts |
sahilmgandhi | 18:6a4db94011d3 | 326 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 327 | */ |
sahilmgandhi | 18:6a4db94011d3 | 328 | #define LTDC_IT_LI LTDC_IER_LIE |
sahilmgandhi | 18:6a4db94011d3 | 329 | #define LTDC_IT_FU LTDC_IER_FUIE |
sahilmgandhi | 18:6a4db94011d3 | 330 | #define LTDC_IT_TE LTDC_IER_TERRIE |
sahilmgandhi | 18:6a4db94011d3 | 331 | #define LTDC_IT_RR LTDC_IER_RRIE |
sahilmgandhi | 18:6a4db94011d3 | 332 | /** |
sahilmgandhi | 18:6a4db94011d3 | 333 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 334 | */ |
sahilmgandhi | 18:6a4db94011d3 | 335 | |
sahilmgandhi | 18:6a4db94011d3 | 336 | /** @defgroup LTDC_Flag LTDC Flag |
sahilmgandhi | 18:6a4db94011d3 | 337 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 338 | */ |
sahilmgandhi | 18:6a4db94011d3 | 339 | #define LTDC_FLAG_LI LTDC_ISR_LIF |
sahilmgandhi | 18:6a4db94011d3 | 340 | #define LTDC_FLAG_FU LTDC_ISR_FUIF |
sahilmgandhi | 18:6a4db94011d3 | 341 | #define LTDC_FLAG_TE LTDC_ISR_TERRIF |
sahilmgandhi | 18:6a4db94011d3 | 342 | #define LTDC_FLAG_RR LTDC_ISR_RRIF |
sahilmgandhi | 18:6a4db94011d3 | 343 | /** |
sahilmgandhi | 18:6a4db94011d3 | 344 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 345 | */ |
sahilmgandhi | 18:6a4db94011d3 | 346 | |
sahilmgandhi | 18:6a4db94011d3 | 347 | /** @defgroup LTDC_Reload_Type LTDC Reload Type |
sahilmgandhi | 18:6a4db94011d3 | 348 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 349 | */ |
sahilmgandhi | 18:6a4db94011d3 | 350 | #define LTDC_RELOAD_IMMEDIATE LTDC_SRCR_IMR /*!< Immediate Reload */ |
sahilmgandhi | 18:6a4db94011d3 | 351 | #define LTDC_RELOAD_VERTICAL_BLANKING LTDC_SRCR_VBR /*!< Vertical Blanking Reload */ |
sahilmgandhi | 18:6a4db94011d3 | 352 | /** |
sahilmgandhi | 18:6a4db94011d3 | 353 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 354 | */ |
sahilmgandhi | 18:6a4db94011d3 | 355 | |
sahilmgandhi | 18:6a4db94011d3 | 356 | /** |
sahilmgandhi | 18:6a4db94011d3 | 357 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 358 | */ |
sahilmgandhi | 18:6a4db94011d3 | 359 | |
sahilmgandhi | 18:6a4db94011d3 | 360 | /* Exported macro ------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 361 | /** @defgroup LTDC_Exported_Macros LTDC Exported Macros |
sahilmgandhi | 18:6a4db94011d3 | 362 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 363 | */ |
sahilmgandhi | 18:6a4db94011d3 | 364 | |
sahilmgandhi | 18:6a4db94011d3 | 365 | /** @brief Reset LTDC handle state |
sahilmgandhi | 18:6a4db94011d3 | 366 | * @param __HANDLE__: specifies the LTDC handle. |
sahilmgandhi | 18:6a4db94011d3 | 367 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 368 | */ |
sahilmgandhi | 18:6a4db94011d3 | 369 | #define __HAL_LTDC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_LTDC_STATE_RESET) |
sahilmgandhi | 18:6a4db94011d3 | 370 | |
sahilmgandhi | 18:6a4db94011d3 | 371 | /** |
sahilmgandhi | 18:6a4db94011d3 | 372 | * @brief Enable the LTDC. |
sahilmgandhi | 18:6a4db94011d3 | 373 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 374 | * @retval None. |
sahilmgandhi | 18:6a4db94011d3 | 375 | */ |
sahilmgandhi | 18:6a4db94011d3 | 376 | #define __HAL_LTDC_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->GCR |= LTDC_GCR_LTDCEN) |
sahilmgandhi | 18:6a4db94011d3 | 377 | |
sahilmgandhi | 18:6a4db94011d3 | 378 | /** |
sahilmgandhi | 18:6a4db94011d3 | 379 | * @brief Disable the LTDC. |
sahilmgandhi | 18:6a4db94011d3 | 380 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 381 | * @retval None. |
sahilmgandhi | 18:6a4db94011d3 | 382 | */ |
sahilmgandhi | 18:6a4db94011d3 | 383 | #define __HAL_LTDC_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->GCR &= ~(LTDC_GCR_LTDCEN)) |
sahilmgandhi | 18:6a4db94011d3 | 384 | |
sahilmgandhi | 18:6a4db94011d3 | 385 | /** |
sahilmgandhi | 18:6a4db94011d3 | 386 | * @brief Enable the LTDC Layer. |
sahilmgandhi | 18:6a4db94011d3 | 387 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 388 | * @param __LAYER__: Specify the layer to be enabled |
sahilmgandhi | 18:6a4db94011d3 | 389 | * This parameter can be 0 or 1 |
sahilmgandhi | 18:6a4db94011d3 | 390 | * @retval None. |
sahilmgandhi | 18:6a4db94011d3 | 391 | */ |
sahilmgandhi | 18:6a4db94011d3 | 392 | #define __HAL_LTDC_LAYER_ENABLE(__HANDLE__, __LAYER__) ((LTDC_LAYER((__HANDLE__), (__LAYER__)))->CR |= (uint32_t)LTDC_LxCR_LEN) |
sahilmgandhi | 18:6a4db94011d3 | 393 | |
sahilmgandhi | 18:6a4db94011d3 | 394 | /** |
sahilmgandhi | 18:6a4db94011d3 | 395 | * @brief Disable the LTDC Layer. |
sahilmgandhi | 18:6a4db94011d3 | 396 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 397 | * @param __LAYER__: Specify the layer to be disabled |
sahilmgandhi | 18:6a4db94011d3 | 398 | * This parameter can be 0 or 1 |
sahilmgandhi | 18:6a4db94011d3 | 399 | * @retval None. |
sahilmgandhi | 18:6a4db94011d3 | 400 | */ |
sahilmgandhi | 18:6a4db94011d3 | 401 | #define __HAL_LTDC_LAYER_DISABLE(__HANDLE__, __LAYER__) ((LTDC_LAYER((__HANDLE__), (__LAYER__)))->CR &= ~(uint32_t)LTDC_LxCR_LEN) |
sahilmgandhi | 18:6a4db94011d3 | 402 | |
sahilmgandhi | 18:6a4db94011d3 | 403 | /** |
sahilmgandhi | 18:6a4db94011d3 | 404 | * @brief Reload Layer Configuration. |
sahilmgandhi | 18:6a4db94011d3 | 405 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 406 | * @retval None. |
sahilmgandhi | 18:6a4db94011d3 | 407 | */ |
sahilmgandhi | 18:6a4db94011d3 | 408 | #define __HAL_LTDC_RELOAD_CONFIG(__HANDLE__) ((__HANDLE__)->Instance->SRCR |= LTDC_SRCR_IMR) |
sahilmgandhi | 18:6a4db94011d3 | 409 | |
sahilmgandhi | 18:6a4db94011d3 | 410 | /* Interrupt & Flag management */ |
sahilmgandhi | 18:6a4db94011d3 | 411 | /** |
sahilmgandhi | 18:6a4db94011d3 | 412 | * @brief Get the LTDC pending flags. |
sahilmgandhi | 18:6a4db94011d3 | 413 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 414 | * @param __FLAG__: Get the specified flag. |
sahilmgandhi | 18:6a4db94011d3 | 415 | * This parameter can be any combination of the following values: |
sahilmgandhi | 18:6a4db94011d3 | 416 | * @arg LTDC_FLAG_LI: Line Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 417 | * @arg LTDC_FLAG_FU: FIFO Underrun Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 418 | * @arg LTDC_FLAG_TE: Transfer Error interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 419 | * @arg LTDC_FLAG_RR: Register Reload Interrupt Flag |
sahilmgandhi | 18:6a4db94011d3 | 420 | * @retval The state of FLAG (SET or RESET). |
sahilmgandhi | 18:6a4db94011d3 | 421 | */ |
sahilmgandhi | 18:6a4db94011d3 | 422 | #define __HAL_LTDC_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR & (__FLAG__)) |
sahilmgandhi | 18:6a4db94011d3 | 423 | |
sahilmgandhi | 18:6a4db94011d3 | 424 | /** |
sahilmgandhi | 18:6a4db94011d3 | 425 | * @brief Clears the LTDC pending flags. |
sahilmgandhi | 18:6a4db94011d3 | 426 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 427 | * @param __FLAG__: specifies the flag to clear. |
sahilmgandhi | 18:6a4db94011d3 | 428 | * This parameter can be any combination of the following values: |
sahilmgandhi | 18:6a4db94011d3 | 429 | * @arg LTDC_FLAG_LI: Line Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 430 | * @arg LTDC_FLAG_FU: FIFO Underrun Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 431 | * @arg LTDC_FLAG_TE: Transfer Error interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 432 | * @arg LTDC_FLAG_RR: Register Reload Interrupt Flag |
sahilmgandhi | 18:6a4db94011d3 | 433 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 434 | */ |
sahilmgandhi | 18:6a4db94011d3 | 435 | #define __HAL_LTDC_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
sahilmgandhi | 18:6a4db94011d3 | 436 | |
sahilmgandhi | 18:6a4db94011d3 | 437 | /** |
sahilmgandhi | 18:6a4db94011d3 | 438 | * @brief Enables the specified LTDC interrupts. |
sahilmgandhi | 18:6a4db94011d3 | 439 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 440 | * @param __INTERRUPT__: specifies the LTDC interrupt sources to be enabled. |
sahilmgandhi | 18:6a4db94011d3 | 441 | * This parameter can be any combination of the following values: |
sahilmgandhi | 18:6a4db94011d3 | 442 | * @arg LTDC_IT_LI: Line Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 443 | * @arg LTDC_IT_FU: FIFO Underrun Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 444 | * @arg LTDC_IT_TE: Transfer Error interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 445 | * @arg LTDC_IT_RR: Register Reload Interrupt Flag |
sahilmgandhi | 18:6a4db94011d3 | 446 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 447 | */ |
sahilmgandhi | 18:6a4db94011d3 | 448 | #define __HAL_LTDC_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IER |= (__INTERRUPT__)) |
sahilmgandhi | 18:6a4db94011d3 | 449 | |
sahilmgandhi | 18:6a4db94011d3 | 450 | /** |
sahilmgandhi | 18:6a4db94011d3 | 451 | * @brief Disables the specified LTDC interrupts. |
sahilmgandhi | 18:6a4db94011d3 | 452 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 453 | * @param __INTERRUPT__: specifies the LTDC interrupt sources to be disabled. |
sahilmgandhi | 18:6a4db94011d3 | 454 | * This parameter can be any combination of the following values: |
sahilmgandhi | 18:6a4db94011d3 | 455 | * @arg LTDC_IT_LI: Line Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 456 | * @arg LTDC_IT_FU: FIFO Underrun Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 457 | * @arg LTDC_IT_TE: Transfer Error interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 458 | * @arg LTDC_IT_RR: Register Reload Interrupt Flag |
sahilmgandhi | 18:6a4db94011d3 | 459 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 460 | */ |
sahilmgandhi | 18:6a4db94011d3 | 461 | #define __HAL_LTDC_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->IER &= ~(__INTERRUPT__)) |
sahilmgandhi | 18:6a4db94011d3 | 462 | |
sahilmgandhi | 18:6a4db94011d3 | 463 | /** |
sahilmgandhi | 18:6a4db94011d3 | 464 | * @brief Checks whether the specified LTDC interrupt has occurred or not. |
sahilmgandhi | 18:6a4db94011d3 | 465 | * @param __HANDLE__: LTDC handle |
sahilmgandhi | 18:6a4db94011d3 | 466 | * @param __INTERRUPT__: specifies the LTDC interrupt source to check. |
sahilmgandhi | 18:6a4db94011d3 | 467 | * This parameter can be one of the following values: |
sahilmgandhi | 18:6a4db94011d3 | 468 | * @arg LTDC_IT_LI: Line Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 469 | * @arg LTDC_IT_FU: FIFO Underrun Interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 470 | * @arg LTDC_IT_TE: Transfer Error interrupt flag |
sahilmgandhi | 18:6a4db94011d3 | 471 | * @arg LTDC_IT_RR: Register Reload Interrupt Flag |
sahilmgandhi | 18:6a4db94011d3 | 472 | * @retval The state of INTERRUPT (SET or RESET). |
sahilmgandhi | 18:6a4db94011d3 | 473 | */ |
sahilmgandhi | 18:6a4db94011d3 | 474 | #define __HAL_LTDC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->ISR & (__INTERRUPT__)) |
sahilmgandhi | 18:6a4db94011d3 | 475 | /** |
sahilmgandhi | 18:6a4db94011d3 | 476 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 477 | */ |
sahilmgandhi | 18:6a4db94011d3 | 478 | |
sahilmgandhi | 18:6a4db94011d3 | 479 | /* Include LTDC HAL Extension module */ |
sahilmgandhi | 18:6a4db94011d3 | 480 | #include "stm32f4xx_hal_ltdc_ex.h" |
sahilmgandhi | 18:6a4db94011d3 | 481 | |
sahilmgandhi | 18:6a4db94011d3 | 482 | /* Exported functions --------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 483 | /** @addtogroup LTDC_Exported_Functions |
sahilmgandhi | 18:6a4db94011d3 | 484 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 485 | */ |
sahilmgandhi | 18:6a4db94011d3 | 486 | /** @addtogroup LTDC_Exported_Functions_Group1 |
sahilmgandhi | 18:6a4db94011d3 | 487 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 488 | */ |
sahilmgandhi | 18:6a4db94011d3 | 489 | /* Initialization and de-initialization functions *****************************/ |
sahilmgandhi | 18:6a4db94011d3 | 490 | HAL_StatusTypeDef HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 491 | HAL_StatusTypeDef HAL_LTDC_DeInit(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 492 | void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 493 | void HAL_LTDC_MspDeInit(LTDC_HandleTypeDef* hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 494 | void HAL_LTDC_ErrorCallback(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 495 | void HAL_LTDC_LineEventCallback(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 496 | void HAL_LTDC_ReloadEventCallback(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 497 | /** |
sahilmgandhi | 18:6a4db94011d3 | 498 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 499 | */ |
sahilmgandhi | 18:6a4db94011d3 | 500 | |
sahilmgandhi | 18:6a4db94011d3 | 501 | /** @addtogroup LTDC_Exported_Functions_Group2 |
sahilmgandhi | 18:6a4db94011d3 | 502 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 503 | */ |
sahilmgandhi | 18:6a4db94011d3 | 504 | /* IO operation functions *****************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 505 | void HAL_LTDC_IRQHandler(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 506 | /** |
sahilmgandhi | 18:6a4db94011d3 | 507 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 508 | */ |
sahilmgandhi | 18:6a4db94011d3 | 509 | |
sahilmgandhi | 18:6a4db94011d3 | 510 | /** @addtogroup LTDC_Exported_Functions_Group3 |
sahilmgandhi | 18:6a4db94011d3 | 511 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 512 | */ |
sahilmgandhi | 18:6a4db94011d3 | 513 | /* Peripheral Control functions ***********************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 514 | HAL_StatusTypeDef HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 515 | HAL_StatusTypeDef HAL_LTDC_SetWindowSize(LTDC_HandleTypeDef *hltdc, uint32_t XSize, uint32_t YSize, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 516 | HAL_StatusTypeDef HAL_LTDC_SetWindowPosition(LTDC_HandleTypeDef *hltdc, uint32_t X0, uint32_t Y0, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 517 | HAL_StatusTypeDef HAL_LTDC_SetPixelFormat(LTDC_HandleTypeDef *hltdc, uint32_t Pixelformat, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 518 | HAL_StatusTypeDef HAL_LTDC_SetAlpha(LTDC_HandleTypeDef *hltdc, uint32_t Alpha, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 519 | HAL_StatusTypeDef HAL_LTDC_SetAddress(LTDC_HandleTypeDef *hltdc, uint32_t Address, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 520 | HAL_StatusTypeDef HAL_LTDC_SetPitch(LTDC_HandleTypeDef *hltdc, uint32_t LinePitchInPixels, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 521 | HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying(LTDC_HandleTypeDef *hltdc, uint32_t RGBValue, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 522 | HAL_StatusTypeDef HAL_LTDC_ConfigCLUT(LTDC_HandleTypeDef *hltdc, uint32_t *pCLUT, uint32_t CLUTSize, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 523 | HAL_StatusTypeDef HAL_LTDC_EnableColorKeying(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 524 | HAL_StatusTypeDef HAL_LTDC_DisableColorKeying(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 525 | HAL_StatusTypeDef HAL_LTDC_EnableCLUT(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 526 | HAL_StatusTypeDef HAL_LTDC_DisableCLUT(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 527 | HAL_StatusTypeDef HAL_LTDC_ProgramLineEvent(LTDC_HandleTypeDef *hltdc, uint32_t Line); |
sahilmgandhi | 18:6a4db94011d3 | 528 | HAL_StatusTypeDef HAL_LTDC_EnableDither(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 529 | HAL_StatusTypeDef HAL_LTDC_DisableDither(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 530 | HAL_StatusTypeDef HAL_LTDC_Relaod(LTDC_HandleTypeDef *hltdc, uint32_t ReloadType); |
sahilmgandhi | 18:6a4db94011d3 | 531 | HAL_StatusTypeDef HAL_LTDC_ConfigLayer_NoReload(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 532 | HAL_StatusTypeDef HAL_LTDC_SetWindowSize_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t XSize, uint32_t YSize, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 533 | HAL_StatusTypeDef HAL_LTDC_SetWindowPosition_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t X0, uint32_t Y0, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 534 | HAL_StatusTypeDef HAL_LTDC_SetPixelFormat_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t Pixelformat, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 535 | HAL_StatusTypeDef HAL_LTDC_SetAlpha_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t Alpha, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 536 | HAL_StatusTypeDef HAL_LTDC_SetAddress_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t Address, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 537 | HAL_StatusTypeDef HAL_LTDC_SetPitch_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t LinePitchInPixels, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 538 | HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t RGBValue, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 539 | HAL_StatusTypeDef HAL_LTDC_EnableColorKeying_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 540 | HAL_StatusTypeDef HAL_LTDC_DisableColorKeying_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 541 | HAL_StatusTypeDef HAL_LTDC_EnableCLUT_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 542 | HAL_StatusTypeDef HAL_LTDC_DisableCLUT_NoReload(LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx); |
sahilmgandhi | 18:6a4db94011d3 | 543 | |
sahilmgandhi | 18:6a4db94011d3 | 544 | /** |
sahilmgandhi | 18:6a4db94011d3 | 545 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 546 | */ |
sahilmgandhi | 18:6a4db94011d3 | 547 | |
sahilmgandhi | 18:6a4db94011d3 | 548 | /** @addtogroup LTDC_Exported_Functions_Group4 |
sahilmgandhi | 18:6a4db94011d3 | 549 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 550 | */ |
sahilmgandhi | 18:6a4db94011d3 | 551 | /* Peripheral State functions *************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 552 | HAL_LTDC_StateTypeDef HAL_LTDC_GetState(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 553 | uint32_t HAL_LTDC_GetError(LTDC_HandleTypeDef *hltdc); |
sahilmgandhi | 18:6a4db94011d3 | 554 | /** |
sahilmgandhi | 18:6a4db94011d3 | 555 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 556 | */ |
sahilmgandhi | 18:6a4db94011d3 | 557 | |
sahilmgandhi | 18:6a4db94011d3 | 558 | /** |
sahilmgandhi | 18:6a4db94011d3 | 559 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 560 | */ |
sahilmgandhi | 18:6a4db94011d3 | 561 | /* Private types -------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 562 | /** @defgroup LTDC_Private_Types LTDC Private Types |
sahilmgandhi | 18:6a4db94011d3 | 563 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 564 | */ |
sahilmgandhi | 18:6a4db94011d3 | 565 | |
sahilmgandhi | 18:6a4db94011d3 | 566 | /** |
sahilmgandhi | 18:6a4db94011d3 | 567 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 568 | */ |
sahilmgandhi | 18:6a4db94011d3 | 569 | |
sahilmgandhi | 18:6a4db94011d3 | 570 | /* Private variables ---------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 571 | /** @defgroup LTDC_Private_Variables LTDC Private Variables |
sahilmgandhi | 18:6a4db94011d3 | 572 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 573 | */ |
sahilmgandhi | 18:6a4db94011d3 | 574 | |
sahilmgandhi | 18:6a4db94011d3 | 575 | /** |
sahilmgandhi | 18:6a4db94011d3 | 576 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 577 | */ |
sahilmgandhi | 18:6a4db94011d3 | 578 | |
sahilmgandhi | 18:6a4db94011d3 | 579 | /* Private constants ---------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 580 | /** @defgroup LTDC_Private_Constants LTDC Private Constants |
sahilmgandhi | 18:6a4db94011d3 | 581 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 582 | */ |
sahilmgandhi | 18:6a4db94011d3 | 583 | |
sahilmgandhi | 18:6a4db94011d3 | 584 | /** |
sahilmgandhi | 18:6a4db94011d3 | 585 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 586 | */ |
sahilmgandhi | 18:6a4db94011d3 | 587 | |
sahilmgandhi | 18:6a4db94011d3 | 588 | /* Private macros ------------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 589 | /** @defgroup LTDC_Private_Macros LTDC Private Macros |
sahilmgandhi | 18:6a4db94011d3 | 590 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 591 | */ |
sahilmgandhi | 18:6a4db94011d3 | 592 | #define LTDC_LAYER(__HANDLE__, __LAYER__) ((LTDC_Layer_TypeDef *)((uint32_t)(((uint32_t)((__HANDLE__)->Instance)) + 0x84U + (0x80U * (__LAYER__))))) |
sahilmgandhi | 18:6a4db94011d3 | 593 | #define IS_LTDC_LAYER(LAYER) ((LAYER) <= MAX_LAYER) |
sahilmgandhi | 18:6a4db94011d3 | 594 | #define IS_LTDC_HSPOL(HSPOL) (((HSPOL) == LTDC_HSPOLARITY_AL) || \ |
sahilmgandhi | 18:6a4db94011d3 | 595 | ((HSPOL) == LTDC_HSPOLARITY_AH)) |
sahilmgandhi | 18:6a4db94011d3 | 596 | #define IS_LTDC_VSPOL(VSPOL) (((VSPOL) == LTDC_VSPOLARITY_AL) || \ |
sahilmgandhi | 18:6a4db94011d3 | 597 | ((VSPOL) == LTDC_VSPOLARITY_AH)) |
sahilmgandhi | 18:6a4db94011d3 | 598 | #define IS_LTDC_DEPOL(DEPOL) (((DEPOL) == LTDC_DEPOLARITY_AL) || \ |
sahilmgandhi | 18:6a4db94011d3 | 599 | ((DEPOL) == LTDC_DEPOLARITY_AH)) |
sahilmgandhi | 18:6a4db94011d3 | 600 | #define IS_LTDC_PCPOL(PCPOL) (((PCPOL) == LTDC_PCPOLARITY_IPC) || \ |
sahilmgandhi | 18:6a4db94011d3 | 601 | ((PCPOL) == LTDC_PCPOLARITY_IIPC)) |
sahilmgandhi | 18:6a4db94011d3 | 602 | #define IS_LTDC_HSYNC(HSYNC) ((HSYNC) <= LTDC_HORIZONTALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 603 | #define IS_LTDC_VSYNC(VSYNC) ((VSYNC) <= LTDC_VERTICALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 604 | #define IS_LTDC_AHBP(AHBP) ((AHBP) <= LTDC_HORIZONTALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 605 | #define IS_LTDC_AVBP(AVBP) ((AVBP) <= LTDC_VERTICALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 606 | #define IS_LTDC_AAW(AAW) ((AAW) <= LTDC_HORIZONTALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 607 | #define IS_LTDC_AAH(AAH) ((AAH) <= LTDC_VERTICALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 608 | #define IS_LTDC_TOTALW(TOTALW) ((TOTALW) <= LTDC_HORIZONTALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 609 | #define IS_LTDC_TOTALH(TOTALH) ((TOTALH) <= LTDC_VERTICALSYNC) |
sahilmgandhi | 18:6a4db94011d3 | 610 | #define IS_LTDC_BLUEVALUE(BBLUE) ((BBLUE) <= LTDC_COLOR) |
sahilmgandhi | 18:6a4db94011d3 | 611 | #define IS_LTDC_GREENVALUE(BGREEN) ((BGREEN) <= LTDC_COLOR) |
sahilmgandhi | 18:6a4db94011d3 | 612 | #define IS_LTDC_REDVALUE(BRED) ((BRED) <= LTDC_COLOR) |
sahilmgandhi | 18:6a4db94011d3 | 613 | #define IS_LTDC_BLENDING_FACTOR1(BlendingFactor1) (((BlendingFactor1) == LTDC_BLENDING_FACTOR1_CA) || \ |
sahilmgandhi | 18:6a4db94011d3 | 614 | ((BlendingFactor1) == LTDC_BLENDING_FACTOR1_PAxCA)) |
sahilmgandhi | 18:6a4db94011d3 | 615 | #define IS_LTDC_BLENDING_FACTOR2(BlendingFactor2) (((BlendingFactor2) == LTDC_BLENDING_FACTOR2_CA) || \ |
sahilmgandhi | 18:6a4db94011d3 | 616 | ((BlendingFactor2) == LTDC_BLENDING_FACTOR2_PAxCA)) |
sahilmgandhi | 18:6a4db94011d3 | 617 | #define IS_LTDC_PIXEL_FORMAT(Pixelformat) (((Pixelformat) == LTDC_PIXEL_FORMAT_ARGB8888) || ((Pixelformat) == LTDC_PIXEL_FORMAT_RGB888) || \ |
sahilmgandhi | 18:6a4db94011d3 | 618 | ((Pixelformat) == LTDC_PIXEL_FORMAT_RGB565) || ((Pixelformat) == LTDC_PIXEL_FORMAT_ARGB1555) || \ |
sahilmgandhi | 18:6a4db94011d3 | 619 | ((Pixelformat) == LTDC_PIXEL_FORMAT_ARGB4444) || ((Pixelformat) == LTDC_PIXEL_FORMAT_L8) || \ |
sahilmgandhi | 18:6a4db94011d3 | 620 | ((Pixelformat) == LTDC_PIXEL_FORMAT_AL44) || ((Pixelformat) == LTDC_PIXEL_FORMAT_AL88)) |
sahilmgandhi | 18:6a4db94011d3 | 621 | #define IS_LTDC_ALPHA(ALPHA) ((ALPHA) <= LTDC_ALPHA) |
sahilmgandhi | 18:6a4db94011d3 | 622 | #define IS_LTDC_HCONFIGST(HCONFIGST) ((HCONFIGST) <= LTDC_STARTPOSITION) |
sahilmgandhi | 18:6a4db94011d3 | 623 | #define IS_LTDC_HCONFIGSP(HCONFIGSP) ((HCONFIGSP) <= LTDC_STOPPOSITION) |
sahilmgandhi | 18:6a4db94011d3 | 624 | #define IS_LTDC_VCONFIGST(VCONFIGST) ((VCONFIGST) <= LTDC_STARTPOSITION) |
sahilmgandhi | 18:6a4db94011d3 | 625 | #define IS_LTDC_VCONFIGSP(VCONFIGSP) ((VCONFIGSP) <= LTDC_STOPPOSITION) |
sahilmgandhi | 18:6a4db94011d3 | 626 | #define IS_LTDC_CFBP(CFBP) ((CFBP) <= LTDC_COLOR_FRAME_BUFFER) |
sahilmgandhi | 18:6a4db94011d3 | 627 | #define IS_LTDC_CFBLL(CFBLL) ((CFBLL) <= LTDC_COLOR_FRAME_BUFFER) |
sahilmgandhi | 18:6a4db94011d3 | 628 | #define IS_LTDC_CFBLNBR(CFBLNBR) ((CFBLNBR) <= LTDC_LINE_NUMBER) |
sahilmgandhi | 18:6a4db94011d3 | 629 | #define IS_LTDC_LIPOS(LIPOS) ((LIPOS) <= 0x7FFU) |
sahilmgandhi | 18:6a4db94011d3 | 630 | #define IS_LTDC_RELAOD(RELOADTYPE) (((RELOADTYPE) == LTDC_RELOAD_IMMEDIATE) || ((RELOADTYPE) == LTDC_SRCR_VBR)) |
sahilmgandhi | 18:6a4db94011d3 | 631 | /** |
sahilmgandhi | 18:6a4db94011d3 | 632 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 633 | */ |
sahilmgandhi | 18:6a4db94011d3 | 634 | |
sahilmgandhi | 18:6a4db94011d3 | 635 | /* Private functions ---------------------------------------------------------*/ |
sahilmgandhi | 18:6a4db94011d3 | 636 | /** @defgroup LTDC_Private_Functions LTDC Private Functions |
sahilmgandhi | 18:6a4db94011d3 | 637 | * @{ |
sahilmgandhi | 18:6a4db94011d3 | 638 | */ |
sahilmgandhi | 18:6a4db94011d3 | 639 | |
sahilmgandhi | 18:6a4db94011d3 | 640 | /** |
sahilmgandhi | 18:6a4db94011d3 | 641 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 642 | */ |
sahilmgandhi | 18:6a4db94011d3 | 643 | |
sahilmgandhi | 18:6a4db94011d3 | 644 | /** |
sahilmgandhi | 18:6a4db94011d3 | 645 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 646 | */ |
sahilmgandhi | 18:6a4db94011d3 | 647 | |
sahilmgandhi | 18:6a4db94011d3 | 648 | /** |
sahilmgandhi | 18:6a4db94011d3 | 649 | * @} |
sahilmgandhi | 18:6a4db94011d3 | 650 | */ |
sahilmgandhi | 18:6a4db94011d3 | 651 | |
sahilmgandhi | 18:6a4db94011d3 | 652 | #endif /* STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ |
sahilmgandhi | 18:6a4db94011d3 | 653 | |
sahilmgandhi | 18:6a4db94011d3 | 654 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 655 | } |
sahilmgandhi | 18:6a4db94011d3 | 656 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 657 | |
sahilmgandhi | 18:6a4db94011d3 | 658 | #endif /* __STM32F4xx_HAL_LTDC_H */ |
sahilmgandhi | 18:6a4db94011d3 | 659 | |
sahilmgandhi | 18:6a4db94011d3 | 660 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |