STM32L073Z_EVAL BSP User Manual: stm32l073z_eval_glass_lcd.h File Reference

STM32L073Z EVAL BSP Drivers

stm32l073z_eval_glass_lcd.h File Reference

Header file for STM32L073Z_eval_glass_lcd.c module. More...

#include "stm32l073z_eval.h"

Go to the source code of this file.

Defines

#define SCROLL_SPEED   200
#define SCROLL_SPEED_L   400
#define SCROLL_NUM   1
#define DOT   0x8000 /* for add decimal point in string */
#define DOUBLE_DOT   0x4000 /* for add decimal point in string */

Enumerations

enum  Point_Typedef { POINT_OFF = 0, POINT_ON = 1 }
 LCD Glass point Warning: element values correspond to LCD Glass point. More...
enum  DoublePoint_Typedef { DOUBLEPOINT_OFF = 0, DOUBLEPOINT_ON = 1 }
 LCD Glass Double point Warning: element values correspond to LCD Glass Double point. More...
enum  BatteryLevel_TypeDef {
  BATTERYLEVEL_OFF = 0, BATTERYLEVEL_1_4 = 1, BATTERYLEVEL_1_2 = 2, BATTERYLEVEL_3_4 = 3,
  BATTERYLEVEL_FULL = 4
}
 LCD Glass Battery Level Warning: element values correspond to LCD Glass Battery Level. More...
enum  TemperatureLevel_TypeDef {
  TEMPERATURELEVEL_OFF = 0, TEMPERATURELEVEL_1 = 1, TEMPERATURELEVEL_2 = 2, TEMPERATURELEVEL_3 = 3,
  TEMPERATURELEVEL_4 = 4, TEMPERATURELEVEL_5 = 5, TEMPERATURELEVEL_6 = 6
}
 LCD Glass Temperature Level Warning: element values correspond to LCD Glass Temperature Level. More...
enum  ArrowDirection_TypeDef {
  ARROWDIRECTION_OFF = 0, ARROWDIRECTION_UP = 1, ARROWDIRECTION_DOWN = 2, ARROWDIRECTION_LEFT = 3,
  ARROWDIRECTION_RIGHT = 4
}
 LCD Glass Arrow Direction Warning: element values correspond to LCD Glass Arrow Direction. More...
enum  ValueUnit_TypeDef { VALUEUNIT_OFF = 0, VALUEUNIT_MILLIAMPERE = 1, VALUEUNIT_MICROAMPERE = 2, VALUEUNIT_NANOAMPERE = 3 }
 LCD Glass Value Unit Warning: element values correspond to LCD Glass Value Unit. More...
enum  Sign_TypeDef { SIGN_POSITIVE = 0, SIGN_NEGATIVE = 1 }
 LCD Glass Sign Warning: element values correspond to LCD Glass Sign. More...
enum  PixelRow_TypeDef {
  PIXELROW_1 = 1, PIXELROW_2 = 2, PIXELROW_3 = 3, PIXELROW_4 = 4,
  PIXELROW_5 = 5, PIXELROW_6 = 6, PIXELROW_7 = 7, PIXELROW_8 = 8,
  PIXELROW_9 = 9, PIXELROW_10 = 10
}
 LCD Glass Pixel Row Warning: element values correspond to LCD Glass Pixel Row. More...
enum  PixelColumn_TypeDef {
  PIXELCOLUMN_1 = 1, PIXELCOLUMN_2 = 2, PIXELCOLUMN_3 = 3, PIXELCOLUMN_4 = 4,
  PIXELCOLUMN_5 = 5, PIXELCOLUMN_6 = 6, PIXELCOLUMN_7 = 7, PIXELCOLUMN_8 = 8,
  PIXELCOLUMN_9 = 9, PIXELCOLUMN_10 = 10, PIXELCOLUMN_11 = 11, PIXELCOLUMN_12 = 12,
  PIXELCOLUMN_13 = 13, PIXELCOLUMN_14 = 14, PIXELCOLUMN_15 = 15, PIXELCOLUMN_16 = 16,
  PIXELCOLUMN_17 = 17, PIXELCOLUMN_18 = 18, PIXELCOLUMN_19 = 19
}
 LCD Glass Pixel Column Warning: element values correspond to LCD Glass Pixel Column. More...

Functions

void BSP_LCD_GLASS_Init (void)
 Configures the LCD GLASS relative GPIO port IOs and LCD peripheral.
void BSP_LCD_GLASS_Contrast (uint32_t Contrast)
 LCD contrast setting.
void BSP_LCD_GLASS_DisplayChar (uint8_t *Ch, Point_Typedef Point, DoublePoint_Typedef DoublePoint, uint8_t Position)
 This function writes a char in the LCD RAM.
void BSP_LCD_GLASS_DisplayString (uint8_t *ptr)
 This function writes a char in the LCD RAM.
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.
void BSP_LCD_GLASS_ClearChar (uint8_t position)
 This function Clear 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_ClearTextZone (void)
 This function Clears the LCD Glass Text Zone.
void BSP_LCD_GLASS_DisplayLogo (FunctionalState NewState)
 Configure ST Logo display.
void BSP_LCD_GLASS_ArrowConfig (ArrowDirection_TypeDef ArrowDirection)
 Configure the LCD ArrowDirection.
void BSP_LCD_GLASS_TemperatureConfig (TemperatureLevel_TypeDef Temperature)
 Configure the LCD Temperature level display .
void BSP_LCD_GLASS_ValueUnitConfig (ValueUnit_TypeDef ValueUnit)
 Configure the LCD Value Unit.
void BSP_LCD_GLASS_SignCmd (Sign_TypeDef Sign, FunctionalState NewState)
 Configure the LCD sign.
void BSP_LCD_GLASS_WriteMatrixPixel (PixelRow_TypeDef PixelRow, PixelColumn_TypeDef PixelColumn)
 Set Matrix Pixel on.
void BSP_LCD_GLASS_ClearMatrixPixel (PixelRow_TypeDef PixelRow, PixelColumn_TypeDef PixelColumn)
 Set Matrix Pixel off.
void BSP_LCD_GLASS_ScrollSentence (uint8_t *ptr, uint16_t nScroll, uint16_t ScrollSpeed)
 Display a string in scrolling mode.
void BSP_LCD_GLASS_BarLevelConfig (uint8_t BarLevel)
 Setting bar on LCD, writes bar value in LCD frame buffer.

Detailed Description

Header file for STM32L073Z_eval_glass_lcd.c module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2016 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 stm32l073z_eval_glass_lcd.h.

Generated on Mon Aug 28 2017 14:54:25 for STM32L073Z_EVAL BSP User Manual by   doxygen 1.7.6.1