-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitmap_db.h
43 lines (37 loc) · 1.57 KB
/
bitmap_db.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**************************************************************************
*
* FILE NAME: bitmapDb.h
* FILE DESCRIPTION: Database of all bitmaps in the system
*
* FILE CREATION DATE: 24-07-2009
*
*==========================================================================
*
* Modification history:
* --------------------
* 01a,24jul09 erd written
*
***************************************************************************/
#ifndef __BITMAP_DB_H_
#define __BITMAP_DB_H_
#include <stdint.h>
// ==========================================================================
// structure definition
// ==========================================================================
// This structure describes a single character's display information
typedef struct
{
const uint8_t widthBits; // width, in bits (or pixels), of the character
const uint16_t offset; // offset of the character's bitmap, in bytes, into the the FONT_INFO's data array
} FONT_CHAR_INFO;
// Describes a single font
typedef struct
{
const uint8_t heightPages; // height, in pages (8 pixels), of the font's characters
const uint8_t startChar; // the first character in the font (e.g. in charInfo and data)
const uint8_t endChar; // the last character in the font
// const uint8_t spacePixels; // number of pixels that a space character takes up
const FONT_CHAR_INFO* charInfo; // pointer to array of char information
const uint8_t* data; // pointer to generated array of character visual representation
} FONT_INFO;
#endif /* __BITMAP_DB_H_ */