nguyen nam
/
BSP-DISCO_F746NG
Nam
Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.h@6:e1d9da7fe856, 2016-11-10 (annotated)
- Committer:
- bcostm
- Date:
- Thu Nov 10 09:57:11 2016 +0100
- Revision:
- 6:e1d9da7fe856
- Child:
- 8:56384bddaba5
Update all files present in STM32CubeF7 V1.5.1. Keep original folders structure.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 6:e1d9da7fe856 | 1 | /** |
bcostm | 6:e1d9da7fe856 | 2 | ****************************************************************************** |
bcostm | 6:e1d9da7fe856 | 3 | * @file stm32746g_discovery_lcd.h |
bcostm | 6:e1d9da7fe856 | 4 | * @author MCD Application Team |
bcostm | 6:e1d9da7fe856 | 5 | * @version V1.1.1 |
bcostm | 6:e1d9da7fe856 | 6 | * @date 02-June-2016 |
bcostm | 6:e1d9da7fe856 | 7 | * @brief This file contains the common defines and functions prototypes for |
bcostm | 6:e1d9da7fe856 | 8 | * the stm32746g_discovery_lcd.c driver. |
bcostm | 6:e1d9da7fe856 | 9 | ****************************************************************************** |
bcostm | 6:e1d9da7fe856 | 10 | * @attention |
bcostm | 6:e1d9da7fe856 | 11 | * |
bcostm | 6:e1d9da7fe856 | 12 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
bcostm | 6:e1d9da7fe856 | 13 | * |
bcostm | 6:e1d9da7fe856 | 14 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 6:e1d9da7fe856 | 15 | * are permitted provided that the following conditions are met: |
bcostm | 6:e1d9da7fe856 | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 6:e1d9da7fe856 | 17 | * this list of conditions and the following disclaimer. |
bcostm | 6:e1d9da7fe856 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 6:e1d9da7fe856 | 19 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 6:e1d9da7fe856 | 20 | * and/or other materials provided with the distribution. |
bcostm | 6:e1d9da7fe856 | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 6:e1d9da7fe856 | 22 | * may be used to endorse or promote products derived from this software |
bcostm | 6:e1d9da7fe856 | 23 | * without specific prior written permission. |
bcostm | 6:e1d9da7fe856 | 24 | * |
bcostm | 6:e1d9da7fe856 | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 6:e1d9da7fe856 | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 6:e1d9da7fe856 | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 6:e1d9da7fe856 | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 6:e1d9da7fe856 | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 6:e1d9da7fe856 | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 6:e1d9da7fe856 | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 6:e1d9da7fe856 | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 6:e1d9da7fe856 | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 6:e1d9da7fe856 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 6:e1d9da7fe856 | 35 | * |
bcostm | 6:e1d9da7fe856 | 36 | ****************************************************************************** |
bcostm | 6:e1d9da7fe856 | 37 | */ |
bcostm | 6:e1d9da7fe856 | 38 | |
bcostm | 6:e1d9da7fe856 | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 6:e1d9da7fe856 | 40 | #ifndef __STM32746G_DISCOVERY_LCD_H |
bcostm | 6:e1d9da7fe856 | 41 | #define __STM32746G_DISCOVERY_LCD_H |
bcostm | 6:e1d9da7fe856 | 42 | |
bcostm | 6:e1d9da7fe856 | 43 | #ifdef __cplusplus |
bcostm | 6:e1d9da7fe856 | 44 | extern "C" { |
bcostm | 6:e1d9da7fe856 | 45 | #endif |
bcostm | 6:e1d9da7fe856 | 46 | |
bcostm | 6:e1d9da7fe856 | 47 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 6:e1d9da7fe856 | 48 | /* Include LCD component Driver */ |
bcostm | 6:e1d9da7fe856 | 49 | /* LCD RK043FN48H-CT672B 4,3" 480x272 pixels */ |
bcostm | 6:e1d9da7fe856 | 50 | #include "../Components/rk043fn48h/rk043fn48h.h" |
bcostm | 6:e1d9da7fe856 | 51 | |
bcostm | 6:e1d9da7fe856 | 52 | /* Include SDRAM Driver */ |
bcostm | 6:e1d9da7fe856 | 53 | #include "stm32746g_discovery_sdram.h" |
bcostm | 6:e1d9da7fe856 | 54 | |
bcostm | 6:e1d9da7fe856 | 55 | #include "stm32746g_discovery.h" |
bcostm | 6:e1d9da7fe856 | 56 | #include "../../../Utilities/Fonts/fonts.h" |
bcostm | 6:e1d9da7fe856 | 57 | |
bcostm | 6:e1d9da7fe856 | 58 | /** @addtogroup BSP |
bcostm | 6:e1d9da7fe856 | 59 | * @{ |
bcostm | 6:e1d9da7fe856 | 60 | */ |
bcostm | 6:e1d9da7fe856 | 61 | |
bcostm | 6:e1d9da7fe856 | 62 | /** @addtogroup STM32746G_DISCOVERY |
bcostm | 6:e1d9da7fe856 | 63 | * @{ |
bcostm | 6:e1d9da7fe856 | 64 | */ |
bcostm | 6:e1d9da7fe856 | 65 | |
bcostm | 6:e1d9da7fe856 | 66 | /** @addtogroup STM32746G_DISCOVERY_LCD |
bcostm | 6:e1d9da7fe856 | 67 | * @{ |
bcostm | 6:e1d9da7fe856 | 68 | */ |
bcostm | 6:e1d9da7fe856 | 69 | |
bcostm | 6:e1d9da7fe856 | 70 | /** @defgroup STM32746G_DISCOVERY_LCD_Exported_Types STM32746G_DISCOVERY_LCD Exported Types |
bcostm | 6:e1d9da7fe856 | 71 | * @{ |
bcostm | 6:e1d9da7fe856 | 72 | */ |
bcostm | 6:e1d9da7fe856 | 73 | typedef struct |
bcostm | 6:e1d9da7fe856 | 74 | { |
bcostm | 6:e1d9da7fe856 | 75 | uint32_t TextColor; |
bcostm | 6:e1d9da7fe856 | 76 | uint32_t BackColor; |
bcostm | 6:e1d9da7fe856 | 77 | sFONT *pFont; |
bcostm | 6:e1d9da7fe856 | 78 | }LCD_DrawPropTypeDef; |
bcostm | 6:e1d9da7fe856 | 79 | |
bcostm | 6:e1d9da7fe856 | 80 | typedef struct |
bcostm | 6:e1d9da7fe856 | 81 | { |
bcostm | 6:e1d9da7fe856 | 82 | int16_t X; |
bcostm | 6:e1d9da7fe856 | 83 | int16_t Y; |
bcostm | 6:e1d9da7fe856 | 84 | }Point, * pPoint; |
bcostm | 6:e1d9da7fe856 | 85 | |
bcostm | 6:e1d9da7fe856 | 86 | /** |
bcostm | 6:e1d9da7fe856 | 87 | * @brief Line mode structures definition |
bcostm | 6:e1d9da7fe856 | 88 | */ |
bcostm | 6:e1d9da7fe856 | 89 | typedef enum |
bcostm | 6:e1d9da7fe856 | 90 | { |
bcostm | 6:e1d9da7fe856 | 91 | CENTER_MODE = 0x01, /* Center mode */ |
bcostm | 6:e1d9da7fe856 | 92 | RIGHT_MODE = 0x02, /* Right mode */ |
bcostm | 6:e1d9da7fe856 | 93 | LEFT_MODE = 0x03 /* Left mode */ |
bcostm | 6:e1d9da7fe856 | 94 | }Text_AlignModeTypdef; |
bcostm | 6:e1d9da7fe856 | 95 | |
bcostm | 6:e1d9da7fe856 | 96 | /** |
bcostm | 6:e1d9da7fe856 | 97 | * @} |
bcostm | 6:e1d9da7fe856 | 98 | */ |
bcostm | 6:e1d9da7fe856 | 99 | |
bcostm | 6:e1d9da7fe856 | 100 | /** @defgroup STM32746G_DISCOVERY_LCD_Exported_Constants STM32746G_DISCOVERY_LCD Exported Constants |
bcostm | 6:e1d9da7fe856 | 101 | * @{ |
bcostm | 6:e1d9da7fe856 | 102 | */ |
bcostm | 6:e1d9da7fe856 | 103 | #define MAX_LAYER_NUMBER ((uint32_t)2) |
bcostm | 6:e1d9da7fe856 | 104 | |
bcostm | 6:e1d9da7fe856 | 105 | #define LCD_LayerCfgTypeDef LTDC_LayerCfgTypeDef |
bcostm | 6:e1d9da7fe856 | 106 | |
bcostm | 6:e1d9da7fe856 | 107 | #define LTDC_ACTIVE_LAYER ((uint32_t)1) /* Layer 1 */ |
bcostm | 6:e1d9da7fe856 | 108 | /** |
bcostm | 6:e1d9da7fe856 | 109 | * @brief LCD status structure definition |
bcostm | 6:e1d9da7fe856 | 110 | */ |
bcostm | 6:e1d9da7fe856 | 111 | #define LCD_OK ((uint8_t)0x00) |
bcostm | 6:e1d9da7fe856 | 112 | #define LCD_ERROR ((uint8_t)0x01) |
bcostm | 6:e1d9da7fe856 | 113 | #define LCD_TIMEOUT ((uint8_t)0x02) |
bcostm | 6:e1d9da7fe856 | 114 | |
bcostm | 6:e1d9da7fe856 | 115 | /** |
bcostm | 6:e1d9da7fe856 | 116 | * @brief LCD FB_StartAddress |
bcostm | 6:e1d9da7fe856 | 117 | */ |
bcostm | 6:e1d9da7fe856 | 118 | #define LCD_FB_START_ADDRESS ((uint32_t)0xC0000000) |
bcostm | 6:e1d9da7fe856 | 119 | |
bcostm | 6:e1d9da7fe856 | 120 | /** |
bcostm | 6:e1d9da7fe856 | 121 | * @brief LCD color |
bcostm | 6:e1d9da7fe856 | 122 | */ |
bcostm | 6:e1d9da7fe856 | 123 | #define LCD_COLOR_BLUE ((uint32_t)0xFF0000FF) |
bcostm | 6:e1d9da7fe856 | 124 | #define LCD_COLOR_GREEN ((uint32_t)0xFF00FF00) |
bcostm | 6:e1d9da7fe856 | 125 | #define LCD_COLOR_RED ((uint32_t)0xFFFF0000) |
bcostm | 6:e1d9da7fe856 | 126 | #define LCD_COLOR_CYAN ((uint32_t)0xFF00FFFF) |
bcostm | 6:e1d9da7fe856 | 127 | #define LCD_COLOR_MAGENTA ((uint32_t)0xFFFF00FF) |
bcostm | 6:e1d9da7fe856 | 128 | #define LCD_COLOR_YELLOW ((uint32_t)0xFFFFFF00) |
bcostm | 6:e1d9da7fe856 | 129 | #define LCD_COLOR_LIGHTBLUE ((uint32_t)0xFF8080FF) |
bcostm | 6:e1d9da7fe856 | 130 | #define LCD_COLOR_LIGHTGREEN ((uint32_t)0xFF80FF80) |
bcostm | 6:e1d9da7fe856 | 131 | #define LCD_COLOR_LIGHTRED ((uint32_t)0xFFFF8080) |
bcostm | 6:e1d9da7fe856 | 132 | #define LCD_COLOR_LIGHTCYAN ((uint32_t)0xFF80FFFF) |
bcostm | 6:e1d9da7fe856 | 133 | #define LCD_COLOR_LIGHTMAGENTA ((uint32_t)0xFFFF80FF) |
bcostm | 6:e1d9da7fe856 | 134 | #define LCD_COLOR_LIGHTYELLOW ((uint32_t)0xFFFFFF80) |
bcostm | 6:e1d9da7fe856 | 135 | #define LCD_COLOR_DARKBLUE ((uint32_t)0xFF000080) |
bcostm | 6:e1d9da7fe856 | 136 | #define LCD_COLOR_DARKGREEN ((uint32_t)0xFF008000) |
bcostm | 6:e1d9da7fe856 | 137 | #define LCD_COLOR_DARKRED ((uint32_t)0xFF800000) |
bcostm | 6:e1d9da7fe856 | 138 | #define LCD_COLOR_DARKCYAN ((uint32_t)0xFF008080) |
bcostm | 6:e1d9da7fe856 | 139 | #define LCD_COLOR_DARKMAGENTA ((uint32_t)0xFF800080) |
bcostm | 6:e1d9da7fe856 | 140 | #define LCD_COLOR_DARKYELLOW ((uint32_t)0xFF808000) |
bcostm | 6:e1d9da7fe856 | 141 | #define LCD_COLOR_WHITE ((uint32_t)0xFFFFFFFF) |
bcostm | 6:e1d9da7fe856 | 142 | #define LCD_COLOR_LIGHTGRAY ((uint32_t)0xFFD3D3D3) |
bcostm | 6:e1d9da7fe856 | 143 | #define LCD_COLOR_GRAY ((uint32_t)0xFF808080) |
bcostm | 6:e1d9da7fe856 | 144 | #define LCD_COLOR_DARKGRAY ((uint32_t)0xFF404040) |
bcostm | 6:e1d9da7fe856 | 145 | #define LCD_COLOR_BLACK ((uint32_t)0xFF000000) |
bcostm | 6:e1d9da7fe856 | 146 | #define LCD_COLOR_BROWN ((uint32_t)0xFFA52A2A) |
bcostm | 6:e1d9da7fe856 | 147 | #define LCD_COLOR_ORANGE ((uint32_t)0xFFFFA500) |
bcostm | 6:e1d9da7fe856 | 148 | #define LCD_COLOR_TRANSPARENT ((uint32_t)0xFF000000) |
bcostm | 6:e1d9da7fe856 | 149 | |
bcostm | 6:e1d9da7fe856 | 150 | /** |
bcostm | 6:e1d9da7fe856 | 151 | * @brief LCD default font |
bcostm | 6:e1d9da7fe856 | 152 | */ |
bcostm | 6:e1d9da7fe856 | 153 | #define LCD_DEFAULT_FONT Font24 |
bcostm | 6:e1d9da7fe856 | 154 | |
bcostm | 6:e1d9da7fe856 | 155 | /** |
bcostm | 6:e1d9da7fe856 | 156 | * @brief LCD Reload Types |
bcostm | 6:e1d9da7fe856 | 157 | */ |
bcostm | 6:e1d9da7fe856 | 158 | #define LCD_RELOAD_IMMEDIATE ((uint32_t)LTDC_SRCR_IMR) |
bcostm | 6:e1d9da7fe856 | 159 | #define LCD_RELOAD_VERTICAL_BLANKING ((uint32_t)LTDC_SRCR_VBR) |
bcostm | 6:e1d9da7fe856 | 160 | |
bcostm | 6:e1d9da7fe856 | 161 | |
bcostm | 6:e1d9da7fe856 | 162 | /** |
bcostm | 6:e1d9da7fe856 | 163 | * @brief LCD special pins |
bcostm | 6:e1d9da7fe856 | 164 | */ |
bcostm | 6:e1d9da7fe856 | 165 | /* Display enable pin */ |
bcostm | 6:e1d9da7fe856 | 166 | #define LCD_DISP_PIN GPIO_PIN_12 |
bcostm | 6:e1d9da7fe856 | 167 | #define LCD_DISP_GPIO_PORT GPIOI |
bcostm | 6:e1d9da7fe856 | 168 | #define LCD_DISP_GPIO_CLK_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE() |
bcostm | 6:e1d9da7fe856 | 169 | #define LCD_DISP_GPIO_CLK_DISABLE() __HAL_RCC_GPIOI_CLK_DISABLE() |
bcostm | 6:e1d9da7fe856 | 170 | |
bcostm | 6:e1d9da7fe856 | 171 | /* Backlight control pin */ |
bcostm | 6:e1d9da7fe856 | 172 | #define LCD_BL_CTRL_PIN GPIO_PIN_3 |
bcostm | 6:e1d9da7fe856 | 173 | #define LCD_BL_CTRL_GPIO_PORT GPIOK |
bcostm | 6:e1d9da7fe856 | 174 | #define LCD_BL_CTRL_GPIO_CLK_ENABLE() __HAL_RCC_GPIOK_CLK_ENABLE() |
bcostm | 6:e1d9da7fe856 | 175 | #define LCD_BL_CTRL_GPIO_CLK_DISABLE() __HAL_RCC_GPIOK_CLK_DISABLE() |
bcostm | 6:e1d9da7fe856 | 176 | |
bcostm | 6:e1d9da7fe856 | 177 | /** |
bcostm | 6:e1d9da7fe856 | 178 | * @} |
bcostm | 6:e1d9da7fe856 | 179 | */ |
bcostm | 6:e1d9da7fe856 | 180 | |
bcostm | 6:e1d9da7fe856 | 181 | /** @addtogroup STM32746G_DISCOVERY_LCD_Exported_Functions |
bcostm | 6:e1d9da7fe856 | 182 | * @{ |
bcostm | 6:e1d9da7fe856 | 183 | */ |
bcostm | 6:e1d9da7fe856 | 184 | uint8_t BSP_LCD_Init(void); |
bcostm | 6:e1d9da7fe856 | 185 | uint8_t BSP_LCD_DeInit(void); |
bcostm | 6:e1d9da7fe856 | 186 | uint32_t BSP_LCD_GetXSize(void); |
bcostm | 6:e1d9da7fe856 | 187 | uint32_t BSP_LCD_GetYSize(void); |
bcostm | 6:e1d9da7fe856 | 188 | void BSP_LCD_SetXSize(uint32_t imageWidthPixels); |
bcostm | 6:e1d9da7fe856 | 189 | void BSP_LCD_SetYSize(uint32_t imageHeightPixels); |
bcostm | 6:e1d9da7fe856 | 190 | |
bcostm | 6:e1d9da7fe856 | 191 | /* Functions using the LTDC controller */ |
bcostm | 6:e1d9da7fe856 | 192 | void BSP_LCD_LayerDefaultInit(uint16_t LayerIndex, uint32_t FrameBuffer); |
bcostm | 6:e1d9da7fe856 | 193 | void BSP_LCD_LayerRgb565Init(uint16_t LayerIndex, uint32_t FB_Address); |
bcostm | 6:e1d9da7fe856 | 194 | void BSP_LCD_SetTransparency(uint32_t LayerIndex, uint8_t Transparency); |
bcostm | 6:e1d9da7fe856 | 195 | void BSP_LCD_SetTransparency_NoReload(uint32_t LayerIndex, uint8_t Transparency); |
bcostm | 6:e1d9da7fe856 | 196 | void BSP_LCD_SetLayerAddress(uint32_t LayerIndex, uint32_t Address); |
bcostm | 6:e1d9da7fe856 | 197 | void BSP_LCD_SetLayerAddress_NoReload(uint32_t LayerIndex, uint32_t Address); |
bcostm | 6:e1d9da7fe856 | 198 | void BSP_LCD_SetColorKeying(uint32_t LayerIndex, uint32_t RGBValue); |
bcostm | 6:e1d9da7fe856 | 199 | void BSP_LCD_SetColorKeying_NoReload(uint32_t LayerIndex, uint32_t RGBValue); |
bcostm | 6:e1d9da7fe856 | 200 | void BSP_LCD_ResetColorKeying(uint32_t LayerIndex); |
bcostm | 6:e1d9da7fe856 | 201 | void BSP_LCD_ResetColorKeying_NoReload(uint32_t LayerIndex); |
bcostm | 6:e1d9da7fe856 | 202 | void BSP_LCD_SetLayerWindow(uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); |
bcostm | 6:e1d9da7fe856 | 203 | void BSP_LCD_SetLayerWindow_NoReload(uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); |
bcostm | 6:e1d9da7fe856 | 204 | void BSP_LCD_SelectLayer(uint32_t LayerIndex); |
bcostm | 6:e1d9da7fe856 | 205 | void BSP_LCD_SetLayerVisible(uint32_t LayerIndex, FunctionalState State); |
bcostm | 6:e1d9da7fe856 | 206 | void BSP_LCD_SetLayerVisible_NoReload(uint32_t LayerIndex, FunctionalState State); |
bcostm | 6:e1d9da7fe856 | 207 | void BSP_LCD_Reload(uint32_t ReloadType); |
bcostm | 6:e1d9da7fe856 | 208 | |
bcostm | 6:e1d9da7fe856 | 209 | void BSP_LCD_SetTextColor(uint32_t Color); |
bcostm | 6:e1d9da7fe856 | 210 | uint32_t BSP_LCD_GetTextColor(void); |
bcostm | 6:e1d9da7fe856 | 211 | void BSP_LCD_SetBackColor(uint32_t Color); |
bcostm | 6:e1d9da7fe856 | 212 | uint32_t BSP_LCD_GetBackColor(void); |
bcostm | 6:e1d9da7fe856 | 213 | void BSP_LCD_SetFont(sFONT *fonts); |
bcostm | 6:e1d9da7fe856 | 214 | sFONT *BSP_LCD_GetFont(void); |
bcostm | 6:e1d9da7fe856 | 215 | |
bcostm | 6:e1d9da7fe856 | 216 | uint32_t BSP_LCD_ReadPixel(uint16_t Xpos, uint16_t Ypos); |
bcostm | 6:e1d9da7fe856 | 217 | void BSP_LCD_DrawPixel(uint16_t Xpos, uint16_t Ypos, uint32_t pixel); |
bcostm | 6:e1d9da7fe856 | 218 | void BSP_LCD_Clear(uint32_t Color); |
bcostm | 6:e1d9da7fe856 | 219 | void BSP_LCD_ClearStringLine(uint32_t Line); |
bcostm | 6:e1d9da7fe856 | 220 | void BSP_LCD_DisplayStringAtLine(uint16_t Line, uint8_t *ptr); |
bcostm | 6:e1d9da7fe856 | 221 | void BSP_LCD_DisplayStringAt(uint16_t Xpos, uint16_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode); |
bcostm | 6:e1d9da7fe856 | 222 | void BSP_LCD_DisplayChar(uint16_t Xpos, uint16_t Ypos, uint8_t Ascii); |
bcostm | 6:e1d9da7fe856 | 223 | |
bcostm | 6:e1d9da7fe856 | 224 | void BSP_LCD_DrawHLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length); |
bcostm | 6:e1d9da7fe856 | 225 | void BSP_LCD_DrawVLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length); |
bcostm | 6:e1d9da7fe856 | 226 | void BSP_LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2); |
bcostm | 6:e1d9da7fe856 | 227 | void BSP_LCD_DrawRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); |
bcostm | 6:e1d9da7fe856 | 228 | void BSP_LCD_DrawCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius); |
bcostm | 6:e1d9da7fe856 | 229 | void BSP_LCD_DrawPolygon(pPoint Points, uint16_t PointCount); |
bcostm | 6:e1d9da7fe856 | 230 | void BSP_LCD_DrawEllipse(int Xpos, int Ypos, int XRadius, int YRadius); |
bcostm | 6:e1d9da7fe856 | 231 | void BSP_LCD_DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp); |
bcostm | 6:e1d9da7fe856 | 232 | |
bcostm | 6:e1d9da7fe856 | 233 | void BSP_LCD_FillRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); |
bcostm | 6:e1d9da7fe856 | 234 | void BSP_LCD_FillCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius); |
bcostm | 6:e1d9da7fe856 | 235 | void BSP_LCD_FillPolygon(pPoint Points, uint16_t PointCount); |
bcostm | 6:e1d9da7fe856 | 236 | void BSP_LCD_FillEllipse(int Xpos, int Ypos, int XRadius, int YRadius); |
bcostm | 6:e1d9da7fe856 | 237 | |
bcostm | 6:e1d9da7fe856 | 238 | void BSP_LCD_DisplayOff(void); |
bcostm | 6:e1d9da7fe856 | 239 | void BSP_LCD_DisplayOn(void); |
bcostm | 6:e1d9da7fe856 | 240 | |
bcostm | 6:e1d9da7fe856 | 241 | /* These functions can be modified in case the current settings |
bcostm | 6:e1d9da7fe856 | 242 | need to be changed for specific application needs */ |
bcostm | 6:e1d9da7fe856 | 243 | void BSP_LCD_MspInit(LTDC_HandleTypeDef *hltdc, void *Params); |
bcostm | 6:e1d9da7fe856 | 244 | void BSP_LCD_MspDeInit(LTDC_HandleTypeDef *hltdc, void *Params); |
bcostm | 6:e1d9da7fe856 | 245 | void BSP_LCD_ClockConfig(LTDC_HandleTypeDef *hltdc, void *Params); |
bcostm | 6:e1d9da7fe856 | 246 | |
bcostm | 6:e1d9da7fe856 | 247 | /** |
bcostm | 6:e1d9da7fe856 | 248 | * @} |
bcostm | 6:e1d9da7fe856 | 249 | */ |
bcostm | 6:e1d9da7fe856 | 250 | |
bcostm | 6:e1d9da7fe856 | 251 | /** |
bcostm | 6:e1d9da7fe856 | 252 | * @} |
bcostm | 6:e1d9da7fe856 | 253 | */ |
bcostm | 6:e1d9da7fe856 | 254 | |
bcostm | 6:e1d9da7fe856 | 255 | /** |
bcostm | 6:e1d9da7fe856 | 256 | * @} |
bcostm | 6:e1d9da7fe856 | 257 | */ |
bcostm | 6:e1d9da7fe856 | 258 | |
bcostm | 6:e1d9da7fe856 | 259 | /** |
bcostm | 6:e1d9da7fe856 | 260 | * @} |
bcostm | 6:e1d9da7fe856 | 261 | */ |
bcostm | 6:e1d9da7fe856 | 262 | |
bcostm | 6:e1d9da7fe856 | 263 | #ifdef __cplusplus |
bcostm | 6:e1d9da7fe856 | 264 | } |
bcostm | 6:e1d9da7fe856 | 265 | #endif |
bcostm | 6:e1d9da7fe856 | 266 | |
bcostm | 6:e1d9da7fe856 | 267 | #endif /* __STM32746G_DISCOVERY_LCD_H */ |
bcostm | 6:e1d9da7fe856 | 268 | |
bcostm | 6:e1d9da7fe856 | 269 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |