STM32100B_EVAL_LCD_Exported_Functions
[STM32100B_EVAL_LCD]

Functions

void LCD_Clear (uint16_t Color)
 Clears the hole LCD.
void LCD_ClearLine (uint8_t Line)
 Clears the selected line.
void LCD_ClosedPolyLine (pPoint Points, uint16_t PointCount)
 Displays a closed polyline (between many points).
void LCD_ClosedPolyLineRelative (pPoint Points, uint16_t PointCount)
 Displays a closed relative polyline (between many points).
void LCD_CtrlLinesConfig (void)
 Configures LCD control lines in Output Push-Pull mode.
void LCD_CtrlLinesWrite (GPIO_TypeDef *GPIOx, uint16_t CtrlPins, BitAction BitVal)
 Sets or reset LCD control lines.
void LCD_DeInit (void)
 DeInitializes the LCD.
void LCD_DisplayChar (uint8_t Line, uint16_t Column, uint8_t Ascii)
 Displays one character (16dots width, 24dots height).
void LCD_DisplayOff (void)
 Disables the Display.
void LCD_DisplayOn (void)
 Enables the Display.
void LCD_DisplayStringLine (uint8_t Line, uint8_t *ptr)
 Displays a maximum of 20 char on the LCD.
void LCD_DrawBMP (uint32_t BmpAddress)
void LCD_DrawChar (uint8_t Xpos, uint16_t Ypos, const uint16_t *c)
 Draws a character on LCD.
void LCD_DrawCircle (uint8_t Xpos, uint16_t Ypos, uint16_t Radius)
 Displays a circle.
void LCD_DrawFullCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius)
 Displays a full circle.
void LCD_DrawFullRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
 Displays a full rectangle.
void LCD_DrawLine (uint8_t Xpos, uint16_t Ypos, uint16_t Length, uint8_t Direction)
 Displays a line.
void LCD_DrawMonoPict (const uint32_t *Pict)
 Displays a monocolor picture.
void LCD_DrawRect (uint8_t Xpos, uint16_t Ypos, uint8_t Height, uint16_t Width)
 Displays a rectangle.
void LCD_DrawUniLine (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2)
 Displays an uni line (between two points).
void LCD_FillPolyLine (pPoint Points, uint16_t PointCount)
 Displays a full polyline (between many points).
void LCD_GetColors (__IO uint16_t *_TextColor, __IO uint16_t *_BackColor)
 Gets the LCD Text and Background colors.
sFONTLCD_GetFont (void)
 Gets the Text Font.
void LCD_nCS_StartByte (uint8_t Start_Byte)
 Reset LCD control line(/CS) and Send Start-Byte.
void LCD_PolyLine (pPoint Points, uint16_t PointCount)
 Displays an polyline (between many points).
void LCD_PolyLineRelative (pPoint Points, uint16_t PointCount)
 Displays a relative polyline (between many points).
void LCD_PowerOn (void)
 Power on the LCD.
uint16_t LCD_ReadReg (uint8_t LCD_Reg)
 Reads the selected LCD Register.
void LCD_SetBackColor (__IO uint16_t Color)
 Sets the Background color.
void LCD_SetColors (__IO uint16_t _TextColor, __IO uint16_t _BackColor)
 Sets the LCD Text and Background colors.
void LCD_SetCursor (uint8_t Xpos, uint16_t Ypos)
 Sets the cursor position.
void LCD_SetDisplayWindow (uint8_t Xpos, uint16_t Ypos, uint8_t Height, uint16_t Width)
 Sets a display window.
void LCD_SetFont (sFONT *fonts)
 Sets the Text Font.
void LCD_SetTextColor (__IO uint16_t Color)
 Sets the Text color.
void LCD_Setup (void)
 Setups the LCD.
void LCD_SPIConfig (void)
 Configures the LCD_SPI interface.
void LCD_WindowModeDisable (void)
 Disables LCD Window mode.
void LCD_WriteRAM (uint16_t RGB_Code)
 Writes to the LCD RAM.
void LCD_WriteRAM_Prepare (void)
 Prepare to write to the LCD RAM.
void LCD_WriteRAMWord (uint16_t RGB_Code)
 Writes 1 word to the LCD RAM.
void LCD_WriteReg (uint8_t LCD_Reg, uint16_t LCD_RegValue)
 Writes to the selected LCD register.
void LCD_WriteRegIndex (uint8_t LCD_Reg)
 Writes index to select the LCD register.
