Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 2a 2b 2c 2d1 ... more
STM32F429I DISCOVERY LCD Private Functions
[STM32F429I DISCOVERY LCD]
Functions | |
| uint8_t | BSP_LCD_Init (void) |
| Initializes the LCD. | |
| uint32_t | BSP_LCD_GetXSize (void) |
| Gets the LCD X size. | |
| uint32_t | BSP_LCD_GetYSize (void) |
| Gets the LCD Y size. | |
| void | BSP_LCD_LayerDefaultInit (uint16_t LayerIndex, uint32_t FB_Address) |
| Initializes the LCD layers. | |
| void | BSP_LCD_SelectLayer (uint32_t LayerIndex) |
| Selects the LCD Layer. | |
| void | BSP_LCD_SetLayerVisible (uint32_t LayerIndex, FunctionalState state) |
| Sets a LCD Layer visible. | |
| void | BSP_LCD_SetLayerVisible_NoReload (uint32_t LayerIndex, FunctionalState State) |
| Sets an LCD Layer visible without reloading. | |
| void | BSP_LCD_SetTransparency (uint32_t LayerIndex, uint8_t Transparency) |
| Configures the Transparency. | |
| void | BSP_LCD_SetTransparency_NoReload (uint32_t LayerIndex, uint8_t Transparency) |
| Configures the transparency without reloading. | |
| void | BSP_LCD_SetLayerAddress (uint32_t LayerIndex, uint32_t Address) |
| Sets a LCD layer frame buffer address. | |
| void | BSP_LCD_SetLayerAddress_NoReload (uint32_t LayerIndex, uint32_t Address) |
| Sets an LCD layer frame buffer address without reloading. | |
| void | BSP_LCD_SetLayerWindow (uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
| Sets the Display window. | |
| void | BSP_LCD_SetLayerWindow_NoReload (uint16_t LayerIndex, uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
| Sets display window without reloading. | |
| void | BSP_LCD_SetColorKeying (uint32_t LayerIndex, uint32_t RGBValue) |
| Configures and sets the color Keying. | |
| void | BSP_LCD_SetColorKeying_NoReload (uint32_t LayerIndex, uint32_t RGBValue) |
| Configures and sets the color keying without reloading. | |
| void | BSP_LCD_ResetColorKeying (uint32_t LayerIndex) |
| Disables the color Keying. | |
| void | BSP_LCD_ResetColorKeying_NoReload (uint32_t LayerIndex) |
| Disables the color keying without reloading. | |
| void | BSP_LCD_Relaod (uint32_t ReloadType) |
| Disables the color keying without reloading. | |
| uint32_t | BSP_LCD_GetTextColor (void) |
| Gets the LCD Text color. | |
| uint32_t | BSP_LCD_GetBackColor (void) |
| Gets the LCD Background color. | |
| void | BSP_LCD_SetTextColor (uint32_t Color) |
| Sets the Text color. | |
| void | BSP_LCD_SetBackColor (uint32_t Color) |
| Sets the Background color. | |
| void | BSP_LCD_SetFont (sFONT *pFonts) |
| Sets the Text Font. | |
| sFONT * | BSP_LCD_GetFont (void) |
| Gets the Text Font. | |
| uint32_t | BSP_LCD_ReadPixel (uint16_t Xpos, uint16_t Ypos) |
| Reads Pixel. | |
| void | BSP_LCD_Clear (uint32_t Color) |
| Clears the hole LCD. | |
| void | BSP_LCD_ClearStringLine (uint32_t Line) |
| Clears the selected line. | |
| void | BSP_LCD_DisplayChar (uint16_t Xpos, uint16_t Ypos, uint8_t Ascii) |
| Displays one character. | |
| void | BSP_LCD_DisplayStringAt (uint16_t X, uint16_t Y, uint8_t *pText, Text_AlignModeTypdef mode) |
| Displays a maximum of 60 char on the LCD. | |
| void | BSP_LCD_DisplayStringAtLine (uint16_t Line, uint8_t *ptr) |
| Displays a maximum of 20 char on the LCD. | |
| void | BSP_LCD_DrawHLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
| Displays an horizontal line. | |
| void | BSP_LCD_DrawVLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
| Displays a vertical line. | |
| void | BSP_LCD_DrawLine (uint16_t X1, uint16_t Y1, uint16_t X2, uint16_t Y2) |
| Displays an uni-line (between two points). | |
| void | BSP_LCD_DrawRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
| Displays a rectangle. | |
| void | BSP_LCD_DrawCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
| Displays a circle. | |
| void | BSP_LCD_DrawPolygon (pPoint Points, uint16_t PointCount) |
| Displays an poly-line (between many points). | |
| void | BSP_LCD_DrawEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
| Displays an Ellipse. | |
| void | BSP_LCD_DrawBitmap (uint32_t X, uint32_t Y, uint8_t *pBmp) |
| Displays a bitmap picture loaded in the internal Flash (32 bpp). | |
| void | BSP_LCD_FillRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
| Displays a full rectangle. | |
| void | BSP_LCD_FillCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
| Displays a full circle. | |
| void | BSP_LCD_FillTriangle (uint16_t X1, uint16_t X2, uint16_t X3, uint16_t Y1, uint16_t Y2, uint16_t Y3) |
| Fill triangle. | |
| void | BSP_LCD_FillPolygon (pPoint Points, uint16_t PointCount) |
| Displays a full poly-line (between many points). | |
| void | BSP_LCD_FillEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
| Draw a full ellipse. | |
| void | BSP_LCD_DisplayOn (void) |
| Enables the Display. | |
| void | BSP_LCD_DisplayOff (void) |
| Disables the Display. | |
| __weak void | BSP_LCD_MspInit (void) |
| Initializes the LTDC MSP. | |
| void | BSP_LCD_DrawPixel (uint16_t Xpos, uint16_t Ypos, uint32_t RGB_Code) |
| Writes Pixel. | |
| static void | DrawChar (uint16_t Xpos, uint16_t Ypos, const uint8_t *c) |
| Draws a character on LCD. | |
| static void | FillBuffer (uint32_t LayerIndex, void *pDst, uint32_t xSize, uint32_t ySize, uint32_t OffLine, uint32_t ColorIndex) |
| Fills buffer. | |
| static void | ConvertLineToARGB8888 (void *pSrc, void *pDst, uint32_t xSize, uint32_t ColorMode) |
| Converts Line to ARGB8888 pixel format. | |
Function Documentation
| void BSP_LCD_Clear | ( | uint32_t | Color ) |
Clears the hole LCD.
- Parameters:
-
Color,: the color of the background
Definition at line 567 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_ClearStringLine | ( | uint32_t | Line ) |
Clears the selected line.
- Parameters:
-
Line,: the line to be cleared
Definition at line 577 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DisplayChar | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint8_t | Ascii | ||
| ) |
Displays one character.
- Parameters:
-
Xpos,: start column address Ypos,: the Line where to display the character shape Ascii,: character ascii code, must be between 0x20 and 0x7E
Definition at line 595 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DisplayOff | ( | void | ) |
Disables the Display.
Definition at line 1209 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DisplayOn | ( | void | ) |
Enables the Display.
Definition at line 1198 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DisplayStringAt | ( | uint16_t | X, |
| uint16_t | Y, | ||
| uint8_t * | pText, | ||
| Text_AlignModeTypdef | mode | ||
| ) |
Displays a maximum of 60 char on the LCD.
- Parameters:
-
X,: pointer to x position (in pixel) Y,: pointer to y position (in pixel) pText,: pointer to string to display on LCD mode,: The display mode This parameter can be one of the following values: - CENTER_MODE
- RIGHT_MODE
- LEFT_MODE
Definition at line 612 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DisplayStringAtLine | ( | uint16_t | Line, |
| uint8_t * | ptr | ||
| ) |
Displays a maximum of 20 char on the LCD.
- Parameters:
-
Line,: the Line where to display the character shape ptr,: pointer to string to display on LCD
Definition at line 666 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawBitmap | ( | uint32_t | X, |
| uint32_t | Y, | ||
| uint8_t * | pBmp | ||
| ) |
Displays a bitmap picture loaded in the internal Flash (32 bpp).
- Parameters:
-
X,: the bmp x position in the LCD Y,: the bmp Y position in the LCD pBmp,: Bmp picture address in the internal Flash
Definition at line 901 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawCircle | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Radius | ||
| ) |
Displays a circle.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Radius,: the circle radius
Definition at line 803 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawEllipse | ( | int | Xpos, |
| int | Ypos, | ||
| int | XRadius, | ||
| int | YRadius | ||
| ) |
Displays an Ellipse.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position XRadius,: the X radius of ellipse YRadius,: the Y radius of ellipse
Definition at line 869 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawHLine | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Length | ||
| ) |
Displays an horizontal line.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Length,: line length
Definition at line 677 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawLine | ( | uint16_t | X1, |
| uint16_t | Y1, | ||
| uint16_t | X2, | ||
| uint16_t | Y2 | ||
| ) |
Displays an uni-line (between two points).
- Parameters:
-
X1,: the point 1 X position Y1,: the point 1 Y position X2,: the point 2 X position Y2,: the point 2 Y position
Definition at line 712 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawPixel | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint32_t | RGB_Code | ||
| ) |
Writes Pixel.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position RGB_Code,: the pixel color in ARGB mode (8-8-8-8)
Definition at line 1308 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawPolygon | ( | pPoint | Points, |
| uint16_t | PointCount | ||
| ) |
Displays an poly-line (between many points).
- Parameters:
-
Points,: pointer to the points array PointCount,: Number of points
Definition at line 842 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawRect | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Width, | ||
| uint16_t | Height | ||
| ) |
Displays a rectangle.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Height,: display rectangle height Width,: display rectangle width
Definition at line 786 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_DrawVLine | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Length | ||
| ) |
Displays a vertical line.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Length,: line length
Definition at line 694 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_FillCircle | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Radius | ||
| ) |
Displays a full circle.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Radius,: the circle radius
Definition at line 978 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_FillEllipse | ( | int | Xpos, |
| int | Ypos, | ||
| int | XRadius, | ||
| int | YRadius | ||
| ) |
Draw a full ellipse.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position XRadius,: X radius of ellipse YRadius,: Y radius of ellipse.
Definition at line 1170 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_FillPolygon | ( | pPoint | Points, |
| uint16_t | PointCount | ||
| ) |
Displays a full poly-line (between many points).
- Parameters:
-
Points,: pointer to the points array PointCount,: Number of points
Definition at line 1102 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_FillRect | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Width, | ||
| uint16_t | Height | ||
| ) |
Displays a full rectangle.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position Height,: rectangle height Width,: rectangle width
Definition at line 958 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_FillTriangle | ( | uint16_t | X1, |
| uint16_t | X2, | ||
| uint16_t | X3, | ||
| uint16_t | Y1, | ||
| uint16_t | Y2, | ||
| uint16_t | Y3 | ||
| ) |
Fill triangle.
- Parameters:
-
X1,: the point 1 x position Y1,: the point 1 y position X2,: the point 2 x position Y2,: the point 2 y position X3,: the point 3 x position Y3,: the point 3 y position
Definition at line 1029 of file stm32f429i_discovery_lcd.c.
| uint32_t BSP_LCD_GetBackColor | ( | void | ) |
Gets the LCD Background color.
- Return values:
-
Background color
Definition at line 486 of file stm32f429i_discovery_lcd.c.
| sFONT* BSP_LCD_GetFont | ( | void | ) |
Gets the Text Font.
- Return values:
-
Layer font
Definition at line 522 of file stm32f429i_discovery_lcd.c.
| uint32_t BSP_LCD_GetTextColor | ( | void | ) |
Gets the LCD Text color.
- Return values:
-
Text color
Definition at line 477 of file stm32f429i_discovery_lcd.c.
| uint32_t BSP_LCD_GetXSize | ( | void | ) |
Gets the LCD X size.
- Return values:
-
The used LCD X size
Definition at line 236 of file stm32f429i_discovery_lcd.c.
| uint32_t BSP_LCD_GetYSize | ( | void | ) |
Gets the LCD Y size.
- Return values:
-
The used LCD Y size
Definition at line 245 of file stm32f429i_discovery_lcd.c.
| uint8_t BSP_LCD_Init | ( | void | ) |
Initializes the LCD.
- Return values:
-
LCD state
Definition at line 153 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_LayerDefaultInit | ( | uint16_t | LayerIndex, |
| uint32_t | FB_Address | ||
| ) |
Initializes the LCD layers.
- Parameters:
-
LayerIndex,: the layer foreground or background. FB_Address,: the layer frame buffer.
Definition at line 255 of file stm32f429i_discovery_lcd.c.
| __weak void BSP_LCD_MspInit | ( | void | ) |
Initializes the LTDC MSP.
Definition at line 1224 of file stm32f429i_discovery_lcd.c.
| uint32_t BSP_LCD_ReadPixel | ( | uint16_t | Xpos, |
| uint16_t | Ypos | ||
| ) |
Reads Pixel.
- Parameters:
-
Xpos,: the X position Ypos,: the Y position
- Return values:
-
RGB pixel color
Definition at line 533 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_Relaod | ( | uint32_t | ReloadType ) |
Disables the color keying without reloading.
- Parameters:
-
ReloadType,: can be one of the following values - LCD_RELOAD_IMMEDIATE
- LCD_RELOAD_VERTICAL_BLANKING
- Return values:
-
None
Definition at line 468 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_ResetColorKeying | ( | uint32_t | LayerIndex ) |
Disables the color Keying.
- Parameters:
-
LayerIndex,: the Layer foreground or background
Definition at line 444 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_ResetColorKeying_NoReload | ( | uint32_t | LayerIndex ) |
Disables the color keying without reloading.
- Parameters:
-
LayerIndex,: Layer foreground or background
- Return values:
-
None
Definition at line 455 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SelectLayer | ( | uint32_t | LayerIndex ) |
Selects the LCD Layer.
- Parameters:
-
LayerIndex,: the Layer foreground or background.
Definition at line 290 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetBackColor | ( | uint32_t | Color ) |
Sets the Background color.
- Parameters:
-
Color,: the layer Background color code ARGB(8-8-8-8)
Definition at line 504 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetColorKeying | ( | uint32_t | LayerIndex, |
| uint32_t | RGBValue | ||
| ) |
Configures and sets the color Keying.
- Parameters:
-
LayerIndex,: the Layer foreground or background RGBValue,: the Color reference
Definition at line 420 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetColorKeying_NoReload | ( | uint32_t | LayerIndex, |
| uint32_t | RGBValue | ||
| ) |
Configures and sets the color keying without reloading.
- Parameters:
-
LayerIndex,: Layer foreground or background RGBValue,: Color reference
- Return values:
-
None
Definition at line 433 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetFont | ( | sFONT * | pFonts ) |
Sets the Text Font.
- Parameters:
-
pFonts,: the layer font to be used
Definition at line 513 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerAddress | ( | uint32_t | LayerIndex, |
| uint32_t | Address | ||
| ) |
Sets a LCD layer frame buffer address.
- Parameters:
-
LayerIndex,: specifies the Layer foreground or background Address,: new LCD frame buffer value
Definition at line 364 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerAddress_NoReload | ( | uint32_t | LayerIndex, |
| uint32_t | Address | ||
| ) |
Sets an LCD layer frame buffer address without reloading.
- Parameters:
-
LayerIndex,: Layer foreground or background Address,: New LCD frame buffer value
- Return values:
-
None
Definition at line 375 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerVisible | ( | uint32_t | LayerIndex, |
| FunctionalState | state | ||
| ) |
Sets a LCD Layer visible.
- Parameters:
-
LayerIndex,: the visible Layer. state,: new state of the specified layer. This parameter can be: ENABLE or DISABLE.
Definition at line 301 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerVisible_NoReload | ( | uint32_t | LayerIndex, |
| FunctionalState | State | ||
| ) |
Sets an LCD Layer visible without reloading.
- Parameters:
-
LayerIndex,: Visible Layer State,: New state of the specified layer This parameter can be one of the following values: - ENABLE
- DISABLE
- Return values:
-
None
Definition at line 323 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerWindow | ( | uint16_t | LayerIndex, |
| uint16_t | Xpos, | ||
| uint16_t | Ypos, | ||
| uint16_t | Width, | ||
| uint16_t | Height | ||
| ) |
Sets the Display window.
- Parameters:
-
LayerIndex,: layer index Xpos,: LCD X position Ypos,: LCD Y position Width,: LCD window width Height,: LCD window height
Definition at line 388 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetLayerWindow_NoReload | ( | uint16_t | LayerIndex, |
| uint16_t | Xpos, | ||
| uint16_t | Ypos, | ||
| uint16_t | Width, | ||
| uint16_t | Height | ||
| ) |
Sets display window without reloading.
- Parameters:
-
LayerIndex,: Layer index Xpos,: LCD X position Ypos,: LCD Y position Width,: LCD window width Height,: LCD window height
- Return values:
-
None
Definition at line 406 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetTextColor | ( | uint32_t | Color ) |
Sets the Text color.
- Parameters:
-
Color,: the Text color code ARGB(8-8-8-8)
Definition at line 495 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetTransparency | ( | uint32_t | LayerIndex, |
| uint8_t | Transparency | ||
| ) |
Configures the Transparency.
- Parameters:
-
LayerIndex,: the Layer foreground or background. Transparency,: the Transparency, This parameter must range from 0x00 to 0xFF.
Definition at line 342 of file stm32f429i_discovery_lcd.c.
| void BSP_LCD_SetTransparency_NoReload | ( | uint32_t | LayerIndex, |
| uint8_t | Transparency | ||
| ) |
Configures the transparency without reloading.
- Parameters:
-
LayerIndex,: Layer foreground or background. Transparency,: Transparency This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF
- Return values:
-
None
Definition at line 354 of file stm32f429i_discovery_lcd.c.
| static void ConvertLineToARGB8888 | ( | void * | pSrc, |
| void * | pDst, | ||
| uint32_t | xSize, | ||
| uint32_t | ColorMode | ||
| ) | [static] |
Converts Line to ARGB8888 pixel format.
- Parameters:
-
pSrc,: pointer to source buffer pDst,: output color xSize,: buffer width ColorMode,: input color mode
Definition at line 1408 of file stm32f429i_discovery_lcd.c.
| static void DrawChar | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| const uint8_t * | c | ||
| ) | [static] |
Draws a character on LCD.
- Parameters:
-
Xpos,: the Line where to display the character shape Ypos,: start column address c,: pointer to the character data
Definition at line 1320 of file stm32f429i_discovery_lcd.c.
| static void FillBuffer | ( | uint32_t | LayerIndex, |
| void * | pDst, | ||
| uint32_t | xSize, | ||
| uint32_t | ySize, | ||
| uint32_t | OffLine, | ||
| uint32_t | ColorIndex | ||
| ) | [static] |
Fills buffer.
- Parameters:
-
LayerIndex,: layer index pDst,: output color xSize,: buffer width ySize,: buffer height OffLine,: offset ColorIndex,: color Index
Definition at line 1377 of file stm32f429i_discovery_lcd.c.
Generated on Tue Jul 12 2022 16:29:24 by
1.7.2