STM32L476G_EVAL BSP User Manual
|
Functions | |
void | BSP_LCD_GLASS_Init (void) |
Configures 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_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_BarLevelConfig (uint8_t BarLevel) |
Setting bar on LCD, writes bar value in LCD frame buffer. | |
void | BSP_LCD_GLASS_ClearChar (uint8_t position) |
This function Clear a char in the LCD RAM. | |
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_ClearTextZone (void) |
This function Clears the LCD Glass Text Zone. | |
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. | |
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. |
Function Documentation
void BSP_LCD_GLASS_ArrowConfig | ( | ArrowDirection_TypeDef | ArrowDirection | ) |
Configure the LCD ArrowDirection.
- Parameters:
-
ArrowDirection,: Specify the ArrowDirection to set.
- Return values:
-
None
Definition at line 745 of file stm32l476g_eval_glass_lcd.c.
References ARROWDIRECTION_DOWN, ARROWDIRECTION_LEFT, ARROWDIRECTION_OFF, ARROWDIRECTION_RIGHT, ARROWDIRECTION_UP, and LCDHandle.
void BSP_LCD_GLASS_BarLevelConfig | ( | uint8_t | BarLevel | ) |
Setting bar on LCD, writes bar value in LCD frame buffer.
- Parameters:
-
BarLevel,: specifies the LCD GLASS Batery Level. This parameter can be one of the following values: - BATTERYLEVEL_OFF: LCD GLASS Batery Empty
- BATTERYLEVEL_1_4: LCD GLASS Batery 1/4 Full
- BATTERYLEVEL_1_2: LCD GLASS Batery 1/2 Full
- BATTERYLEVEL_3_4: LCD GLASS Batery 3/4 Full
- BATTERYLEVEL_FULL: LCD GLASS Batery Full
- Return values:
-
None
Definition at line 412 of file stm32l476g_eval_glass_lcd.c.
References BATTERYLEVEL_1_2, BATTERYLEVEL_1_4, BATTERYLEVEL_3_4, BATTERYLEVEL_FULL, BATTERYLEVEL_OFF, LCDBar, and LCDHandle.
Referenced by BSP_LCD_GLASS_WriteChar().
void BSP_LCD_GLASS_BlinkConfig | ( | uint32_t | BlinkMode, |
uint32_t | BlinkFrequency | ||
) |
Configures 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 235 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_Clear | ( | void | ) |
This function Clear the whole LCD RAM.
- Return values:
-
None
Definition at line 663 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_ClearChar | ( | uint8_t | position | ) |
This function Clear a char in the LCD RAM.
- Parameters:
-
position,: Position in the LCD of the caracter to write. This parameter can be any value in range [1:7].
- Return values:
-
None
Definition at line 478 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_ClearMatrixPixel | ( | PixelRow_TypeDef | PixelRow, |
PixelColumn_TypeDef | PixelColumn | ||
) |
Set Matrix Pixel off.
- Parameters:
-
PixelRow,: Specify Matrix Row. PixelColumn,: Specify Matrix Column.
- Return values:
-
None
Definition at line 2037 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle, PIXELCOLUMN_1, PIXELCOLUMN_10, PIXELCOLUMN_11, PIXELCOLUMN_12, PIXELCOLUMN_13, PIXELCOLUMN_14, PIXELCOLUMN_15, PIXELCOLUMN_16, PIXELCOLUMN_17, PIXELCOLUMN_18, PIXELCOLUMN_19, PIXELCOLUMN_2, PIXELCOLUMN_3, PIXELCOLUMN_4, PIXELCOLUMN_5, PIXELCOLUMN_6, PIXELCOLUMN_7, PIXELCOLUMN_8, PIXELCOLUMN_9, PIXELROW_1, PIXELROW_10, PIXELROW_2, PIXELROW_3, PIXELROW_4, PIXELROW_5, PIXELROW_6, PIXELROW_7, PIXELROW_8, and PIXELROW_9.
void BSP_LCD_GLASS_ClearTextZone | ( | void | ) |
This function Clears the LCD Glass Text Zone.
- Return values:
-
None
< Request LCD RAM update
Definition at line 609 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
Referenced by BSP_LCD_GLASS_ScrollSentence().
void BSP_LCD_GLASS_Contrast | ( | uint32_t | Contrast | ) |
LCD contrast setting.
- Parameters:
-
Contrast,: specifies the LCD Contrast. 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.26V
- LCD_CONTRASTLEVEL_6: Maximum Voltage = 3.40V
- LCD_CONTRASTLEVEL_7: Maximum Voltage = 3.55V
- Return values:
-
None
Definition at line 254 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
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.
- 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.
DoublePoint,: Flag indicating if a apostrophe has to be add 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 caracter to write. This parameter can be any value in range [1:7].
- Return values:
-
None
< LCD Write Char
Definition at line 575 of file stm32l476g_eval_glass_lcd.c.
References BSP_LCD_GLASS_WriteChar(), and LCDHandle.
void BSP_LCD_GLASS_DisplayLogo | ( | FunctionalState | NewState | ) |
Configure ST Logo display.
- Parameters:
-
NewState,: enable or disable the logo display .
- Return values:
-
None
Definition at line 723 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle.
void BSP_LCD_GLASS_DisplayStrDeci | ( | uint16_t * | ptr | ) |
This function writes a char in the LCD RAM.
- 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 Column flag
Definition at line 628 of file stm32l476g_eval_glass_lcd.c.
References BSP_LCD_GLASS_WriteChar(), DOT, DOUBLE_DOT, DOUBLEPOINT_OFF, DOUBLEPOINT_ON, POINT_OFF, and POINT_ON.
void BSP_LCD_GLASS_DisplayString | ( | uint8_t * | ptr | ) |
This function writes a char in the LCD RAM.
- Parameters:
-
ptr,: Pointer to string to display on the LCD Glass.
- Return values:
-
None
< Send the string character by character on lCD
< Display one character on LCD
< Point on the next character
< Increment the character counter
Definition at line 589 of file stm32l476g_eval_glass_lcd.c.
References BSP_LCD_GLASS_WriteChar().
Referenced by BSP_LCD_GLASS_ScrollSentence().
void BSP_LCD_GLASS_Init | ( | void | ) |
Configures the LCD GLASS relative GPIO port IOs and LCD peripheral.
- Return values:
-
None
Definition at line 191 of file stm32l476g_eval_glass_lcd.c.
References 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 : Speciifes 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 678 of file stm32l476g_eval_glass_lcd.c.
References BSP_LCD_GLASS_ClearTextZone(), and BSP_LCD_GLASS_DisplayString().
void BSP_LCD_GLASS_SignCmd | ( | Sign_TypeDef | Sign, |
FunctionalState | NewState | ||
) |
Configure the LCD sign.
- Parameters:
-
Sign,: indicate the sign to set. NewState,: enable or disable the Digit.
- Return values:
-
None
Definition at line 938 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle, SIGN_NEGATIVE, and SIGN_POSITIVE.
void BSP_LCD_GLASS_TemperatureConfig | ( | TemperatureLevel_TypeDef | Temperature | ) |
Configure the LCD Temperature level display .
- Parameters:
-
Temperature,: indicate the Temperature level to set.
- Return values:
-
None
Definition at line 795 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle, TEMPERATURELEVEL_1, TEMPERATURELEVEL_2, TEMPERATURELEVEL_3, TEMPERATURELEVEL_4, TEMPERATURELEVEL_5, TEMPERATURELEVEL_6, and TEMPERATURELEVEL_OFF.
void BSP_LCD_GLASS_ValueUnitConfig | ( | ValueUnit_TypeDef | ValueUnit | ) |
Configure the LCD Value Unit.
- Parameters:
-
ValueUnit,: indicate the Value Unit to set.
- Return values:
-
None
Definition at line 895 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle, VALUEUNIT_MICROAMPERE, VALUEUNIT_MILLIAMPERE, VALUEUNIT_NANOAMPERE, and VALUEUNIT_OFF.
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.
- Parameters:
-
ch,: the character to display. Point,: a point to add in front of char This parameter can be: POINT_OFF or POINT_ON Column,: flag indicating if a column has to be add in front of displayed character. This parameter can be: DOUBLEPOINT_OFF or DOUBLEPOINT_ON. Position,: position in the LCD of the caracter to write [1:7]
- Return values:
-
None
- Note:
- Required preconditions: The LCD should be cleared before to start the write operation.
Definition at line 272 of file stm32l476g_eval_glass_lcd.c.
References BSP_LCD_GLASS_BarLevelConfig(), Convert(), Digit, LCDBar, and LCDHandle.
Referenced by BSP_LCD_GLASS_DisplayChar(), BSP_LCD_GLASS_DisplayStrDeci(), and BSP_LCD_GLASS_DisplayString().
void BSP_LCD_GLASS_WriteMatrixPixel | ( | PixelRow_TypeDef | PixelRow, |
PixelColumn_TypeDef | PixelColumn | ||
) |
Set Matrix Pixel on.
- Parameters:
-
PixelRow,: Specify Matrix Row. PixelColumn,: Specify Matrix Column.
- Return values:
-
None
Definition at line 990 of file stm32l476g_eval_glass_lcd.c.
References LCDHandle, PIXELCOLUMN_1, PIXELCOLUMN_10, PIXELCOLUMN_11, PIXELCOLUMN_12, PIXELCOLUMN_13, PIXELCOLUMN_14, PIXELCOLUMN_15, PIXELCOLUMN_16, PIXELCOLUMN_17, PIXELCOLUMN_18, PIXELCOLUMN_19, PIXELCOLUMN_2, PIXELCOLUMN_3, PIXELCOLUMN_4, PIXELCOLUMN_5, PIXELCOLUMN_6, PIXELCOLUMN_7, PIXELCOLUMN_8, PIXELCOLUMN_9, PIXELROW_1, PIXELROW_10, PIXELROW_2, PIXELROW_3, PIXELROW_4, PIXELROW_5, PIXELROW_6, PIXELROW_7, PIXELROW_8, and PIXELROW_9.
Generated on Sun Jun 21 2015 23:46:42 for STM32L476G_EVAL BSP User Manual by
