2001-10-05 19:43:50 +00:00
|
|
|
/*
|
2000-02-21 11:23:08 +00:00
|
|
|
* Base driver module for Hitachi HD44780 based LCD displays. This is
|
|
|
|
|
* a modular driver that allows support for alternative HD44780
|
|
|
|
|
* designs to be added in a flexible and maintainable manner.
|
1999-12-09 23:15:14 +00:00
|
|
|
*
|
2000-02-21 11:23:08 +00:00
|
|
|
* This file is released under the GNU General Public License. Refer to the
|
|
|
|
|
* COPYING file distributed with this package.
|
1999-12-09 23:15:14 +00:00
|
|
|
*
|
2000-02-21 11:23:08 +00:00
|
|
|
* Copyright (c) 1999, 1995 Benjamin Tse <blt@Comports.com>
|
|
|
|
|
* 1999 Andrew McMeikan <andrewm@engineer.com>
|
|
|
|
|
* 1998 Richard Rognlie <rrognlie@gamerz.net>
|
2001-10-05 19:43:50 +00:00
|
|
|
*
|
|
|
|
|
1997 Matthias Prinke <m.prinke@trashcan.mcnet.de>
|
1999-12-09 23:15:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef HD44780_H
|
|
|
|
|
#define HD44780_H
|
|
|
|
|
|
2002-02-08 00:19:55 +00:00
|
|
|
#include "lcd.h"
|
|
|
|
|
|
2002-02-21 22:50:12 +00:00
|
|
|
MODULE_EXPORT int HD44780_init (struct lcd_logical_driver *driver, char *args);
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void HD44780_close (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int HD44780_width (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int HD44780_height (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void HD44780_clear (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void HD44780_flush (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void HD44780_string (Driver *drvthis, int x, int y, char *s);
|
|
|
|
|
MODULE_EXPORT void HD44780_chr (Driver *drvthis, int x, int y, char ch);
|
2001-11-01 00:37:12 +00:00
|
|
|
|
2002-01-16 17:57:24 +00:00
|
|
|
MODULE_EXPORT void HD44780_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
MODULE_EXPORT void HD44780_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void HD44780_num (Driver *drvthis, int x, int num);
|
2002-05-23 18:03:36 +00:00
|
|
|
MODULE_EXPORT int HD44780_icon (Driver *drvthis, int x, int y, int icon);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void HD44780_set_char (Driver *drvthis, int n, char *dat);
|
|
|
|
|
|
|
|
|
|
MODULE_EXPORT void HD44780_backlight (Driver *drvthis, int on);
|
2002-06-03 21:34:24 +00:00
|
|
|
MODULE_EXPORT void HD44780_output (Driver *drvthis, int state);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
2002-02-08 00:19:55 +00:00
|
|
|
MODULE_EXPORT char * HD44780_get_key (Driver *drvthis);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
2002-02-21 22:50:12 +00:00
|
|
|
static void HD44780_init_vbar (Driver *drvthis);
|
|
|
|
|
static void HD44780_init_hbar (Driver *drvthis);
|
|
|
|
|
static void HD44780_init_num (Driver *drvthis);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|