2011-02-10 22:48:57 +00:00
|
|
|
/**
|
|
|
|
|
* This is the header file of the LCDproc driver for the "LCDM001" device from
|
|
|
|
|
* kernelconcepts.de
|
|
|
|
|
*/
|
2001-12-08 19:51:41 +00:00
|
|
|
|
2011-02-10 22:48:57 +00:00
|
|
|
/*-
|
|
|
|
|
* Copyright (C) 2001 Rene Wagner <reenoo@gmx.de>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
|
|
|
*/
|
2001-12-08 19:51:41 +00:00
|
|
|
|
2001-10-01 21:52:41 +00:00
|
|
|
#ifndef LCDM001_H
|
|
|
|
|
#define LCDM001_H
|
|
|
|
|
|
2005-07-02 13:38:51 +00:00
|
|
|
MODULE_EXPORT int lcdm001_init (Driver *drvthis);
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void lcdm001_close (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int lcdm001_width (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int lcdm001_height (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void lcdm001_clear (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void lcdm001_flush (Driver *drvthis);
|
2007-04-02 21:29:53 +00:00
|
|
|
MODULE_EXPORT void lcdm001_string (Driver *drvthis, int x, int y, const char string[]);
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void lcdm001_chr (Driver *drvthis, int x, int y, char c);
|
|
|
|
|
|
2011-02-10 22:48:57 +00:00
|
|
|
MODULE_EXPORT void lcdm001_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
MODULE_EXPORT void lcdm001_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
2001-12-30 00:15:25 +00:00
|
|
|
MODULE_EXPORT void lcdm001_num (Driver *drvthis, int x, int num);
|
2011-02-10 22:48:57 +00:00
|
|
|
MODULE_EXPORT int lcdm001_icon (Driver *drvthis, int x, int y, int icon);
|
2001-12-30 00:15:25 +00:00
|
|
|
|
|
|
|
|
MODULE_EXPORT void lcdm001_output (Driver *drvthis, int on);
|
|
|
|
|
MODULE_EXPORT char lcdm001_getkey (Driver *drvthis);
|
2001-10-01 21:52:41 +00:00
|
|
|
|
|
|
|
|
#define DEFAULT_DEVICE "/dev/lcd"
|
2011-02-10 22:48:57 +00:00
|
|
|
#define DEFAULT_CURSORBLINK 0 /* cursor blinking off */
|
2001-10-02 20:53:39 +00:00
|
|
|
|
2011-02-10 22:48:57 +00:00
|
|
|
/*
|
|
|
|
|
* Use our own chars for the heartbeat instead of core's default. This
|
|
|
|
|
* combination is at least visible.
|
|
|
|
|
*/
|
|
|
|
|
#define LCDM001_OPEN_HEART ' '
|
|
|
|
|
#define LCDM001_FILLED_HEART '*'
|
2001-12-09 18:39:39 +00:00
|
|
|
|
|
|
|
|
#define LEFT_KEY '1'
|
|
|
|
|
#define RIGHT_KEY '2'
|
|
|
|
|
#define UP_KEY '3'
|
|
|
|
|
#define DOWN_KEY '4'
|
|
|
|
|
|
2001-10-01 21:52:41 +00:00
|
|
|
#endif
|