STM32L152C-Discovery BSP User Manual: stm32l152c_discovery_glass_lcd.c File Reference

STM32L152C-Discovery BSP Driver

stm32l152c_discovery_glass_lcd.c File Reference

This file includes the LCD Glass driver for LCD Module of STM32L152C-Discovery board. More...

Go to the source code of this file.

Defines

#define ASCII_CHAR_0   0x30 /* 0 */
#define ASCII_CHAR_AT_SYMBOL   0x40 /* @ */
#define ASCII_CHAR_LEFT_OPEN_BRACKET   0x5B /* [ */
#define ASCII_CHAR_APOSTROPHE   0x60 /* ` */
#define ASCII_CHAR_LEFT_OPEN_BRACE   0x7B /* ( */

Functions

static void Convert (uint8_t *Char, Point_Typedef Point, DoublePoint_Typedef DoublePoint)
 Converts an ascii char to the a LCD digit.
static void LCD_MspInit (LCD_HandleTypeDef *hlcd)
 LCD MSP Init.
static void LCD_MspDeInit (LCD_HandleTypeDef *hlcd)
 LCD MSP DeInit.
void BSP_LCD_GLASS_Init (void)
 Configures the LCD GLASS relative GPIO port IOs and LCD peripheral.
void BSP_LCD_GLASS_DeInit (void)
 Unconfigures the LCD GLASS relative GPIO port IOs and LCD peripheral.
void BSP_LCD_GLASS_BlinkConfig (uint32_t BlinkMode, uint32_t BlinkFrequency)
 Configures the LCD Blink mode and Blink frequency.
void BSP_LCD_GLASS_Contrast (uint32_t Contrast)
 LCD contrast setting.
void BSP_LCD_GLASS_DisplayBar (uint32_t BarId)
 Display one or several bar on LCD frame buffer.
void BSP_LCD_GLASS_ClearBar (uint32_t BarId)
 Clear one or several bar on LCD frame buffer.
void BSP_LCD_GLASS_BarLevelConfig (uint8_t BarLevel)
 Setting bar on LCD, writes bar value in LCD frame buffer.
void BSP_LCD_GLASS_WriteChar (uint8_t *ch, uint8_t Point, uint8_t Column, uint8_t Position)
 This function writes a char in the LCD frame buffer and update BAR LEVEL.
void BSP_LCD_GLASS_DisplayChar (uint8_t *ch, Point_Typedef Point, DoublePoint_Typedef Column, DigitPosition_Typedef Position)
 This function writes a char in the LCD RAM and do not update BAR level.
void BSP_LCD_GLASS_DisplayString (uint8_t *ptr)
 This function writes a char in the LCD RAM.
void BSP_LCD_GLASS_DisplayStrDeci (uint16_t *ptr)
 This function writes a char in the LCD RAM.
void BSP_LCD_GLASS_Clear (void)
 This function Clear the whole LCD RAM.
void BSP_LCD_GLASS_ScrollSentence (uint8_t *ptr, uint16_t nScroll, uint16_t ScrollSpeed)
 Display a string in scrolling mode.

Variables

__IO uint8_t bLCDGlass_KeyPressed = 0
LCD_HandleTypeDef LCDHandle
const uint16_t CapLetterMap [26]
const uint16_t NumberMap [10]
uint32_t Digit [4]
uint8_t LCDBar = BATTERYLEVEL_FULL

Detailed Description

This file includes the LCD Glass driver for LCD Module of STM32L152C-Discovery board.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l152c_discovery_glass_lcd.c.

Generated on Thu Aug 24 2017 17:55:24 for STM32L152C-Discovery BSP User Manual by   doxygen 1.7.6.1