RTEMS 6.1-rc1
Data Structures | Typedefs | Functions | Variables
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...
 

Typedefs

typedef struct _Font 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)
 
void LCD_DrawString (uint16_t *pCanvasBuffer, uint32_t dwX, uint32_t dwY, const uint8_t *pString, uint32_t color)
 

Variables

const Font gFont
 

Detailed Description

Interface for draw font on LCD.

Typedef Documentation

◆ Font

typedef struct _Font Font

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

Purpose

The font.h files declares a font structure and a LCDD_DrawChar function that must be implemented by a font definition file to be used with the LCDD_DrawString method of draw.h.

The font10x14.c implements the necessary variable and function for a 10x14 font.

Usage

  1. Declare a gFont global variable with the necessary Font information.
  2. Implement an LCDD_DrawChar function which displays the specified character on the LCD.
  3. Use the LCDD_DrawString method defined in draw.h to display a complete string.

Variable Documentation

◆ gFont

const Font gFont
extern

Global variable describing the font being instanced.