stm32f4xx_ltdc.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_ltdc.h
  4. * @author MCD Application Team
  5. * @version V1.8.0
  6. * @date 04-November-2016
  7. * @brief This file contains all the functions prototypes for the LTDC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. ******************************************************************************
  27. */
  28. /* Define to prevent recursive inclusion -------------------------------------*/
  29. #ifndef __STM32F4xx_LTDC_H
  30. #define __STM32F4xx_LTDC_H
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /* Includes ------------------------------------------------------------------*/
  35. #include "stm32f4xx.h"
  36. /** @addtogroup STM32F4xx_StdPeriph_Driver
  37. * @{
  38. */
  39. /** @addtogroup LTDC
  40. * @{
  41. */
  42. /* Exported types ------------------------------------------------------------*/
  43. /**
  44. * @brief LTDC Init structure definition
  45. */
  46. typedef struct
  47. {
  48. uint32_t LTDC_HSPolarity; /*!< configures the horizontal synchronization polarity.
  49. This parameter can be one value of @ref LTDC_HSPolarity */
  50. uint32_t LTDC_VSPolarity; /*!< configures the vertical synchronization polarity.
  51. This parameter can be one value of @ref LTDC_VSPolarity */
  52. uint32_t LTDC_DEPolarity; /*!< configures the data enable polarity. This parameter can
  53. be one of value of @ref LTDC_DEPolarity */
  54. uint32_t LTDC_PCPolarity; /*!< configures the pixel clock polarity. This parameter can
  55. be one of value of @ref LTDC_PCPolarity */
  56. uint32_t LTDC_HorizontalSync; /*!< configures the number of Horizontal synchronization
  57. width. This parameter must range from 0x000 to 0xFFF. */
  58. uint32_t LTDC_VerticalSync; /*!< configures the number of Vertical synchronization
  59. height. This parameter must range from 0x000 to 0x7FF. */
  60. uint32_t LTDC_AccumulatedHBP; /*!< configures the accumulated horizontal back porch width.
  61. This parameter must range from LTDC_HorizontalSync to 0xFFF. */
  62. uint32_t LTDC_AccumulatedVBP; /*!< configures the accumulated vertical back porch height.
  63. This parameter must range from LTDC_VerticalSync to 0x7FF. */
  64. uint32_t LTDC_AccumulatedActiveW; /*!< configures the accumulated active width. This parameter
  65. must range from LTDC_AccumulatedHBP to 0xFFF. */
  66. uint32_t LTDC_AccumulatedActiveH; /*!< configures the accumulated active height. This parameter
  67. must range from LTDC_AccumulatedVBP to 0x7FF. */
  68. uint32_t LTDC_TotalWidth; /*!< configures the total width. This parameter
  69. must range from LTDC_AccumulatedActiveW to 0xFFF. */
  70. uint32_t LTDC_TotalHeigh; /*!< configures the total height. This parameter
  71. must range from LTDC_AccumulatedActiveH to 0x7FF. */
  72. uint32_t LTDC_BackgroundRedValue; /*!< configures the background red value.
  73. This parameter must range from 0x00 to 0xFF. */
  74. uint32_t LTDC_BackgroundGreenValue; /*!< configures the background green value.
  75. This parameter must range from 0x00 to 0xFF. */
  76. uint32_t LTDC_BackgroundBlueValue; /*!< configures the background blue value.
  77. This parameter must range from 0x00 to 0xFF. */
  78. } LTDC_InitTypeDef;
  79. /**
  80. * @brief LTDC Layer structure definition
  81. */
  82. typedef struct
  83. {
  84. uint32_t LTDC_HorizontalStart; /*!< Configures the Window Horizontal Start Position.
  85. This parameter must range from 0x000 to 0xFFF. */
  86. uint32_t LTDC_HorizontalStop; /*!< Configures the Window Horizontal Stop Position.
  87. This parameter must range from 0x0000 to 0xFFFF. */
  88. uint32_t LTDC_VerticalStart; /*!< Configures the Window vertical Start Position.
  89. This parameter must range from 0x000 to 0xFFF. */
  90. uint32_t LTDC_VerticalStop; /*!< Configures the Window vaertical Stop Position.
  91. This parameter must range from 0x0000 to 0xFFFF. */
  92. uint32_t LTDC_PixelFormat; /*!< Specifies the pixel format. This parameter can be
  93. one of value of @ref LTDC_Pixelformat */
  94. uint32_t LTDC_ConstantAlpha; /*!< Specifies the constant alpha used for blending.
  95. This parameter must range from 0x00 to 0xFF. */
  96. uint32_t LTDC_DefaultColorBlue; /*!< Configures the default blue value.
  97. This parameter must range from 0x00 to 0xFF. */
  98. uint32_t LTDC_DefaultColorGreen; /*!< Configures the default green value.
  99. This parameter must range from 0x00 to 0xFF. */
  100. uint32_t LTDC_DefaultColorRed; /*!< Configures the default red value.
  101. This parameter must range from 0x00 to 0xFF. */
  102. uint32_t LTDC_DefaultColorAlpha; /*!< Configures the default alpha value.
  103. This parameter must range from 0x00 to 0xFF. */
  104. uint32_t LTDC_BlendingFactor_1; /*!< Select the blending factor 1. This parameter
  105. can be one of value of @ref LTDC_BlendingFactor1 */
  106. uint32_t LTDC_BlendingFactor_2; /*!< Select the blending factor 2. This parameter
  107. can be one of value of @ref LTDC_BlendingFactor2 */
  108. uint32_t LTDC_CFBStartAdress; /*!< Configures the color frame buffer address */
  109. uint32_t LTDC_CFBLineLength; /*!< Configures the color frame buffer line length.
  110. This parameter must range from 0x0000 to 0x1FFF. */
  111. uint32_t LTDC_CFBPitch; /*!< Configures the color frame buffer pitch in bytes.
  112. This parameter must range from 0x0000 to 0x1FFF. */
  113. uint32_t LTDC_CFBLineNumber; /*!< Specifies the number of line in frame buffer.
  114. This parameter must range from 0x000 to 0x7FF. */
  115. } LTDC_Layer_InitTypeDef;
  116. /**
  117. * @brief LTDC Position structure definition
  118. */
  119. typedef struct
  120. {
  121. uint32_t LTDC_POSX; /*!< Current X Position */
  122. uint32_t LTDC_POSY; /*!< Current Y Position */
  123. } LTDC_PosTypeDef;
  124. /**
  125. * @brief LTDC RGB structure definition
  126. */
  127. typedef struct
  128. {
  129. uint32_t LTDC_BlueWidth; /*!< Blue width */
  130. uint32_t LTDC_GreenWidth; /*!< Green width */
  131. uint32_t LTDC_RedWidth; /*!< Red width */
  132. } LTDC_RGBTypeDef;
  133. /**
  134. * @brief LTDC Color Keying structure definition
  135. */
  136. typedef struct
  137. {
  138. uint32_t LTDC_ColorKeyBlue; /*!< Configures the color key blue value.
  139. This parameter must range from 0x00 to 0xFF. */
  140. uint32_t LTDC_ColorKeyGreen; /*!< Configures the color key green value.
  141. This parameter must range from 0x00 to 0xFF. */
  142. uint32_t LTDC_ColorKeyRed; /*!< Configures the color key red value.
  143. This parameter must range from 0x00 to 0xFF. */
  144. } LTDC_ColorKeying_InitTypeDef;
  145. /**
  146. * @brief LTDC CLUT structure definition
  147. */
  148. typedef struct
  149. {
  150. uint32_t LTDC_CLUTAdress; /*!< Configures the CLUT address.
  151. This parameter must range from 0x00 to 0xFF. */
  152. uint32_t LTDC_BlueValue; /*!< Configures the blue value.
  153. This parameter must range from 0x00 to 0xFF. */
  154. uint32_t LTDC_GreenValue; /*!< Configures the green value.
  155. This parameter must range from 0x00 to 0xFF. */
  156. uint32_t LTDC_RedValue; /*!< Configures the red value.
  157. This parameter must range from 0x00 to 0xFF. */
  158. } LTDC_CLUT_InitTypeDef;
  159. /* Exported constants --------------------------------------------------------*/
  160. /** @defgroup LTDC_Exported_Constants
  161. * @{
  162. */
  163. /** @defgroup LTDC_SYNC
  164. * @{
  165. */
  166. #define LTDC_HorizontalSYNC ((uint32_t)0x00000FFF)
  167. #define LTDC_VerticalSYNC ((uint32_t)0x000007FF)
  168. #define IS_LTDC_HSYNC(HSYNC) ((HSYNC) <= LTDC_HorizontalSYNC)
  169. #define IS_LTDC_VSYNC(VSYNC) ((VSYNC) <= LTDC_VerticalSYNC)
  170. #define IS_LTDC_AHBP(AHBP) ((AHBP) <= LTDC_HorizontalSYNC)
  171. #define IS_LTDC_AVBP(AVBP) ((AVBP) <= LTDC_VerticalSYNC)
  172. #define IS_LTDC_AAW(AAW) ((AAW) <= LTDC_HorizontalSYNC)
  173. #define IS_LTDC_AAH(AAH) ((AAH) <= LTDC_VerticalSYNC)
  174. #define IS_LTDC_TOTALW(TOTALW) ((TOTALW) <= LTDC_HorizontalSYNC)
  175. #define IS_LTDC_TOTALH(TOTALH) ((TOTALH) <= LTDC_VerticalSYNC)
  176. /**
  177. * @}
  178. */
  179. /** @defgroup LTDC_HSPolarity
  180. * @{
  181. */
  182. #define LTDC_HSPolarity_AL ((uint32_t)0x00000000) /*!< Horizontal Synchronization is active low. */
  183. #define LTDC_HSPolarity_AH LTDC_GCR_HSPOL /*!< Horizontal Synchronization is active high. */
  184. #define IS_LTDC_HSPOL(HSPOL) (((HSPOL) == LTDC_HSPolarity_AL) || \
  185. ((HSPOL) == LTDC_HSPolarity_AH))
  186. /**
  187. * @}
  188. */
  189. /** @defgroup LTDC_VSPolarity
  190. * @{
  191. */
  192. #define LTDC_VSPolarity_AL ((uint32_t)0x00000000) /*!< Vertical Synchronization is active low. */
  193. #define LTDC_VSPolarity_AH LTDC_GCR_VSPOL /*!< Vertical Synchronization is active high. */
  194. #define IS_LTDC_VSPOL(VSPOL) (((VSPOL) == LTDC_VSPolarity_AL) || \
  195. ((VSPOL) == LTDC_VSPolarity_AH))
  196. /**
  197. * @}
  198. */
  199. /** @defgroup LTDC_DEPolarity
  200. * @{
  201. */
  202. #define LTDC_DEPolarity_AL ((uint32_t)0x00000000) /*!< Data Enable, is active low. */
  203. #define LTDC_DEPolarity_AH LTDC_GCR_DEPOL /*!< Data Enable, is active high. */
  204. #define IS_LTDC_DEPOL(DEPOL) (((DEPOL) == LTDC_VSPolarity_AL) || \
  205. ((DEPOL) == LTDC_DEPolarity_AH))
  206. /**
  207. * @}
  208. */
  209. /** @defgroup LTDC_PCPolarity
  210. * @{
  211. */
  212. #define LTDC_PCPolarity_IPC ((uint32_t)0x00000000) /*!< input pixel clock. */
  213. #define LTDC_PCPolarity_IIPC LTDC_GCR_PCPOL /*!< inverted input pixel clock. */
  214. #define IS_LTDC_PCPOL(PCPOL) (((PCPOL) == LTDC_PCPolarity_IPC) || \
  215. ((PCPOL) == LTDC_PCPolarity_IIPC))
  216. /**
  217. * @}
  218. */
  219. /** @defgroup LTDC_Reload
  220. * @{
  221. */
  222. #define LTDC_IMReload LTDC_SRCR_IMR /*!< Immediately Reload. */
  223. #define LTDC_VBReload LTDC_SRCR_VBR /*!< Vertical Blanking Reload. */
  224. #define IS_LTDC_RELOAD(RELOAD) (((RELOAD) == LTDC_IMReload) || \
  225. ((RELOAD) == LTDC_VBReload))
  226. /**
  227. * @}
  228. */
  229. /** @defgroup LTDC_Back_Color
  230. * @{
  231. */
  232. #define LTDC_Back_Color ((uint32_t)0x000000FF)
  233. #define IS_LTDC_BackBlueValue(BBLUE) ((BBLUE) <= LTDC_Back_Color)
  234. #define IS_LTDC_BackGreenValue(BGREEN) ((BGREEN) <= LTDC_Back_Color)
  235. #define IS_LTDC_BackRedValue(BRED) ((BRED) <= LTDC_Back_Color)
  236. /**
  237. * @}
  238. */
  239. /** @defgroup LTDC_Position
  240. * @{
  241. */
  242. #define LTDC_POS_CY LTDC_CPSR_CYPOS
  243. #define LTDC_POS_CX LTDC_CPSR_CXPOS
  244. #define IS_LTDC_GET_POS(POS) (((POS) <= LTDC_POS_CY))
  245. /**
  246. * @}
  247. */
  248. /** @defgroup LTDC_LIPosition
  249. * @{
  250. */
  251. #define IS_LTDC_LIPOS(LIPOS) ((LIPOS) <= 0x7FF)
  252. /**
  253. * @}
  254. */
  255. /** @defgroup LTDC_CurrentStatus
  256. * @{
  257. */
  258. #define LTDC_CD_VDES LTDC_CDSR_VDES
  259. #define LTDC_CD_HDES LTDC_CDSR_HDES
  260. #define LTDC_CD_VSYNC LTDC_CDSR_VSYNCS
  261. #define LTDC_CD_HSYNC LTDC_CDSR_HSYNCS
  262. #define IS_LTDC_GET_CD(CD) (((CD) == LTDC_CD_VDES) || ((CD) == LTDC_CD_HDES) || \
  263. ((CD) == LTDC_CD_VSYNC) || ((CD) == LTDC_CD_HSYNC))
  264. /**
  265. * @}
  266. */
  267. /** @defgroup LTDC_Interrupts
  268. * @{
  269. */
  270. #define LTDC_IT_LI LTDC_IER_LIE
  271. #define LTDC_IT_FU LTDC_IER_FUIE
  272. #define LTDC_IT_TERR LTDC_IER_TERRIE
  273. #define LTDC_IT_RR LTDC_IER_RRIE
  274. #define IS_LTDC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFF0) == 0x00) && ((IT) != 0x00))
  275. /**
  276. * @}
  277. */
  278. /** @defgroup LTDC_Flag
  279. * @{
  280. */
  281. #define LTDC_FLAG_LI LTDC_ISR_LIF
  282. #define LTDC_FLAG_FU LTDC_ISR_FUIF
  283. #define LTDC_FLAG_TERR LTDC_ISR_TERRIF
  284. #define LTDC_FLAG_RR LTDC_ISR_RRIF
  285. #define IS_LTDC_FLAG(FLAG) (((FLAG) == LTDC_FLAG_LI) || ((FLAG) == LTDC_FLAG_FU) || \
  286. ((FLAG) == LTDC_FLAG_TERR) || ((FLAG) == LTDC_FLAG_RR))
  287. /**
  288. * @}
  289. */
  290. /** @defgroup LTDC_Pixelformat
  291. * @{
  292. */
  293. #define LTDC_Pixelformat_ARGB8888 ((uint32_t)0x00000000)
  294. #define LTDC_Pixelformat_RGB888 ((uint32_t)0x00000001)
  295. #define LTDC_Pixelformat_RGB565 ((uint32_t)0x00000002)
  296. #define LTDC_Pixelformat_ARGB1555 ((uint32_t)0x00000003)
  297. #define LTDC_Pixelformat_ARGB4444 ((uint32_t)0x00000004)
  298. #define LTDC_Pixelformat_L8 ((uint32_t)0x00000005)
  299. #define LTDC_Pixelformat_AL44 ((uint32_t)0x00000006)
  300. #define LTDC_Pixelformat_AL88 ((uint32_t)0x00000007)
  301. #define IS_LTDC_Pixelformat(Pixelformat) (((Pixelformat) == LTDC_Pixelformat_ARGB8888) || ((Pixelformat) == LTDC_Pixelformat_RGB888) || \
  302. ((Pixelformat) == LTDC_Pixelformat_RGB565) || ((Pixelformat) == LTDC_Pixelformat_ARGB1555) || \
  303. ((Pixelformat) == LTDC_Pixelformat_ARGB4444) || ((Pixelformat) == LTDC_Pixelformat_L8) || \
  304. ((Pixelformat) == LTDC_Pixelformat_AL44) || ((Pixelformat) == LTDC_Pixelformat_AL88))
  305. /**
  306. * @}
  307. */
  308. /** @defgroup LTDC_BlendingFactor1
  309. * @{
  310. */
  311. #define LTDC_BlendingFactor1_CA ((uint32_t)0x00000400)
  312. #define LTDC_BlendingFactor1_PAxCA ((uint32_t)0x00000600)
  313. #define IS_LTDC_BlendingFactor1(BlendingFactor1) (((BlendingFactor1) == LTDC_BlendingFactor1_CA) || ((BlendingFactor1) == LTDC_BlendingFactor1_PAxCA))
  314. /**
  315. * @}
  316. */
  317. /** @defgroup LTDC_BlendingFactor2
  318. * @{
  319. */
  320. #define LTDC_BlendingFactor2_CA ((uint32_t)0x00000005)
  321. #define LTDC_BlendingFactor2_PAxCA ((uint32_t)0x00000007)
  322. #define IS_LTDC_BlendingFactor2(BlendingFactor2) (((BlendingFactor2) == LTDC_BlendingFactor2_CA) || ((BlendingFactor2) == LTDC_BlendingFactor2_PAxCA))
  323. /**
  324. * @}
  325. */
  326. /** @defgroup LTDC_LAYER_Config
  327. * @{
  328. */
  329. #define LTDC_STOPPosition ((uint32_t)0x0000FFFF)
  330. #define LTDC_STARTPosition ((uint32_t)0x00000FFF)
  331. #define LTDC_DefaultColorConfig ((uint32_t)0x000000FF)
  332. #define LTDC_ColorFrameBuffer ((uint32_t)0x00001FFF)
  333. #define LTDC_LineNumber ((uint32_t)0x000007FF)
  334. #define IS_LTDC_HCONFIGST(HCONFIGST) ((HCONFIGST) <= LTDC_STARTPosition)
  335. #define IS_LTDC_HCONFIGSP(HCONFIGSP) ((HCONFIGSP) <= LTDC_STOPPosition)
  336. #define IS_LTDC_VCONFIGST(VCONFIGST) ((VCONFIGST) <= LTDC_STARTPosition)
  337. #define IS_LTDC_VCONFIGSP(VCONFIGSP) ((VCONFIGSP) <= LTDC_STOPPosition)
  338. #define IS_LTDC_DEFAULTCOLOR(DEFAULTCOLOR) ((DEFAULTCOLOR) <= LTDC_DefaultColorConfig)
  339. #define IS_LTDC_CFBP(CFBP) ((CFBP) <= LTDC_ColorFrameBuffer)
  340. #define IS_LTDC_CFBLL(CFBLL) ((CFBLL) <= LTDC_ColorFrameBuffer)
  341. #define IS_LTDC_CFBLNBR(CFBLNBR) ((CFBLNBR) <= LTDC_LineNumber)
  342. /**
  343. * @}
  344. */
  345. /** @defgroup LTDC_colorkeying_Config
  346. * @{
  347. */
  348. #define LTDC_colorkeyingConfig ((uint32_t)0x000000FF)
  349. #define IS_LTDC_CKEYING(CKEYING) ((CKEYING) <= LTDC_colorkeyingConfig)
  350. /**
  351. * @}
  352. */
  353. /** @defgroup LTDC_CLUT_Config
  354. * @{
  355. */
  356. #define LTDC_CLUTWR ((uint32_t)0x000000FF)
  357. #define IS_LTDC_CLUTWR(CLUTWR) ((CLUTWR) <= LTDC_CLUTWR)
  358. /* Exported macro ------------------------------------------------------------*/
  359. /* Exported functions ------------------------------------------------------- */
  360. /* Function used to set the LTDC configuration to the default reset state *****/
  361. void LTDC_DeInit(void);
  362. /* Initialization and Configuration functions *********************************/
  363. void LTDC_Init(LTDC_InitTypeDef* LTDC_InitStruct);
  364. void LTDC_StructInit(LTDC_InitTypeDef* LTDC_InitStruct);
  365. void LTDC_Cmd(FunctionalState NewState);
  366. void LTDC_DitherCmd(FunctionalState NewState);
  367. LTDC_RGBTypeDef LTDC_GetRGBWidth(void);
  368. void LTDC_RGBStructInit(LTDC_RGBTypeDef* LTDC_RGB_InitStruct);
  369. void LTDC_LIPConfig(uint32_t LTDC_LIPositionConfig);
  370. void LTDC_ReloadConfig(uint32_t LTDC_Reload);
  371. void LTDC_LayerInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_Layer_InitTypeDef* LTDC_Layer_InitStruct);
  372. void LTDC_LayerStructInit(LTDC_Layer_InitTypeDef * LTDC_Layer_InitStruct);
  373. void LTDC_LayerCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  374. LTDC_PosTypeDef LTDC_GetPosStatus(void);
  375. void LTDC_PosStructInit(LTDC_PosTypeDef* LTDC_Pos_InitStruct);
  376. FlagStatus LTDC_GetCDStatus(uint32_t LTDC_CD);
  377. void LTDC_ColorKeyingConfig(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct, FunctionalState NewState);
  378. void LTDC_ColorKeyingStructInit(LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct);
  379. void LTDC_CLUTCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  380. void LTDC_CLUTInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  381. void LTDC_CLUTStructInit(LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  382. void LTDC_LayerPosition(LTDC_Layer_TypeDef* LTDC_Layerx, uint16_t OffsetX, uint16_t OffsetY);
  383. void LTDC_LayerAlpha(LTDC_Layer_TypeDef* LTDC_Layerx, uint8_t ConstantAlpha);
  384. void LTDC_LayerAddress(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Address);
  385. void LTDC_LayerSize(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Width, uint32_t Height);
  386. void LTDC_LayerPixelFormat(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t PixelFormat);
  387. /* Interrupts and flags management functions **********************************/
  388. void LTDC_ITConfig(uint32_t LTDC_IT, FunctionalState NewState);
  389. FlagStatus LTDC_GetFlagStatus(uint32_t LTDC_FLAG);
  390. void LTDC_ClearFlag(uint32_t LTDC_FLAG);
  391. ITStatus LTDC_GetITStatus(uint32_t LTDC_IT);
  392. void LTDC_ClearITPendingBit(uint32_t LTDC_IT);
  393. #ifdef __cplusplus
  394. }
  395. #endif
  396. #endif /* __STM32F4xx_LTDC_H */
  397. /**
  398. * @}
  399. */
  400. /**
  401. * @}
  402. */
  403. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/