STM32L476G-Discovery BSP User Manual
|
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 377 of file stm32l476g_discovery_glass_lcd.c.
References BATTERYLEVEL_1_2, BATTERYLEVEL_1_4, BATTERYLEVEL_3_4, BATTERYLEVEL_FULL, BATTERYLEVEL_OFF, LCD_BAR0_2_COM, LCD_BAR0_SEG, LCD_BAR1_3_COM, LCD_BAR1_SEG, LCD_BAR2_SEG, LCD_BAR3_SEG, LCDBar, and LCDHandle.
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 234 of file stm32l476g_discovery_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_Clear | ( | void | ) |
Clear the whole LCD RAM buffer.
- Return values:
-
None
Definition at line 528 of file stm32l476g_discovery_glass_lcd.c.
References LCDHandle.
Referenced by BSP_LCD_GLASS_Init(), and BSP_LCD_GLASS_ScrollSentence().
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 322 of file stm32l476g_discovery_glass_lcd.c.
References LCD_BAR0_2_COM, LCD_BAR0_SEG, LCD_BAR1_3_COM, LCD_BAR1_SEG, LCD_BAR2_SEG, LCD_BAR3_SEG, LCD_BAR_0, LCD_BAR_1, LCD_BAR_2, LCD_BAR_3, and LCDHandle.
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 253 of file stm32l476g_discovery_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_DeInit | ( | void | ) |
DeInitialize the LCD GLASS relative GPIO port IOs and LCD peripheral.
- Return values:
-
None
Definition at line 205 of file stm32l476g_discovery_glass_lcd.c.
References LCD_MspDeInit(), and LCDHandle.
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 268 of file stm32l476g_discovery_glass_lcd.c.
References LCD_BAR0_2_COM, LCD_BAR0_SEG, LCD_BAR1_3_COM, LCD_BAR1_SEG, LCD_BAR2_SEG, LCD_BAR3_SEG, LCD_BAR_0, LCD_BAR_1, LCD_BAR_2, LCD_BAR_3, and LCDHandle.
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 452 of file stm32l476g_discovery_glass_lcd.c.
References LCDHandle, and WriteChar().
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 491 of file stm32l476g_discovery_glass_lcd.c.
References DOT, DOUBLE_DOT, DOUBLEPOINT_OFF, DOUBLEPOINT_ON, LCD_DIGIT_POSITION_1, LCD_DIGIT_POSITION_6, LCDHandle, POINT_OFF, POINT_ON, and WriteChar().
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 465 of file stm32l476g_discovery_glass_lcd.c.
References DOUBLEPOINT_OFF, LCD_DIGIT_POSITION_1, LCD_DIGIT_POSITION_6, LCDHandle, POINT_OFF, and WriteChar().
Referenced by BSP_LCD_GLASS_ScrollSentence().
void BSP_LCD_GLASS_Init | ( | void | ) |
Initialize the LCD GLASS relative GPIO port IOs and LCD peripheral.
- Return values:
-
None
Definition at line 174 of file stm32l476g_discovery_glass_lcd.c.
References BSP_LCD_GLASS_Clear(), LCD_MspInit(), and LCDHandle.
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 543 of file stm32l476g_discovery_glass_lcd.c.
References bLCDGlass_KeyPressed, BSP_LCD_GLASS_Clear(), and BSP_LCD_GLASS_DisplayString().
Generated on Tue Jun 23 2015 17:15:46 for STM32L476G-Discovery BSP User Manual by 1.7.6.1