_BSP_User_Manual
|
Functions | |
uint8_t | BSP_LCD_Init (void) |
Initializes the LCD. | |
uint32_t | BSP_LCD_GetXSize (void) |
Gets the LCD X size. | |
uint32_t | BSP_LCD_GetYSize (void) |
Gets the LCD Y size. | |
uint16_t | BSP_LCD_GetTextColor (void) |
Gets the LCD text color. | |
uint16_t | BSP_LCD_GetBackColor (void) |
Gets the LCD background color. | |
void | BSP_LCD_SetTextColor (uint16_t Color) |
Sets the LCD text color. | |
void | BSP_LCD_SetBackColor (uint16_t Color) |
Sets the LCD background color. | |
void | BSP_LCD_SetFont (sFONT *pFonts) |
Sets the LCD text font. | |
sFONT * | BSP_LCD_GetFont (void) |
Gets the LCD text font. | |
void | BSP_LCD_Clear (uint16_t Color) |
Clears the hole LCD. | |
void | BSP_LCD_ClearStringLine (uint16_t Line) |
Clears the selected line. | |
void | BSP_LCD_DisplayChar (uint16_t Xpos, uint16_t Ypos, uint8_t Ascii) |
Displays one character. | |
void | BSP_LCD_DisplayStringAt (uint16_t Xpos, uint16_t Ypos, uint8_t *pText, Line_ModeTypdef Mode) |
Displays characters on the LCD. | |
void | BSP_LCD_DisplayStringAtLine (uint16_t Line, uint8_t *pText) |
Displays a character on the LCD. | |
uint16_t | BSP_LCD_ReadPixel (uint16_t Xpos, uint16_t Ypos) |
Reads an LCD pixel. | |
void | BSP_LCD_DrawHLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws an horizontal line. | |
void | BSP_LCD_DrawVLine (uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
Draws a vertical line. | |
void | BSP_LCD_DrawLine (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) |
Draws an uni-line (between two points). | |
void | BSP_LCD_DrawRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Draws a rectangle. | |
void | BSP_LCD_DrawCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
Draws a circle. | |
void | BSP_LCD_DrawPolygon (pPoint Points, uint16_t PointCount) |
Draws an poly-line (between many points). | |
void | BSP_LCD_DrawEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
Draws an ellipse on LCD. | |
void | BSP_LCD_DrawBitmap (uint16_t Xpos, uint16_t Ypos, uint8_t *pbmp) |
Draws a bitmap picture (16 bpp). | |
void | BSP_LCD_DrawRGBImage (uint16_t Xpos, uint16_t Ypos, uint16_t Xsize, uint16_t Ysize, uint8_t *pdata) |
Draws RGB Image (16 bpp). | |
void | BSP_LCD_FillRect (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
Draws a full rectangle. | |
void | BSP_LCD_FillCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius) |
Draws a full circle. | |
void | BSP_LCD_FillEllipse (int Xpos, int Ypos, int XRadius, int YRadius) |
Draws a full ellipse. | |
void | BSP_LCD_DisplayOn (void) |
Enables the display. | |
void | BSP_LCD_DisplayOff (void) |
Disables the display. | |
void | BSP_LCD_SetTextColor (__IO uint16_t Color) |
void | BSP_LCD_SetBackColor (__IO uint16_t Color) |
Function Documentation
void BSP_LCD_Clear | ( | uint16_t | Color | ) |
Clears the hole LCD.
Definition at line 258 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawHLine(), BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_ClearStringLine | ( | uint16_t | Line | ) |
Clears the selected line.
Definition at line 283 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor, BSP_LCD_FillRect(), BSP_LCD_GetXSize(), BSP_LCD_SetTextColor(), LCD_DrawPropTypeDef::pFont, and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_DisplayChar | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t | Ascii | ||
) |
Displays one character.
Definition at line 303 of file stm3210c_eval_lcd.c.
References LCD_DrawChar(), and LCD_DrawPropTypeDef::pFont.
Referenced by BSP_LCD_DisplayStringAt().
void BSP_LCD_DisplayOff | ( | void | ) |
void BSP_LCD_DisplayOn | ( | void | ) |
void BSP_LCD_DisplayStringAt | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t * | pText, | ||
Line_ModeTypdef | Mode | ||
) |
Displays characters on the LCD.
Definition at line 321 of file stm3210c_eval_lcd.c.
References BSP_LCD_DisplayChar(), BSP_LCD_GetXSize(), CENTER_MODE, LEFT_MODE, LCD_DrawPropTypeDef::pFont, and RIGHT_MODE.
Referenced by BSP_LCD_DisplayStringAtLine().
void BSP_LCD_DisplayStringAtLine | ( | uint16_t | Line, |
uint8_t * | pText | ||
) |
Displays a character on the LCD.
Definition at line 380 of file stm3210c_eval_lcd.c.
References BSP_LCD_DisplayStringAt(), and LEFT_MODE.
void BSP_LCD_DrawBitmap | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint8_t * | pbmp | ||
) |
Draws a bitmap picture (16 bpp).
Definition at line 664 of file stm3210c_eval_lcd.c.
References BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), lcd_drv, and LCD_SetDisplayWindow().
Referenced by LCD_DrawChar().
void BSP_LCD_DrawCircle | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius | ||
) |
Draws a circle.
Definition at line 552 of file stm3210c_eval_lcd.c.
References BSP_LCD_SetFont(), LCD_DEFAULT_FONT, LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_FillCircle().
void BSP_LCD_DrawEllipse | ( | int | Xpos, |
int | Ypos, | ||
int | XRadius, | ||
int | YRadius | ||
) |
Draws an ellipse on LCD.
Definition at line 631 of file stm3210c_eval_lcd.c.
References LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_DrawHLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws an horizontal line.
Definition at line 410 of file stm3210c_eval_lcd.c.
References LCD_DrawPixel(), lcd_drv, and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_Clear(), BSP_LCD_DrawRect(), BSP_LCD_FillCircle(), BSP_LCD_FillEllipse(), and BSP_LCD_FillRect().
void BSP_LCD_DrawLine | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2 | ||
) |
Draws an uni-line (between two points).
Definition at line 459 of file stm3210c_eval_lcd.c.
References ABS, LCD_DrawPixel(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_DrawPolygon().
void BSP_LCD_DrawPolygon | ( | pPoint | Points, |
uint16_t | PointCount | ||
) |
Draws an poly-line (between many points).
Definition at line 602 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawLine(), Point::X, and Point::Y.
void BSP_LCD_DrawRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Draws a rectangle.
Definition at line 534 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawHLine(), and BSP_LCD_DrawVLine().
void BSP_LCD_DrawRGBImage | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Xsize, | ||
uint16_t | Ysize, | ||
uint8_t * | pdata | ||
) |
Draws RGB Image (16 bpp).
Definition at line 696 of file stm3210c_eval_lcd.c.
References BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), lcd_drv, and LCD_SetDisplayWindow().
void BSP_LCD_DrawVLine | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Length | ||
) |
Draws a vertical line.
Definition at line 434 of file stm3210c_eval_lcd.c.
References LCD_DrawPixel(), lcd_drv, and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_DrawRect().
void BSP_LCD_FillCircle | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius | ||
) |
Draws a full circle.
Definition at line 733 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawCircle(), BSP_LCD_DrawHLine(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
void BSP_LCD_FillEllipse | ( | int | Xpos, |
int | Ypos, | ||
int | XRadius, | ||
int | YRadius | ||
) |
Draws a full ellipse.
Definition at line 783 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawHLine().
void BSP_LCD_FillRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Width, | ||
uint16_t | Height | ||
) |
Draws a full rectangle.
Definition at line 716 of file stm3210c_eval_lcd.c.
References BSP_LCD_DrawHLine(), BSP_LCD_SetTextColor(), and LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_ClearStringLine().
uint16_t BSP_LCD_GetBackColor | ( | void | ) |
Gets the LCD background color.
Definition at line 209 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor.
sFONT * BSP_LCD_GetFont | ( | void | ) |
Gets the LCD text font.
Definition at line 248 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::pFont.
uint16_t BSP_LCD_GetTextColor | ( | void | ) |
Gets the LCD text color.
Definition at line 200 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::TextColor.
uint32_t BSP_LCD_GetXSize | ( | void | ) |
Gets the LCD X size.
Definition at line 182 of file stm3210c_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_Clear(), BSP_LCD_ClearStringLine(), BSP_LCD_DisplayStringAt(), BSP_LCD_DrawBitmap(), and BSP_LCD_DrawRGBImage().
uint32_t BSP_LCD_GetYSize | ( | void | ) |
Gets the LCD Y size.
Definition at line 191 of file stm3210c_eval_lcd.c.
References lcd_drv.
Referenced by BSP_LCD_Clear(), BSP_LCD_DrawBitmap(), and BSP_LCD_DrawRGBImage().
uint8_t BSP_LCD_Init | ( | void | ) |
Initializes the LCD.
Definition at line 141 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor, BSP_LCD_SetFont(), LCD_DEFAULT_FONT, lcd_drv, LCD_ERROR, LCD_OK, LCD_DrawPropTypeDef::pFont, and LCD_DrawPropTypeDef::TextColor.
uint16_t BSP_LCD_ReadPixel | ( | uint16_t | Xpos, |
uint16_t | Ypos | ||
) |
void BSP_LCD_SetBackColor | ( | __IO uint16_t | Color | ) |
void BSP_LCD_SetBackColor | ( | uint16_t | Color | ) |
Sets the LCD background color.
Definition at line 229 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::BackColor.
void BSP_LCD_SetFont | ( | sFONT * | pFonts | ) |
Sets the LCD text font.
Definition at line 239 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::pFont.
Referenced by BSP_LCD_DrawCircle(), and BSP_LCD_Init().
void BSP_LCD_SetTextColor | ( | __IO uint16_t | Color | ) |
void BSP_LCD_SetTextColor | ( | uint16_t | Color | ) |
Sets the LCD text color.
Definition at line 219 of file stm3210c_eval_lcd.c.
References LCD_DrawPropTypeDef::TextColor.
Referenced by BSP_LCD_Clear(), BSP_LCD_ClearStringLine(), BSP_LCD_FillCircle(), and BSP_LCD_FillRect().
Generated on Thu Dec 11 2014 15:38:29 for _BSP_User_Manual by 1.7.5.1