SAMV71 Xplained Ultra Software Package 1.3

lcd_font.c File Reference

#include "board.h"
#include <stdint.h>
#include <assert.h>

Go to the source code of this file.

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 = {10, 14}

Detailed Description

Implementation of draw font on LCD.

Definition in file lcd_font.c.


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 = {10, 14}

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