Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / drivers / ms6931.h
blob11eb4671123dd803a51279ae34aa0a7e641a2b37
1 /* This is the LCDproc driver for MSI-6931 displays
2 as found in the following 1U rack servers by MSI:
3 MS-9202
4 MS-9205
5 MS-9211
7 Copyright (C) 2003, Marcel Pommer <marsellus at users dot sourceforge dot net>
9 The code is derived from the CFontz driver
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 */
25 #ifndef MS6931_H
26 #define MS6931_H
28 #include "lcd.h"
30 #define MS6931_DEF_DEVICE "/dev/ttyS1"
31 #define MS6931_DEF_SIZE "16x2"
32 #define MS6931_DEF_CELL_WIDTH 5
33 #define MS6931_DEF_CELL_HEIGHT 8
36 MODULE_EXPORT int ms6931_init (Driver *drvthis);
37 MODULE_EXPORT void ms6931_close (Driver *drvthis);
38 MODULE_EXPORT int ms6931_width (Driver *drvthis);
39 MODULE_EXPORT int ms6931_height(Driver *drvthis);
40 MODULE_EXPORT void ms6931_flush (Driver *drvthis);
42 MODULE_EXPORT int ms6931_get_contrast (Driver *drvthis);
43 MODULE_EXPORT void ms6931_set_contrast (Driver *drvthis, int promille);
44 MODULE_EXPORT void ms6931_backlight (Driver *drvthis, int on);
46 MODULE_EXPORT void ms6931_chr (Driver *drvthis, int x, int y, char c);
47 MODULE_EXPORT void ms6931_clear (Driver *drvthis);
48 MODULE_EXPORT void ms6931_string (Driver *drvthis, int x, int y, const char string[]);
49 MODULE_EXPORT const char *ms6931_get_key (Driver *drvthis);
50 MODULE_EXPORT void ms6931_hbar (Driver *drvthis, int x, int y, int len, int promille, int pattern);
51 MODULE_EXPORT void ms6931_heartbeat (Driver *drvthis, int state);
53 #endif /* ndef MS6931_H */