stm32f4xx_ltdc.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_ltdc.h
  4. * @author MCD Application Team
  5. * @version V1.5.0
  6. * @date 06-March-2015
  7. * @brief This file contains all the functions prototypes for the LTDC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2015 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. typedef struct
  125. {
  126. uint32_t LTDC_BlueWidth; /*!< Blue width */
  127. uint32_t LTDC_GreenWidth; /*!< Green width */
  128. uint32_t LTDC_RedWidth; /*!< Red width */
  129. } LTDC_RGBTypeDef;
  130. typedef struct
  131. {
  132. uint32_t LTDC_ColorKeyBlue; /*!< Configures the color key blue value.
  133. This parameter must range from 0x00 to 0xFF. */
  134. uint32_t LTDC_ColorKeyGreen; /*!< Configures the color key green value.
  135. This parameter must range from 0x00 to 0xFF. */
  136. uint32_t LTDC_ColorKeyRed; /*!< Configures the color key red value.
  137. This parameter must range from 0x00 to 0xFF. */
  138. } LTDC_ColorKeying_InitTypeDef;
  139. typedef struct
  140. {
  141. uint32_t LTDC_CLUTAdress; /*!< Configures the CLUT address.
  142. This parameter must range from 0x00 to 0xFF. */
  143. uint32_t LTDC_BlueValue; /*!< Configures the blue value.
  144. This parameter must range from 0x00 to 0xFF. */
  145. uint32_t LTDC_GreenValue; /*!< Configures the green value.
  146. This parameter must range from 0x00 to 0xFF. */
  147. uint32_t LTDC_RedValue; /*!< Configures the red value.
  148. This parameter must range from 0x00 to 0xFF. */
  149. } LTDC_CLUT_InitTypeDef;
  150. /* Exported constants --------------------------------------------------------*/
  151. /** @defgroup LTDC_Exported_Constants
  152. * @}
  153. */
  154. /** @defgroup LTDC_SYNC
  155. * @{
  156. */
  157. #define LTDC_HorizontalSYNC ((uint32_t)0x00000FFF)
  158. #define LTDC_VerticalSYNC ((uint32_t)0x000007FF)
  159. #define IS_LTDC_HSYNC(HSYNC) ((HSYNC) <= LTDC_HorizontalSYNC)
  160. #define IS_LTDC_VSYNC(VSYNC) ((VSYNC) <= LTDC_VerticalSYNC)
  161. #define IS_LTDC_AHBP(AHBP) ((AHBP) <= LTDC_HorizontalSYNC)
  162. #define IS_LTDC_AVBP(AVBP) ((AVBP) <= LTDC_VerticalSYNC)
  163. #define IS_LTDC_AAW(AAW) ((AAW) <= LTDC_HorizontalSYNC)
  164. #define IS_LTDC_AAH(AAH) ((AAH) <= LTDC_VerticalSYNC)
  165. #define IS_LTDC_TOTALW(TOTALW) ((TOTALW) <= LTDC_HorizontalSYNC)
  166. #define IS_LTDC_TOTALH(TOTALH) ((TOTALH) <= LTDC_VerticalSYNC)
  167. /**
  168. * @}
  169. */
  170. /** @defgroup LTDC_HSPolarity
  171. * @{
  172. */
  173. #define LTDC_HSPolarity_AL ((uint32_t)0x00000000) /*!< Horizontal Synchronization is active low. */
  174. #define LTDC_HSPolarity_AH LTDC_GCR_HSPOL /*!< Horizontal Synchronization is active high. */
  175. #define IS_LTDC_HSPOL(HSPOL) (((HSPOL) == LTDC_HSPolarity_AL) || \
  176. ((HSPOL) == LTDC_HSPolarity_AH))
  177. /**
  178. * @}
  179. */
  180. /** @defgroup LTDC_VSPolarity
  181. * @{
  182. */
  183. #define LTDC_VSPolarity_AL ((uint32_t)0x00000000) /*!< Vertical Synchronization is active low. */
  184. #define LTDC_VSPolarity_AH LTDC_GCR_VSPOL /*!< Vertical Synchronization is active high. */
  185. #define IS_LTDC_VSPOL(VSPOL) (((VSPOL) == LTDC_VSPolarity_AL) || \
  186. ((VSPOL) == LTDC_VSPolarity_AH))
  187. /**
  188. * @}
  189. */
  190. /** @defgroup LTDC_DEPolarity
  191. * @{
  192. */
  193. #define LTDC_DEPolarity_AL ((uint32_t)0x00000000) /*!< Data Enable, is active low. */
  194. #define LTDC_DEPolarity_AH LTDC_GCR_DEPOL /*!< Data Enable, is active high. */
  195. #define IS_LTDC_DEPOL(DEPOL) (((DEPOL) == LTDC_VSPolarity_AL) || \
  196. ((DEPOL) == LTDC_DEPolarity_AH))
  197. /**
  198. * @}
  199. */
  200. /** @defgroup LTDC_PCPolarity
  201. * @{
  202. */
  203. #define LTDC_PCPolarity_IPC ((uint32_t)0x00000000) /*!< input pixel clock. */
  204. #define LTDC_PCPolarity_IIPC LTDC_GCR_PCPOL /*!< inverted input pixel clock. */
  205. #define IS_LTDC_PCPOL(PCPOL) (((PCPOL) == LTDC_PCPolarity_IPC) || \
  206. ((PCPOL) == LTDC_PCPolarity_IIPC))
  207. /**
  208. * @}
  209. */
  210. /** @defgroup LTDC_Reload
  211. * @{
  212. */
  213. #define LTDC_IMReload LTDC_SRCR_IMR /*!< Immediately Reload. */
  214. #define LTDC_VBReload LTDC_SRCR_VBR /*!< Vertical Blanking Reload. */
  215. #define IS_LTDC_RELOAD(RELOAD) (((RELOAD) == LTDC_IMReload) || \
  216. ((RELOAD) == LTDC_VBReload))
  217. /**
  218. * @}
  219. */
  220. /** @defgroup LTDC_Back_Color
  221. * @{
  222. */
  223. #define LTDC_Back_Color ((uint32_t)0x000000FF)
  224. #define IS_LTDC_BackBlueValue(BBLUE) ((BBLUE) <= LTDC_Back_Color)
  225. #define IS_LTDC_BackGreenValue(BGREEN) ((BGREEN) <= LTDC_Back_Color)
  226. #define IS_LTDC_BackRedValue(BRED) ((BRED) <= LTDC_Back_Color)
  227. /**
  228. * @}
  229. */
  230. /** @defgroup LTDC_Position
  231. * @{
  232. */
  233. #define LTDC_POS_CY LTDC_CPSR_CYPOS
  234. #define LTDC_POS_CX LTDC_CPSR_CXPOS
  235. #define IS_LTDC_GET_POS(POS) (((POS) <= LTDC_POS_CY))
  236. /**
  237. * @}
  238. */
  239. /** @defgroup LTDC_LIPosition
  240. * @{
  241. */
  242. #define IS_LTDC_LIPOS(LIPOS) ((LIPOS) <= 0x7FF)
  243. /**
  244. * @}
  245. */
  246. /** @defgroup LTDC_CurrentStatus
  247. * @{
  248. */
  249. #define LTDC_CD_VDES LTDC_CDSR_VDES
  250. #define LTDC_CD_HDES LTDC_CDSR_HDES
  251. #define LTDC_CD_VSYNC LTDC_CDSR_VSYNCS
  252. #define LTDC_CD_HSYNC LTDC_CDSR_HSYNCS
  253. #define IS_LTDC_GET_CD(CD) (((CD) == LTDC_CD_VDES) || ((CD) == LTDC_CD_HDES) || \
  254. ((CD) == LTDC_CD_VSYNC) || ((CD) == LTDC_CD_HSYNC))
  255. /**
  256. * @}
  257. */
  258. /** @defgroup LTDC_Interrupts
  259. * @{
  260. */
  261. #define LTDC_IT_LI LTDC_IER_LIE
  262. #define LTDC_IT_FU LTDC_IER_FUIE
  263. #define LTDC_IT_TERR LTDC_IER_TERRIE
  264. #define LTDC_IT_RR LTDC_IER_RRIE
  265. #define IS_LTDC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFF0) == 0x00) && ((IT) != 0x00))
  266. /**
  267. * @}
  268. */
  269. /** @defgroup LTDC_Flag
  270. * @{
  271. */
  272. #define LTDC_FLAG_LI LTDC_ISR_LIF
  273. #define LTDC_FLAG_FU LTDC_ISR_FUIF
  274. #define LTDC_FLAG_TERR LTDC_ISR_TERRIF
  275. #define LTDC_FLAG_RR LTDC_ISR_RRIF
  276. #define IS_LTDC_FLAG(FLAG) (((FLAG) == LTDC_FLAG_LI) || ((FLAG) == LTDC_FLAG_FU) || \
  277. ((FLAG) == LTDC_FLAG_TERR) || ((FLAG) == LTDC_FLAG_RR))
  278. /**
  279. * @}
  280. */
  281. /** @defgroup LTDC_Pixelformat
  282. * @{
  283. */
  284. #define LTDC_Pixelformat_ARGB8888 ((uint32_t)0x00000000)
  285. #define LTDC_Pixelformat_RGB888 ((uint32_t)0x00000001)
  286. #define LTDC_Pixelformat_RGB565 ((uint32_t)0x00000002)
  287. #define LTDC_Pixelformat_ARGB1555 ((uint32_t)0x00000003)
  288. #define LTDC_Pixelformat_ARGB4444 ((uint32_t)0x00000004)
  289. #define LTDC_Pixelformat_L8 ((uint32_t)0x00000005)
  290. #define LTDC_Pixelformat_AL44 ((uint32_t)0x00000006)
  291. #define LTDC_Pixelformat_AL88 ((uint32_t)0x00000007)
  292. #define IS_LTDC_Pixelformat(Pixelformat) (((Pixelformat) == LTDC_Pixelformat_ARGB8888) || ((Pixelformat) == LTDC_Pixelformat_RGB888) || \
  293. ((Pixelformat) == LTDC_Pixelformat_RGB565) || ((Pixelformat) == LTDC_Pixelformat_ARGB1555) || \
  294. ((Pixelformat) == LTDC_Pixelformat_ARGB4444) || ((Pixelformat) == LTDC_Pixelformat_L8) || \
  295. ((Pixelformat) == LTDC_Pixelformat_AL44) || ((Pixelformat) == LTDC_Pixelformat_AL88))
  296. /**
  297. * @}
  298. */
  299. /** @defgroup LTDC_BlendingFactor1
  300. * @{
  301. */
  302. #define LTDC_BlendingFactor1_CA ((uint32_t)0x00000400)
  303. #define LTDC_BlendingFactor1_PAxCA ((uint32_t)0x00000600)
  304. #define IS_LTDC_BlendingFactor1(BlendingFactor1) (((BlendingFactor1) == LTDC_BlendingFactor1_CA) || ((BlendingFactor1) == LTDC_BlendingFactor1_PAxCA))
  305. /**
  306. * @}
  307. */
  308. /** @defgroup LTDC_BlendingFactor2
  309. * @{
  310. */
  311. #define LTDC_BlendingFactor2_CA ((uint32_t)0x00000005)
  312. #define LTDC_BlendingFactor2_PAxCA ((uint32_t)0x00000007)
  313. #define IS_LTDC_BlendingFactor2(BlendingFactor2) (((BlendingFactor2) == LTDC_BlendingFactor2_CA) || ((BlendingFactor2) == LTDC_BlendingFactor2_PAxCA))
  314. /**
  315. * @}
  316. */
  317. /** @defgroup LTDC_LAYER_Config
  318. * @{
  319. */
  320. #define LTDC_STOPPosition ((uint32_t)0x0000FFFF)
  321. #define LTDC_STARTPosition ((uint32_t)0x00000FFF)
  322. #define LTDC_DefaultColorConfig ((uint32_t)0x000000FF)
  323. #define LTDC_ColorFrameBuffer ((uint32_t)0x00001FFF)
  324. #define LTDC_LineNumber ((uint32_t)0x000007FF)
  325. #define IS_LTDC_HCONFIGST(HCONFIGST) ((HCONFIGST) <= LTDC_STARTPosition)
  326. #define IS_LTDC_HCONFIGSP(HCONFIGSP) ((HCONFIGSP) <= LTDC_STOPPosition)
  327. #define IS_LTDC_VCONFIGST(VCONFIGST) ((VCONFIGST) <= LTDC_STARTPosition)
  328. #define IS_LTDC_VCONFIGSP(VCONFIGSP) ((VCONFIGSP) <= LTDC_STOPPosition)
  329. #define IS_LTDC_DEFAULTCOLOR(DEFAULTCOLOR) ((DEFAULTCOLOR) <= LTDC_DefaultColorConfig)
  330. #define IS_LTDC_CFBP(CFBP) ((CFBP) <= LTDC_ColorFrameBuffer)
  331. #define IS_LTDC_CFBLL(CFBLL) ((CFBLL) <= LTDC_ColorFrameBuffer)
  332. #define IS_LTDC_CFBLNBR(CFBLNBR) ((CFBLNBR) <= LTDC_LineNumber)
  333. /**
  334. * @}
  335. */
  336. /** @defgroup LTDC_colorkeying_Config
  337. * @{
  338. */
  339. #define LTDC_colorkeyingConfig ((uint32_t)0x000000FF)
  340. #define IS_LTDC_CKEYING(CKEYING) ((CKEYING) <= LTDC_colorkeyingConfig)
  341. /**
  342. * @}
  343. */
  344. /** @defgroup LTDC_CLUT_Config
  345. * @{
  346. */
  347. #define LTDC_CLUTWR ((uint32_t)0x000000FF)
  348. #define IS_LTDC_CLUTWR(CLUTWR) ((CLUTWR) <= LTDC_CLUTWR)
  349. /* Exported macro ------------------------------------------------------------*/
  350. /* Exported functions ------------------------------------------------------- */
  351. /* Function used to set the LTDC configuration to the default reset state *****/
  352. void LTDC_DeInit(void);
  353. /* Initialization and Configuration functions *********************************/
  354. void LTDC_Init(LTDC_InitTypeDef* LTDC_InitStruct);
  355. void LTDC_StructInit(LTDC_InitTypeDef* LTDC_InitStruct);
  356. void LTDC_Cmd(FunctionalState NewState);
  357. void LTDC_DitherCmd(FunctionalState NewState);
  358. LTDC_RGBTypeDef LTDC_GetRGBWidth(void);
  359. void LTDC_RGBStructInit(LTDC_RGBTypeDef* LTDC_RGB_InitStruct);
  360. void LTDC_LIPConfig(uint32_t LTDC_LIPositionConfig);
  361. void LTDC_ReloadConfig(uint32_t LTDC_Reload);
  362. void LTDC_LayerInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_Layer_InitTypeDef* LTDC_Layer_InitStruct);
  363. void LTDC_LayerStructInit(LTDC_Layer_InitTypeDef * LTDC_Layer_InitStruct);
  364. void LTDC_LayerCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  365. LTDC_PosTypeDef LTDC_GetPosStatus(void);
  366. void LTDC_PosStructInit(LTDC_PosTypeDef* LTDC_Pos_InitStruct);
  367. FlagStatus LTDC_GetCDStatus(uint32_t LTDC_CD);
  368. void LTDC_ColorKeyingConfig(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct, FunctionalState NewState);
  369. void LTDC_ColorKeyingStructInit(LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct);
  370. void LTDC_CLUTCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  371. void LTDC_CLUTInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  372. void LTDC_CLUTStructInit(LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  373. void LTDC_LayerPosition(LTDC_Layer_TypeDef* LTDC_Layerx, uint16_t OffsetX, uint16_t OffsetY);
  374. void LTDC_LayerAlpha(LTDC_Layer_TypeDef* LTDC_Layerx, uint8_t ConstantAlpha);
  375. void LTDC_LayerAddress(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Address);
  376. void LTDC_LayerSize(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Width, uint32_t Height);
  377. void LTDC_LayerPixelFormat(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t PixelFormat);
  378. /* Interrupts and flags management functions **********************************/
  379. void LTDC_ITConfig(uint32_t LTDC_IT, FunctionalState NewState);
  380. FlagStatus LTDC_GetFlagStatus(uint32_t LTDC_FLAG);
  381. void LTDC_ClearFlag(uint32_t LTDC_FLAG);
  382. ITStatus LTDC_GetITStatus(uint32_t LTDC_IT);
  383. void LTDC_ClearITPendingBit(uint32_t LTDC_IT);
  384. #ifdef __cplusplus
  385. }
  386. #endif
  387. #endif /* __STM32F4xx_LTDC_H */
  388. /**
  389. * @}
  390. */
  391. /**
  392. * @}
  393. */
  394. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/