void STM32100B_LCD_Init (void)
 Initializes the LCD.

Function Documentation

void LCD_Clear ( uint16_t  Color  ) 

Clears the hole LCD.

Parameters:
Color,: the color of the background.
Return values:
None 

Definition at line 543 of file stm32100b_eval_lcd.c.

void LCD_ClearLine ( uint8_t  Line  ) 

Clears the selected line.

Parameters:
Line,: the Line to be cleared. This parameter can be one of the following values:

  • Linex: where x can be 0..n
Return values:
None 

Definition at line 524 of file stm32100b_eval_lcd.c.

void LCD_ClosedPolyLine ( pPoint  Points,
uint16_t  PointCount 
)

Displays a closed polyline (between many points).

Parameters:
Points,: pointer to the points array.
PointCount,: Number of points.
Return values:
None 

Definition at line 1235 of file stm32100b_eval_lcd.c.

void LCD_ClosedPolyLineRelative ( pPoint  Points,
uint16_t  PointCount 
)

Displays a closed relative polyline (between many points).

Parameters:
Points,: pointer to the points array.
PointCount,: Number of points.
Return values:
None 

Definition at line 1258 of file stm32100b_eval_lcd.c.

void LCD_CtrlLinesConfig ( void   ) 

Configures LCD control lines in Output Push-Pull mode.

Parameters:
None 
Return values:
None Configures LCD control lines in Output Push-Pull mode.
Parameters:
None 
Return values:
None 

Definition at line 1723 of file stm32100b_eval_lcd.c.

void LCD_CtrlLinesWrite ( GPIO_TypeDef GPIOx,
uint16_t  CtrlPins,
BitAction  BitVal 
)

Sets or reset LCD control lines.

Parameters:
GPIOx,: where x can be B or D to select the GPIO peripheral.
CtrlPins,: the Control line. This parameter can be:

  • LCD_NCS_PIN: Chip Select pin
  • LCD_NWR_PIN: Read/Write Selection pin
  • LCD_RS_PIN: Register/RAM Selection pin
BitVal,: specifies the value to be written to the selected bit. This parameter can be:

  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values:
None 
Parameters:
GPIOx,: where x can be B or D to select the GPIO peripheral.
CtrlPins,: the Control line. This parameter can be:

  • LCD_NCS_PIN: Chip Select pin
BitVal,: specifies the value to be written to the selected bit. This parameter can be:

  • Bit_RESET: to clear the port pin
  • Bit_SET: to set the port pin
Return values:
None 

Definition at line 1762 of file stm32100b_eval_lcd.c.

void LCD_DeInit ( void   ) 

DeInitializes the LCD.

Parameters:
None 
Return values:
None 

< LCD Display Off

< LCD_SPI disable

< LCD_SPI DeInit

< Disable SPI clock

< LCD Display Off

< LCD_SPI DeInit

< LCD Display Off

< LCD_SPI disable

< LCD_SPI DeInit

< Disable SPI clock

< LCD Display Off

< LCD_SPI disable

< LCD_SPI DeInit

< Disable SPI clock

< LCD Display Off

< LCD_SPI DeInit

Definition at line 115 of file stm32100b_eval_lcd.c.

void LCD_DisplayChar ( uint8_t  Line,
uint16_t  Column,
uint8_t  Ascii 
)

Displays one character (16dots width, 24dots height).

Parameters:
Line,: the Line where to display the character shape . This parameter can be one of the following values:

  • Linex: where x can be 0..9
Column,: start column address.
Ascii,: character ascii code, must be between 0x20 and 0x7E.
Return values:
None 

Definition at line 639 of file stm32100b_eval_lcd.c.

void LCD_DisplayOff ( void   ) 

Disables the Display.

Parameters:
None 
Return values:
None 

Definition at line 1701 of file stm32100b_eval_lcd.c.

void LCD_DisplayOn ( void   ) 

Enables the Display.

Parameters:
None 
Return values:
None 

Definition at line 1676 of file stm32100b_eval_lcd.c.

void LCD_DisplayStringLine ( uint8_t  Line,
uint8_t *  ptr 
)

Displays a maximum of 20 char on the LCD.

Parameters:
Line,: the Line where to display the character shape . This parameter can be one of the following values:

  • Linex: where x can be 0..9
*ptr,: pointer to string to display on LCD.
Return values:
None 

