Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / drivers / imon.h
blob908f8b64246b268bd9b54e4fa9d69b1ba0fdf6f4
1 /**
2 * Driver for Soundgraph/Ahanix/Silverstone/Uneed/Accent iMON IR/VFD Module
4 * In order to be able to use it, you have to get and install one of
5 * the following kernel modules:
6 * - standalone iMON VFD driver from http://venky.ws/projects/imon/
7 * - the iMON module included with LIRC ver. 0.7.1 or newer
8 * from http://www.lirc.org/
10 * Copyright (c) 2004, Venky Raju <dev@venky.ws>, original author of
11 * the LCDproc 0.4.5 iMON driver, the standalone and the LIRC kernel
12 * modules for the iMON IR/VFD at http://venky.ws/projects/imon/
13 * Inspired by:
14 * TextMode driver (LCDproc authors?)
15 * Sasem driver (Oliver Stabel)
17 * Copyright (c) 2005 Lucian Muresan <lucianm AT users.sourceforge.net>,
18 * porting the LCDproc 0.4.5 code to LCDproc 0.5
19 * Copyright (c) 2006 John Saunders, use graphics characters
21 * This source code is being released under the GPL.
22 * Please see the file COPYING in this package for details.
26 #ifndef IMON_H
27 #define IMON_H
29 #include "lcd.h"
31 MODULE_EXPORT int imon_init (Driver *drvthis);
32 MODULE_EXPORT void imon_close (Driver *drvthis);
33 MODULE_EXPORT int imon_width (Driver *drvthis);
34 MODULE_EXPORT int imon_height (Driver *drvthis);
35 MODULE_EXPORT int imon_cellwidth (Driver *drvthis);
36 MODULE_EXPORT int imon_cellheight (Driver *drvthis);
37 MODULE_EXPORT void imon_clear (Driver *drvthis);
38 MODULE_EXPORT void imon_flush (Driver *drvthis);
39 MODULE_EXPORT void imon_string (Driver *drvthis, int x, int y, const char string[]);
40 MODULE_EXPORT void imon_chr (Driver *drvthis, int x, int y, char c);
41 MODULE_EXPORT int imon_icon (Driver *drvthis, int x, int y, int icon);
42 MODULE_EXPORT const char *imon_get_info (Driver *drvthis);
43 MODULE_EXPORT void imon_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
44 MODULE_EXPORT void imon_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
46 /**
47 * these are not (yet?) supported by the iMON IR/VFD kernel module
49 //MODULE_EXPORT int imon_get_free_chars (Driver *drvthis);
50 //MODULE_EXPORT void imon_set_char (Driver *drvthis, int n, char *dat);
51 //MODULE_EXPORT void imon_num (Driver *drvthis, int x, int num);
52 //MODULE_EXPORT int imon_get_brightness(Driver *drvthis, int state);
53 //MODULE_EXPORT void imon_set_brightness(Driver *drvthis, int state, int promille);
54 //MODULE_EXPORT void imon_backlight(Driver *drvthis, int on);
56 #endif