summaryrefslogtreecommitdiff
path: root/firmware/export/lcd-charcell.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/lcd-charcell.h')
-rw-r--r--firmware/export/lcd-charcell.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/firmware/export/lcd-charcell.h b/firmware/export/lcd-charcell.h
new file mode 100644
index 0000000000..2676056e63
--- /dev/null
+++ b/firmware/export/lcd-charcell.h
@@ -0,0 +1,41 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: lcd-player.c 12835 2007-03-18 17:58:49Z amiconn $
9 *
10 * Copyright (C) 2007 by Jens Arnold
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20/* map unicode characters to hardware or extended lcd characters */
21struct xchar_info {
22 unsigned short ucs;
23 unsigned short glyph;
24 /* 0x0000..0x7fff: fixed extended characters
25 * 0x8000..0xffff: variable extended characters
26 * Dontcare if priority == 0 */
27 unsigned char priority;
28 unsigned char hw_char; /* direct or substitute */
29};
30
31/* target dependent - to be adjusted for other charcell targets */
32#define HW_PATTERN_SIZE 7 /* number of bytes per pattern */
33#define MAX_HW_PATTERNS 8 /* max. number of user-definable hw patterns */
34extern int hw_pattern_count; /* actual number of user-definable hw patterns */
35
36extern const struct xchar_info *xchar_info;
37extern int xchar_info_size; /* number of entries */
38extern const unsigned char xfont_fixed[][8];
39
40void lcd_charset_init(void);
41