Definition at line 654 of file stm32100b_eval_lcd.c.

void LCD_DrawBMP ( uint32_t  BmpAddress  ) 
void LCD_DrawChar ( uint8_t  Xpos,
uint16_t  Ypos,
const uint16_t *  c 
)

Draws a character on LCD.

Parameters:
Xpos,: the Line where to display the character shape.
Ypos,: start column address.
c,: pointer to the character data.
Return values:
None 

Definition at line 592 of file stm32100b_eval_lcd.c.

void LCD_DrawCircle ( uint8_t  Xpos,
uint16_t  Ypos,
uint16_t  Radius 
)

Displays a circle.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Radius 
Return values:
None 

Definition at line 816 of file stm32100b_eval_lcd.c.

void LCD_DrawFullCircle ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  Radius 
)

Displays a full circle.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Radius 
Return values:
None 

Definition at line 1056 of file stm32100b_eval_lcd.c.

void LCD_DrawFullRect ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  Width,
uint16_t  Height 
)

Displays a full rectangle.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Height,: rectangle height.
Width,: rectangle width.
Return values:
None 

Definition at line 1025 of file stm32100b_eval_lcd.c.

void LCD_DrawLine ( uint8_t  Xpos,
uint16_t  Ypos,
uint16_t  Length,
uint8_t  Direction 
)

Displays a line.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Length,: line length.
Direction,: line direction. This parameter can be one of the following values: Vertical or Horizontal.
Return values:
None 

Definition at line 752 of file stm32100b_eval_lcd.c.

void LCD_DrawMonoPict ( const uint32_t *  Pict  ) 

Displays a monocolor picture.

Parameters:
Pict,: pointer to the picture array.
Return values:
None 

Definition at line 925 of file stm32100b_eval_lcd.c.

void LCD_DrawRect ( uint8_t  Xpos,
uint16_t  Ypos,
uint8_t  Height,
uint16_t  Width 
)

Displays a rectangle.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Height,: display rectangle height.
Width,: display rectangle width.
Return values:
None 

Definition at line 799 of file stm32100b_eval_lcd.c.

void LCD_DrawUniLine ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2 
)

Displays an uni line (between two points).

Parameters:
x1,: specifies the point 1 x position.
y1,: specifies the point 1 y position.
x2,: specifies the point 2 x position.
y2,: specifies the point 2 y position.
Return values:
None 

Definition at line 1106 of file stm32100b_eval_lcd.c.

void LCD_FillPolyLine ( pPoint  Points,
uint16_t  PointCount 
)

Displays a full polyline (between many points).

Parameters:
Points,: pointer to the points array.
PointCount,: Number of points.
Return values:
None 

Definition at line 1270 of file stm32100b_eval_lcd.c.

void LCD_GetColors ( __IO uint16_t *  _TextColor,
__IO uint16_t *  _BackColor 
)

Gets the LCD Text and Background colors.

Parameters:
_TextColor,: pointer to the variable that will contain the Text Color.
_BackColor,: pointer to the variable that will contain the Background Color.
Return values:
None 

Definition at line 471 of file stm32100b_eval_lcd.c.

sFONT* LCD_GetFont ( void   ) 

Gets the Text Font.

Parameters:
None. 
Return values:
the used font.

Definition at line 512 of file stm32100b_eval_lcd.c.

void LCD_nCS_StartByte ( uint8_t  Start_Byte  ) 

Reset LCD control line(/CS) and Send Start-Byte.

Parameters:
Start_Byte,: the Start-Byte to be sent
Return values:
None 

Definition at line 1376 of file stm32100b_eval_lcd.c.

void LCD_PolyLine ( pPoint  Points,
uint16_t  PointCount 
)

Displays an polyline (between many points).

Parameters:
Points,: pointer to the points array.
PointCount,: Number of points.
Return values:
None 

Definition at line 1179 of file stm32100b_eval_lcd.c.

void LCD_PolyLineRelative ( pPoint  Points,
uint16_t  PointCount 
)

Displays a relative polyline (between many points).

Parameters:
Points,: pointer to the points array.
PointCount,: Number of points.
Return values:
None 

Definition at line 1247 of file stm32100b_eval_lcd.c.

void LCD_PowerOn ( void   ) 

Power on the LCD.

Parameters:
None 
Return values:
None 

Definition at line 1628 of file stm32100b_eval_lcd.c.

uint16_t LCD_ReadReg ( uint8_t  LCD_Reg  ) 

