SAMV71 Xplained Ultra Software Package 1.3

lcd_font.h File Reference

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  Font
 Describes the font (width, height, supported characters, etc.) used by the LCD driver draw API. More...

Functions

void LCDD_DrawChar (uint16_t *pCanvasBuffer, uint32_t x, uint32_t y, uint8_t c, uint32_t color)
 Draws an ASCII character on LCD.
void LCD_DrawString (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, const uint8_t *pString, uint32_t color)
 Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honoured.

Variables

const Font gFont

Detailed Description

Interface for draw font on LCD.

Definition in file lcd_font.h.


Function Documentation

void LCD_DrawString ( uint16_t *  pCanvasBuffer,
uint32_t  dwX,
uint32_t  dwY,
const uint8_t *  pString,
uint32_t  color 
)

Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honoured.

Parameters:
pCanvasBuffer Pointer to dedicate canvas buffer.
dwX X-coordinate of string top-left corner.
dwY Y-coordinate of string top-left corner.
pString String to display.

Definition at line 97 of file lcd_font.c.

Here is the call graph for this function:

void LCDD_DrawChar ( uint16_t *  pCanvasBuffer,
uint32_t  x,
uint32_t  y,
uint8_t  c,
uint32_t  color 
)

Draws an ASCII character on LCD.

Parameters:
pCanvasBuffer Pointer to dedicate canvas buffer.
x X-coordinate of character upper-left corner.
y Y-coordinate of character upper-left corner.
c Character to output.
color Character color.

Definition at line 66 of file lcd_font.c.

Here is the call graph for this function:


Variable Documentation

const Font gFont

Global variable describing the font being instanced.

Global variable describing the font being instantiated.

Definition at line 51 of file lcd_font.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines