STM32L073Z_EVAL BSP User Manual
|
Functions | |
static void | Convert (uint8_t *c, Point_Typedef Point, DoublePoint_Typedef DoublePoint) |
Converts an ascii char to the a LCD Digit (previous coding). | |
static void | LCD_MspInit (LCD_HandleTypeDef *hlcd) |
LCD MSP Init. | |
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. | |
uint16_t | BSP_LCD_GetTextColor (void) |
Gets the LCD text color. | |
uint16_t | BSP_LCD_GetBackColor (void) |
Gets the LCD background color. | |
void | BSP_LCD_SetTextColor (uint16_t Color) |
Sets the LCD text color. | |
void | BSP_LCD_SetBackColor (uint16_t Color) |
Sets the LCD background color. | |
void | BSP_LCD_SetFont (sFONT *pFonts) |
Sets the LCD text font. | |
sFONT * | BSP_LCD_GetFont (void) |
Gets the LCD text font. | |
void | BSP_LCD_Clear (uint16_t Color) |
Clears the hole LCD. | |
void | BSP_LCD_ClearStringLine (uint16_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 Xpos, uint16_t Ypos, uint8_t *pText, Line_ModeTypdef Mode) |
Displays characters on the LCD. | |
void | BSP_LCD_DisplayStringAtLine (uint16_t Line, uint8_t *pText) |
Displays a character on the LCD. | |
uint16_t | BSP_LCD_ReadPixel (uint16_t Xpos, uint16_t Ypos) |
Reads an LCD pixel. | |
void | BSP_LCD_DrawPixel (uint16_t Xpos, uint16_t Ypos) |
Draws an pixel. | |
void | BSP_LCD_DrawHLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws an horizontal line. | |
void | BSP_LCD_DrawVLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws a vertical line. | |
void | BSP_LCD_DrawLine (uint16_t X1, uint16_t Y1, uint16_t X2, uint16_t Y2) |
Draws an uni-line (between two points). | |
void | BSP_LCD_DrawRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Draws a rectangle. | |
void | BSP_LCD_DrawCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
Draws a circle. | |
void | BSP_LCD_DrawPolygon (pPoint pPoints, uint16_t PointCount) |
Draws an poly-line (between many points). | |
void | BSP_LCD_DrawEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
Draws an ellipse on LCD. | |
void | BSP_LCD_DrawBitmap (uint16_t Xpos, uint16_t Ypos, uint8_t *pBmp) |
Draws 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) |
Draws a full rectangle. | |
void | BSP_LCD_FillCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
Draws a full circle. | |
void | BSP_LCD_FillEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
Draws a full ellipse. | |
void | BSP_LCD_DisplayOn (void) |
Enables the display. | |
void | BSP_LCD_DisplayOff (void) |
Disables the display. | |
static void | LCD_DrawPixel (uint16_t Xpos, uint16_t Ypos, uint16_t RGBCode) |
Draws a pixel on LCD. | |
static void | LCD_DrawChar (uint16_t Xpos, uint16_t Ypos, const uint8_t *pChar) |
Draws a character on LCD. | |
static void | LCD_SetDisplayWindow (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Sets display window. |
Function Documentation
void BSP_LCD_Clear | ( | uint16_t | Color | ) |
Clears the hole LCD.
- Parameters:
-
Color,: Color of the background
- Return values:
-
None
Definition at line 262 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawHLine(), BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_ClearStringLine | ( | uint16_t | Line | ) |
Clears the selected line.
- Parameters:
-
Line,: Line to be cleared This parameter can be one of the following values: - 0..9: if the Current fonts is Font16x24
- 0..19: if the Current fonts is Font12x12 or Font8x12
- 0..29: if the Current fonts is Font8x8
- Return values:
-
None
Definition at line 287 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor, BSP_LCD_FillRect(), BSP_LCD_GetXSize(), BSP_LCD_SetTextColor(), LCD_DrawPropTypeDef::pFont, and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_DisplayChar | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t | Ascii | ||
) |
Displays one character.
- Parameters:
-
Xpos,: Start column address Ypos,: Line where to display the character shape. Ascii,: Character ascii code This parameter must be a number between Min_Data = 0x20 and Max_Data = 0x7E
- Return values:
-
None
Definition at line 307 of file stm32l073z_eval_lcd.c.
References LCD_DrawChar(), and LCD_DrawPropTypeDef::pFont.
Referenced by BSP_LCD_DisplayStringAt().
void BSP_LCD_DisplayOff | ( | void | ) |
Disables the display.
- Parameters:
-
None
- Return values:
-
None
Definition at line 826 of file stm32l073z_eval_lcd.c.
References lcd_drv.
void BSP_LCD_DisplayOn | ( | void | ) |
Enables the display.
- Parameters:
-
None
- Return values:
-
None
Definition at line 816 of file stm32l073z_eval_lcd.c.
References lcd_drv.
void BSP_LCD_DisplayStringAt | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t * | pText, | ||
Line_ModeTypdef | Mode | ||
) |
Displays characters on the LCD.
- Parameters:
-
Xpos,: X position (in pixel) Ypos,: Y position (in pixel) pText,: Pointer to string to display on LCD Mode,: Display mode This parameter can be one of the following values: - CENTER_MODE
- RIGHT_MODE
- LEFT_MODE
- Return values:
-
None
Definition at line 325 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DisplayChar(), BSP_LCD_GetXSize(), CENTER_MODE, LEFT_MODE, LCD_DrawPropTypeDef::pFont, and RIGHT_MODE.
Referenced by BSP_LCD_DisplayStringAtLine().
void BSP_LCD_DisplayStringAtLine | ( | uint16_t | Line, |
uint8_t * | pText | ||
) |
Displays a character on the LCD.
- Parameters:
-
Line,: Line where to display the character shape This parameter can be one of the following values: - 0..9: if the Current fonts is Font16x24
- 0..19: if the Current fonts is Font12x12 or Font8x12
- 0..29: if the Current fonts is Font8x8
ptr,: Pointer to string to display on LCD
- Return values:
-
None
Definition at line 384 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DisplayStringAt(), and LEFT_MODE.
void BSP_LCD_DrawBitmap | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t * | pBmp | ||
) |
Draws a bitmap picture loaded in the internal Flash (32 bpp).
- Parameters:
-
Xpos,: Bmp X position in the LCD Ypos,: Bmp Y position in the LCD pBmp,: Pointer to Bmp picture address in the internal Flash
- Return values:
-
None
Definition at line 682 of file stm32l073z_eval_lcd.c.
References BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), lcd_drv, and LCD_SetDisplayWindow().
Referenced by LCD_DrawChar().
void BSP_LCD_DrawCircle | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius | ||
) |
Draws a circle.
- Parameters:
-
Xpos,: X position Ypos,: Y position Radius,: Circle radius
- Return values:
-
None
Definition at line 570 of file stm32l073z_eval_lcd.c.
References BSP_LCD_SetFont(), LCD_DEFAULT_FONT, LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_FillCircle().
void BSP_LCD_DrawEllipse | ( | int | Xpos, |
int | Ypos, | ||
int | XRadius, | ||
int | YRadius | ||
) |
Draws an ellipse on LCD.
- Parameters:
-
Xpos,: X position Ypos,: Y position XRadius,: Ellipse X radius YRadius,: Ellipse Y radius
- Return values:
-
None
Definition at line 649 of file stm32l073z_eval_lcd.c.
References LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_DrawHLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws an horizontal line.
- Parameters:
-
Xpos,: X position Ypos,: Y position Length,: Line length
- Return values:
-
None
Definition at line 426 of file stm32l073z_eval_lcd.c.
References LCD_DrawPixel(), lcd_drv, and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_Clear(), BSP_LCD_DrawRect(), and BSP_LCD_FillRect().
void BSP_LCD_DrawLine | ( | uint16_t | X1, |
uint16_t | Y1, | ||
uint16_t | X2, | ||
uint16_t | Y2 | ||
) |
Draws an uni-line (between two points).
- Parameters:
-
X1,: Point 1 X position Y1,: Point 1 Y position X2,: Point 2 X position Y2,: Point 2 Y position
- Return values:
-
None
Definition at line 477 of file stm32l073z_eval_lcd.c.
References ABS, LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_DrawPolygon().
void BSP_LCD_DrawPixel | ( | uint16_t | Xpos, |
uint16_t | Ypos | ||
) |
Draws an pixel.
- Parameters:
-
Xpos,: X position Ypos,: Y position Length,: Line length
- Return values:
-
None
Definition at line 414 of file stm32l073z_eval_lcd.c.
References LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_DrawPolygon | ( | pPoint | pPoints, |
uint16_t | PointCount | ||
) |
Draws an poly-line (between many points).
- Parameters:
-
pPoints,: Pointer to the points array PointCount,: Number of points
- Return values:
-
None
Definition at line 620 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawLine(), Point::X, and Point::Y.
void BSP_LCD_DrawRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Draws a rectangle.
- Parameters:
-
Xpos,: X position Ypos,: Y position Width,: Rectangle width Height,: Rectangle height
- Return values:
-
None
Definition at line 552 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawHLine(), and BSP_LCD_DrawVLine().
void BSP_LCD_DrawVLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws a vertical line.
- Parameters:
-
Xpos,: X position Ypos,: Y position Length,: Line length
- Return values:
-
None
Definition at line 450 of file stm32l073z_eval_lcd.c.
References BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), LCD_DrawPixel(), lcd_drv, LCD_SetDisplayWindow(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_DrawRect(), BSP_LCD_FillCircle(), and BSP_LCD_FillEllipse().
void BSP_LCD_FillCircle | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius | ||
) |
Draws a full circle.
- Parameters:
-
Xpos,: X position Ypos,: Y position Radius,: Circle radius
- Return values:
-
None
Definition at line 735 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawCircle(), BSP_LCD_DrawVLine(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_FillEllipse | ( | int | Xpos, |
int | Ypos, | ||
int | XRadius, | ||
int | YRadius | ||
) |
Draws a full ellipse.
- Parameters:
-
Xpos,: X position Ypos,: Y position XRadius,: Ellipse X radius YRadius,: Ellipse Y radius
- Return values:
-
None
Definition at line 785 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawVLine().
void BSP_LCD_FillRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Draws a full rectangle.
- Parameters:
-
Xpos,: X position Ypos,: Y position Width,: Rectangle width Height,: Rectangle height
- Return values:
-
None
Definition at line 718 of file stm32l073z_eval_lcd.c.
References BSP_LCD_DrawHLine(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_ClearStringLine().
uint16_t BSP_LCD_GetBackColor | ( | void | ) |
Gets the LCD background color.
- Parameters:
-
None
- Return values:
-
Used background color
Definition at line 212 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor.
sFONT* BSP_LCD_GetFont | ( | void | ) |
Gets the LCD text font.
- Parameters:
-
None
- Return values:
-
Used font
Definition at line 252 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::pFont.
uint16_t BSP_LCD_GetTextColor | ( | void | ) |
Gets the LCD text color.
- Parameters:
-
None
- Return values:
-
Used text color.
Definition at line 202 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::TextColor.
uint32_t BSP_LCD_GetXSize | ( | void | ) |
Gets the LCD X size.
- Parameters:
-
None
- Return values:
-
Used LCD X size
Definition at line 182 of file stm32l073z_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_Clear(), BSP_LCD_ClearStringLine(), BSP_LCD_DisplayStringAt(), BSP_LCD_DrawBitmap(), and BSP_LCD_DrawVLine().
uint32_t BSP_LCD_GetYSize | ( | void | ) |
Gets the LCD Y size.
- Parameters:
-
None
- Return values:
-
Used LCD Y size
Definition at line 192 of file stm32l073z_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_Clear(), BSP_LCD_DrawBitmap(), and BSP_LCD_DrawVLine().
uint8_t BSP_LCD_Init | ( | void | ) |
Initializes the LCD.
- Parameters:
-
None
- Return values:
-
LCD state
Definition at line 148 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor, BSP_LCD_SetFont(), LCD_DEFAULT_FONT, lcd_drv, LCD_ERROR, LCD_OK, LCD_DrawPropTypeDef::pFont, and LCD_DrawPropTypeDef::TextColor.
uint16_t BSP_LCD_ReadPixel | ( | uint16_t | Xpos, |
uint16_t | Ypos | ||
) |
Reads an LCD pixel.
- Parameters:
-
Xpos,: X position Ypos,: Y position
- Return values:
-
RGB pixel color
Definition at line 395 of file stm32l073z_eval_lcd.c.
References lcd_drv.
void BSP_LCD_SetBackColor | ( | uint16_t | Color | ) |
Sets the LCD background color.
- Parameters:
-
Color,: Background color code RGB(5-6-5)
- Return values:
-
None
Definition at line 232 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor.
void BSP_LCD_SetFont | ( | sFONT * | pFonts | ) |
Sets the LCD text font.
- Parameters:
-
pFonts,: Font to be used
- Return values:
-
None
Definition at line 242 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::pFont.
Referenced by BSP_LCD_DrawCircle(), and BSP_LCD_Init().
void BSP_LCD_SetTextColor | ( | uint16_t | Color | ) |
Sets the LCD text color.
- Parameters:
-
Color,: Text color code RGB(5-6-5)
- Return values:
-
None
Definition at line 222 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_Clear(), BSP_LCD_ClearStringLine(), BSP_LCD_FillCircle(), and BSP_LCD_FillRect().
static void Convert | ( | uint8_t * | c, |
Point_Typedef | Point, | ||
DoublePoint_Typedef | DoublePoint | ||
) | [static] |
Converts an ascii char to the a LCD Digit (previous coding).
- Parameters:
-
c,: a char to display. Point,: a point to add in front of a char This parameter can be: POINT_OFF or POINT_ON DoublePoint,: flag indicating if Double Point has to be added in front of the displayed character. This parameter can be: DOUBLEPOINT_ON or DOUBLEPOINT_OFF.
- Return values:
-
None
Definition at line 3152 of file stm32l073z_eval_glass_lcd.c.
References ASCII_CHAR_0, ASCII_CHAR_A, ASCII_CHAR_AT_SYMBOL, ASCII_CHAR_COLON, ASCII_CHAR_FORWARD_SLASH, ASCII_CHAR_LEFT_OPEN_BRACKET, ASCII_CHAR_SPACE, Digit, DOUBLEPOINT_ON, LetterMap, Mask, NumberMap, POINT_ON, Shift, and tmp.
Referenced by BSP_LCD_GLASS_WriteChar().
static void LCD_DrawChar | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
const uint8_t * | pChar | ||
) | [static] |
Draws a character on LCD.
- Parameters:
-
Xpos,: Line where to display the character shape Ypos,: Start column address pChar,: Pointer to the character data
- Return values:
-
None
Definition at line 856 of file stm32l073z_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor, bitmap, BSP_LCD_DrawBitmap(), OFFSET_BITMAP, LCD_DrawPropTypeDef::pFont, and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_DisplayChar().
static void LCD_DrawPixel | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | RGBCode | ||
) | [static] |
Draws a pixel on LCD.
- Parameters:
-
Xpos,: X position Ypos,: Y position RGB_Code,: Pixel color in RGB mode (5-6-5)
- Return values:
-
None
Definition at line 841 of file stm32l073z_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_DrawCircle(), BSP_LCD_DrawEllipse(), BSP_LCD_DrawHLine(), BSP_LCD_DrawLine(), BSP_LCD_DrawPixel(), and BSP_LCD_DrawVLine().
static void LCD_MspInit | ( | LCD_HandleTypeDef * | hlcd | ) | [static] |
LCD MSP Init.
- Parameters:
-
hlcd,: LCD handle
- Return values:
-
None
Definition at line 3061 of file stm32l073z_eval_glass_lcd.c.
Referenced by BSP_LCD_GLASS_Init().
static void LCD_SetDisplayWindow | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) | [static] |
Sets display window.
- 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 927 of file stm32l073z_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_DrawBitmap(), and BSP_LCD_DrawVLine().
Generated on Mon Aug 28 2017 14:54:25 for STM32L073Z_EVAL BSP User Manual by 1.7.6.1