Reads the selected LCD Register.

Parameters:
LCD_Reg,: address of the selected register.
Return values:
LCD Register Value.
Parameters:
None 
Return values:
LCD Register Value.

Definition at line 1451 of file stm32100b_eval_lcd.c.

void LCD_SetBackColor ( __IO uint16_t  Color  ) 

Sets the Background color.

Parameters:
Color,: specifies the Background color code RGB(5-6-5).
Return values:
None 

Definition at line 492 of file stm32100b_eval_lcd.c.

void LCD_SetColors ( __IO uint16_t  _TextColor,
__IO uint16_t  _BackColor 
)

Sets the LCD Text and Background colors.

Parameters:
_TextColor,: specifies the Text Color.
_BackColor,: specifies the Background Color.
Return values:
None 

Definition at line 457 of file stm32100b_eval_lcd.c.

void LCD_SetCursor ( uint8_t  Xpos,
uint16_t  Ypos 
)

Sets the cursor position.

Parameters:
Xpos,: specifies the X position.
Ypos,: specifies the Y position.
Return values:
None 

Definition at line 569 of file stm32100b_eval_lcd.c.

void LCD_SetDisplayWindow ( uint8_t  Xpos,
uint16_t  Ypos,
uint8_t  Height,
uint16_t  Width 
)

Sets a display window.

Parameters:
Xpos,: specifies the X buttom left position.
Ypos,: specifies the Y buttom left position.
Height,: display window height.
Width,: display window width.
Return values:
None 

Definition at line 679 of file stm32100b_eval_lcd.c.

void LCD_SetFont ( sFONT fonts  ) 

Sets the Text Font.

Parameters:
fonts,: specifies the font to be used.
Return values:
None 

Definition at line 502 of file stm32100b_eval_lcd.c.

void LCD_SetTextColor ( __IO uint16_t  Color  ) 

Sets the Text color.

Parameters:
Color,: specifies the Text color code RGB(5-6-5).
Return values:
None 

Definition at line 481 of file stm32100b_eval_lcd.c.

void LCD_Setup ( void   ) 

Setups the LCD.

Parameters:
None 
Return values:
None 

Definition at line 159 of file stm32100b_eval_lcd.c.

void LCD_SPIConfig ( void   ) 

Configures the LCD_SPI interface.

Parameters:
None 
Return values:
None 

Definition at line 1774 of file stm32100b_eval_lcd.c.

void LCD_WindowModeDisable ( void   ) 

Disables LCD Window mode.

Parameters:
None 
Return values:
None 

Definition at line 728 of file stm32100b_eval_lcd.c.

void LCD_WriteRAM ( uint16_t  RGB_Code  ) 

Writes to the LCD RAM.

Parameters:
RGB_Code,: the pixel color in RGB mode (5-6-5).
Return values:
None 

Definition at line 1593 of file stm32100b_eval_lcd.c.

void LCD_WriteRAM_Prepare ( void   ) 

Prepare to write to the LCD RAM.

Parameters:
None 
Return values:
None 

Definition at line 1517 of file stm32100b_eval_lcd.c.

void LCD_WriteRAMWord ( uint16_t  RGB_Code  ) 

Writes 1 word to the LCD RAM.

Parameters:
RGB_Code,: the pixel color in RGB mode (5-6-5).
Return values:
None 

Definition at line 1531 of file stm32100b_eval_lcd.c.

void LCD_WriteReg ( uint8_t  LCD_Reg,
uint16_t  LCD_RegValue 
)

Writes to the selected LCD register.

Parameters:
LCD_Reg,: address of the selected register.
LCD_RegValue,: value to write to the selected register.
Return values:
None 

Definition at line 1575 of file stm32100b_eval_lcd.c.

void LCD_WriteRegIndex ( uint8_t  LCD_Reg  ) 

Writes index to select the LCD register.

Parameters:
LCD_Reg,: address of the selected register.
Return values:
None 

Definition at line 1393 of file stm32100b_eval_lcd.c.

void STM32100B_LCD_Init ( void   ) 

Initializes the LCD.

Parameters:
None 
Return values:
None 

Definition at line 426 of file stm32100b_eval_lcd.c.

References LCD_DEFAULT_FONT, LCD_HX8312, LCD_ILI9320, LCD_ReadReg(), LCD_REG_0, LCD_SetFont(), LCD_Setup(), LCD_SPFD5408, and LCDType.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32