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.
Fork of TUKS-COURSE-TIMER by
STM32L476G_DISCOVERY_LCD_Exported_Functions
[STM32L476G-DISCOVERY GLASS LCD]
Functions | |
void | BSP_LCD_GLASS_Init (void) |
Initialize the LCD GLASS relative GPIO port IOs and LCD peripheral. | |
void | BSP_LCD_GLASS_DeInit (void) |
DeInitialize the LCD GLASS relative GPIO port IOs and LCD peripheral. | |
void | BSP_LCD_GLASS_BlinkConfig (uint32_t BlinkMode, uint32_t BlinkFrequency) |
Configure the LCD Blink mode and Blink frequency. | |
void | BSP_LCD_GLASS_Contrast (uint32_t Contrast) |
Configure the LCD contrast. | |
void | BSP_LCD_GLASS_DisplayBar (uint32_t BarId) |
Display one or several bar in LCD frame buffer. | |
void | BSP_LCD_GLASS_ClearBar (uint32_t BarId) |
Clear one or several bar in LCD frame buffer. | |
void | BSP_LCD_GLASS_BarLevelConfig (uint8_t BarLevel) |
Configure the bar level on LCD by writing bar value in LCD frame buffer. | |
void | BSP_LCD_GLASS_DisplayChar (uint8_t *ch, Point_Typedef Point, DoublePoint_Typedef Colon, DigitPosition_Typedef Position) |
Write a character in the LCD RAM buffer. | |
void | BSP_LCD_GLASS_DisplayString (uint8_t *ptr) |
Write a character string in the LCD RAM buffer. | |
void | BSP_LCD_GLASS_DisplayStrDeci (uint16_t *ptr) |
Write a character string with decimal point in the LCD RAM buffer. | |
void | BSP_LCD_GLASS_Clear (void) |
Clear the whole LCD RAM buffer. | |
void | BSP_LCD_GLASS_ScrollSentence (uint8_t *ptr, uint16_t nScroll, uint16_t ScrollSpeed) |
Display a string in scrolling mode. |
Function Documentation
void BSP_LCD_GLASS_BarLevelConfig | ( | uint8_t | BarLevel ) |
Configure the bar level on LCD by writing bar value in LCD frame buffer.
- Parameters:
-
BarLevel,: specifies the LCD GLASS Battery Level. This parameter can be one of the following values: - BATTERYLEVEL_OFF: LCD GLASS Battery Empty
- BATTERYLEVEL_1_4: LCD GLASS Battery 1/4 Full
- BATTERYLEVEL_1_2: LCD GLASS Battery 1/2 Full
- BATTERYLEVEL_3_4: LCD GLASS Battery 3/4 Full
- BATTERYLEVEL_FULL: LCD GLASS Battery Full
- Return values:
-
None
Definition at line 380 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_BlinkConfig | ( | uint32_t | BlinkMode, |
uint32_t | BlinkFrequency | ||
) |
Configure the LCD Blink mode and Blink frequency.
- Parameters:
-
BlinkMode,: specifies the LCD blink mode. This parameter can be one of the following values: - LCD_BLINKMODE_OFF: Blink disabled
- LCD_BLINKMODE_SEG0_COM0: Blink enabled on SEG[0], COM[0] (1 pixel)
- LCD_BLINKMODE_SEG0_ALLCOM: Blink enabled on SEG[0], all COM (up to 8 pixels according to the programmed duty)
- LCD_BLINKMODE_ALLSEG_ALLCOM: Blink enabled on all SEG and all COM (all pixels)
BlinkFrequency,: specifies the LCD blink frequency. - LCD_BLINKFREQUENCY_DIV8: The Blink frequency = fLcd/8
- LCD_BLINKFREQUENCY_DIV16: The Blink frequency = fLcd/16
- LCD_BLINKFREQUENCY_DIV32: The Blink frequency = fLcd/32
- LCD_BLINKFREQUENCY_DIV64: The Blink frequency = fLcd/64
- LCD_BLINKFREQUENCY_DIV128: The Blink frequency = fLcd/128
- LCD_BLINKFREQUENCY_DIV256: The Blink frequency = fLcd/256
- LCD_BLINKFREQUENCY_DIV512: The Blink frequency = fLcd/512
- LCD_BLINKFREQUENCY_DIV1024: The Blink frequency = fLcd/1024
- Return values:
-
None
Definition at line 237 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_Clear | ( | void | ) |
Clear the whole LCD RAM buffer.
- Return values:
-
None
Definition at line 531 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_ClearBar | ( | uint32_t | BarId ) |
Clear one or several bar in LCD frame buffer.
- Parameters:
-
BarId,: specifies the LCD GLASS Bar to display This parameter can be combination of one of the following values: - LCD_BAR_0: LCD GLASS Bar 0
- LCD_BAR_1: LCD GLASS Bar 1
- LCD_BAR_2: LCD GLASS Bar 2
- LCD_BAR_3: LCD GLASS Bar 3
- Return values:
-
None
Definition at line 325 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_Contrast | ( | uint32_t | Contrast ) |
Configure the LCD contrast.
- Parameters:
-
Contrast,: specifies the LCD contrast value. This parameter can be one of the following values: - LCD_CONTRASTLEVEL_0: Maximum Voltage = 2.60V
- LCD_CONTRASTLEVEL_1: Maximum Voltage = 2.73V
- LCD_CONTRASTLEVEL_2: Maximum Voltage = 2.86V
- LCD_CONTRASTLEVEL_3: Maximum Voltage = 2.99V
- LCD_CONTRASTLEVEL_4: Maximum Voltage = 3.12V
- LCD_CONTRASTLEVEL_5: Maximum Voltage = 3.25V
- LCD_CONTRASTLEVEL_6: Maximum Voltage = 3.38V
- LCD_CONTRASTLEVEL_7: Maximum Voltage = 3.51V
- Return values:
-
None
Definition at line 256 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_DeInit | ( | void | ) |
DeInitialize the LCD GLASS relative GPIO port IOs and LCD peripheral.
- Return values:
-
None
Definition at line 208 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_DisplayBar | ( | uint32_t | BarId ) |
Display one or several bar in LCD frame buffer.
- Parameters:
-
BarId,: specifies the LCD GLASS Bar to display This parameter can be one of the following values: - BAR0: LCD GLASS Bar 0
- BAR0: LCD GLASS Bar 1
- BAR0: LCD GLASS Bar 2
- BAR0: LCD GLASS Bar 3
- Return values:
-
None
Definition at line 271 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_DisplayChar | ( | uint8_t * | ch, |
Point_Typedef | Point, | ||
DoublePoint_Typedef | Colon, | ||
DigitPosition_Typedef | Position | ||
) |
Write a character in the LCD RAM buffer.
- Parameters:
-
ch,: The character to display. Point,: A point to add in front of char. This parameter can be one of the following values: - POINT_OFF: No point to add in front of char.
- POINT_ON: Add a point in front of char.
Colon,: Flag indicating if a colon character has to be added in front of displayed character. This parameter can be one of the following values: - DOUBLEPOINT_OFF: No colon to add in back of char.
- DOUBLEPOINT_ON: Add an colon in back of char.
Position,: Position in the LCD of the character to write. This parameter can be any value in range [1:6].
- Return values:
-
None
- Note:
- Required preconditions: The LCD should be cleared before to start the write operation.
Definition at line 455 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_DisplayStrDeci | ( | uint16_t * | ptr ) |
Write a character string with decimal point in the LCD RAM buffer.
- Parameters:
-
ptr,: Pointer to string to display on the LCD Glass.
- Return values:
-
None
- Note:
- Required preconditions: Char is ASCCI value "ORed" with decimal point or Colon flag
Definition at line 494 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_DisplayString | ( | uint8_t * | ptr ) |
Write a character string in the LCD RAM buffer.
- Parameters:
-
ptr,: Pointer to string to display on the LCD Glass.
- Return values:
-
None
Definition at line 468 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_Init | ( | void | ) |
Initialize the LCD GLASS relative GPIO port IOs and LCD peripheral.
- Return values:
-
None
Definition at line 177 of file stm32l476g_discovery_glass_lcd.c.
void BSP_LCD_GLASS_ScrollSentence | ( | uint8_t * | ptr, |
uint16_t | nScroll, | ||
uint16_t | ScrollSpeed | ||
) |
Display a string in scrolling mode.
- Parameters:
-
ptr,: Pointer to string to display on the LCD Glass. nScroll,: Specifies how many time the message will be scrolled ScrollSpeed : Specifies the speed of the scroll, low value gives higher speed
- Return values:
-
None
- Note:
- Required preconditions: The LCD should be cleared before to start the write operation.
Definition at line 546 of file stm32l476g_discovery_glass_lcd.c.
Generated on Tue Jul 12 2022 17:38:59 by
