STM32L152C-Discovery BSP User Manual: Private Variables

STM32L152C-Discovery BSP Driver

STM32L152C-Discovery BSP User Manual
Private Variables

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

Variable Documentation

__IO uint8_t bLCDGlass_KeyPressed = 0

Definition at line 72 of file stm32l152c_discovery_glass_lcd.c.

Referenced by BSP_LCD_GLASS_ScrollSentence().

const uint16_t CapLetterMap[26]
Initial value:
    {
        
        0xFE00, 0x6714, 0x1D00, 0x4714, 0x9D00, 0x9C00, 0x3F00, 0xFA00, 0x0014,
        
        0x5300, 0x9841, 0x1900, 0x5A48, 0x5A09, 0x5F00, 0xFC00, 0x5F01, 0xFC01,
        
        0xAF00, 0x0414, 0x5b00, 0x18C0, 0x5A81, 0x00C9, 0x0058, 0x05C0
    }

Definition at line 123 of file stm32l152c_discovery_glass_lcd.c.

Referenced by Convert().

uint32_t Digit[4]

Definition at line 140 of file stm32l152c_discovery_glass_lcd.c.

Referenced by BSP_LCD_GLASS_DisplayChar(), and Convert().

LCD_HandleTypeDef LCDHandle
================================================================================
                              GLASS LCD MAPPING
================================================================================
LCD allows to display informations on six 14-segment digits and 4 bars:

  1       2       3       4       5       6
-----   -----   -----   -----   -----   -----   
|\|/| o |\|/| o |\|/| o |\|/| o |\|/|   |\|/|   BAR3
-- --   -- --   -- --   -- --   -- --   -- --   BAR2
|/|\| o |/|\| o |/|\| o |/|\| o |/|\|   |/|\|   BAR1
----- * ----- * ----- * ----- * -----   -----   BAR0

LCD segment mapping:
--------------------
  -----A-----        _ 
  |\   |   /|   COL |_|
  F H  J  K B          
  |  \ | /  |        _ 
  --G-- --M--   COL |_|
  |  / | \  |          
  E Q  P  N C          
  |/   |   \|        _ 
  -----D-----   DP  |_|

 An LCD character coding is based on the following matrix:
COM           0   1   2     3
SEG(n)      { E , D , P ,   N   }
SEG(n+1)    { M , C , COL , DP  }
SEG(23-n-1) { B , A , K ,   J   }
SEG(23-n)   { G , F , Q ,   H   }
with n positif odd number.

 The character 'A' for example is:
  -------------------------------
LSB   { 1 , 0 , 0 , 0   }
      { 1 , 1 , 0 , 0   }
      { 1 , 1 , 0 , 0   }
MSB   { 1 , 1 , 0 , 0   }
      -------------------
  'A' =  F    E   0   0 hexa

  

Definition at line 120 of file stm32l152c_discovery_glass_lcd.c.

Referenced by BSP_LCD_GLASS_BarLevelConfig(), BSP_LCD_GLASS_BlinkConfig(), BSP_LCD_GLASS_Clear(), BSP_LCD_GLASS_ClearBar(), BSP_LCD_GLASS_Contrast(), BSP_LCD_GLASS_DeInit(), BSP_LCD_GLASS_DisplayBar(), BSP_LCD_GLASS_DisplayChar(), and BSP_LCD_GLASS_Init().

const uint16_t NumberMap[10]
Initial value:
    {
        
        0x5F00,0x4200,0xF500,0x6700,0xEa00,0xAF00,0xBF00,0x04600,0xFF00,0xEF00
    }

Definition at line 134 of file stm32l152c_discovery_glass_lcd.c.

Referenced by Convert().

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