#include "board.h"#include <stdint.h>#include <string.h>#include <assert.h>Go to the source code of this file.
Functions | |
| COMPILER_ALIGNED (32) | |
| void | LCDD_SetUpdateWindowSize (rect rc) |
| void | LCDD_UpdateWindow (void) |
| void | LCDD_UpdatePartialWindow (uint8_t *pCanvasBuffer, uint32_t size) |
| void | LCDD_DrawRectangleWithFill (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, uint32_t dwWidth, uint32_t dwHeight, uint32_t dwColor) |
| uint32_t | LCDD_DrawCircle (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, uint32_t r, uint32_t color) |
| Draws a circle on LCD, at the given coordinates. | |
| uint32_t | LCD_DrawFilledCircle (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, uint32_t dwRadius, uint32_t color) |
| void | LCDD_DrawString (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, const uint8_t *pString, uint32_t color) |
| Draws a string inside a LCD buffer, at the given coordinates. | |
| void | LCDD_GetStringSize (const uint8_t *pString, uint32_t *pWidth, uint32_t *pHeight) |
| Returns the width & height in pixels that a string will occupy on the screen if drawn using LCDD_DrawString. | |
| void | LCDD_BitBlt (uint16_t *pCanvasBuffer, uint32_t dst_x, uint32_t dst_y, uint32_t dst_w, uint32_t dst_h, const LcdColor_t *src, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h) |
| void | LCDD_BitBltAlphaBlend (uint16_t *pCanvasBuffer, uint32_t dst_x, uint32_t dst_y, uint32_t dst_w, uint32_t dst_h, const LcdColor_t *src, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, uint32_t alpha) |
| void | LCDD_DrawImage (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, const LcdColor_t *pImage, uint32_t dwWidth, uint32_t dwHeight) |
| void | LCDD_DrawPixel (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, uint32_t color) |
| Draw a pixel on LCD of given color. | |
| void | LCDD_DrawLine (uint16_t *pCanvasBuffer, uint32_t dwX1, uint32_t dwY1, uint32_t dwX2, uint32_t dwY2, uint32_t color) |
| void | LCDD_DrawStraightLine (uint16_t *pCanvasBuffer, uint32_t dwX1, uint32_t dwY1, uint32_t dwX2, uint32_t dwY2, uint32_t color) |
| uint32_t | LCDD_DrawLineBresenham (uint16_t *pCanvasBuffer, uint32_t dwX1, uint32_t dwY1, uint32_t dwX2, uint32_t dwY2, uint32_t color) |
| void | LCDD_DrawRectangle (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t color) |
| void | LCDD_SetCavasBuffer (void *pCanvasBuffer, uint32_t wBufferSize) |
Implementation of draw function on LCD, Include draw text, image and basic shapes (line, rectangle, circle).
Definition in file lcd_draw.c.
| uint32_t LCDD_DrawCircle | ( | uint16_t * | pCanvasBuffer, | |
| uint32_t | x, | |||
| uint32_t | y, | |||
| uint32_t | r, | |||
| uint32_t | color | |||
| ) |
Draws a circle on LCD, at the given coordinates.
| pCanvasBuffer | Pointer to dedicate canvas buffer. | |
| x | X-coordinate of circle centre. | |
| y | Y-coordinate of circle centre. | |
| r | circle radius. | |
| color | circle color. |
Definition at line 210 of file lcd_draw.c.

| void LCDD_DrawPixel | ( | uint16_t * | pCanvasBuffer, | |
| uint32_t | x, | |||
| uint32_t | y, | |||
| uint32_t | color | |||
| ) |
Draw a pixel on LCD of given color.
| pCanvasBuffer | Pointer to dedicate canvas buffer. | |
| x | X-coordinate of pixel. | |
| y | Y-coordinate of pixel. | |
| color | Pixel color. |
Definition at line 537 of file lcd_draw.c.
| void LCDD_DrawString | ( | uint16_t * | pCanvasBuffer, | |
| uint32_t | x, | |||
| uint32_t | y, | |||
| const uint8_t * | pString, | |||
| uint32_t | color | |||
| ) |
Draws a string inside a LCD buffer, at the given coordinates.
| pCanvasBuffer | Pointer to dedicate canvas buffer. | |
| x | X-coordinate of string top-left corner. | |
| y | Y-coordinate of string top-left corner. | |
| pString | String to display. | |
| color | String color. |
Definition at line 307 of file lcd_draw.c.

| void LCDD_GetStringSize | ( | const uint8_t * | pString, | |
| uint32_t * | pWidth, | |||
| uint32_t * | pHeight | |||
| ) |
Returns the width & height in pixels that a string will occupy on the screen if drawn using LCDD_DrawString.
| pString | String. | |
| pWidth | Pointer for storing the string width (optional). | |
| pHeight | Pointer for storing the string height (optional). |
Definition at line 335 of file lcd_draw.c.
1.7.1