STM32L476G-Discovery BSP User Manual: stm32l476g_discovery_glass_lcd.c File Reference

STM32L476G-Discovery BSP

stm32l476g_discovery_glass_lcd.c File Reference

This file provides a set of functions needed to manage the LCD Glass driver for the STM32L476G-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 Colon)
 Convert an ascii char to the a LCD digit.
static void WriteChar (uint8_t *ch, Point_Typedef Point, DoublePoint_Typedef Colon, DigitPosition_Typedef Position)
 Write a character in the LCD frame buffer.
static void LCD_MspInit (LCD_HandleTypeDef *hlcd)
 Initialize the LCD MSP.
static void LCD_MspDeInit (LCD_HandleTypeDef *hlcd)
 DeInitialize the LCD MSP.
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.

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 provides a set of functions needed to manage the LCD Glass driver for the STM32L476G-Discovery board.

Author:
MCD Application Team
Version:
$VERSION$
Date:
$DATE$
Attention:

© COPYRIGHT(c) 2015 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 stm32l476g_discovery_glass_lcd.c.

Generated on Tue Jun 23 2015 17:15:45 for STM32L476G-Discovery BSP User Manual by   doxygen 1.7.6.1