Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / drivers / MtxOrb.h
blob32bd9d19423e8c294b59d7f35148dd19a5df835c
1 #ifndef MTXORB_H
2 #define MTXORB_H
4 #include "lcd.h"
6 #define DEFAULT_CONTRAST 480
7 #define DEFAULT_BRIGHTNESS 1000
8 #define DEFAULT_OFFBRIGHTNESS 0
9 #define DEFAULT_DEVICE "/dev/lcd"
10 #define DEFAULT_SPEED 19200
11 #define DEFAULT_LINEWRAP 1
12 #define DEFAULT_AUTOSCROLL 1
13 #define DEFAULT_CURSORBLINK 0
14 #define DEFAULT_SIZE "20x4"
15 #define DEFAULT_BACKLIGHT 1
16 #define DEFAULT_TYPE "lcd"
19 MODULE_EXPORT int MtxOrb_init (Driver *drvthis);
20 MODULE_EXPORT void MtxOrb_close (Driver *drvthis);
21 MODULE_EXPORT int MtxOrb_width (Driver *drvthis);
22 MODULE_EXPORT int MtxOrb_height (Driver *drvthis);
23 MODULE_EXPORT int MtxOrb_cellwidth (Driver *drvthis);
24 MODULE_EXPORT int MtxOrb_cellheight (Driver *drvthis);
25 MODULE_EXPORT void MtxOrb_clear (Driver *drvthis);
26 MODULE_EXPORT void MtxOrb_flush (Driver *drvthis);
27 MODULE_EXPORT void MtxOrb_string (Driver *drvthis, int x, int y, const char string[]);
28 MODULE_EXPORT void MtxOrb_chr (Driver *drvthis, int x, int y, char c);
29 MODULE_EXPORT const char * MtxOrb_get_key (Driver *drvthis);
31 MODULE_EXPORT void MtxOrb_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
32 MODULE_EXPORT void MtxOrb_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
33 MODULE_EXPORT int MtxOrb_icon (Driver *drvthis, int x, int y, int icon);
34 MODULE_EXPORT void MtxOrb_num (Driver *drvthis, int x, int num);
35 MODULE_EXPORT void MtxOrb_cursor (Driver *drvthis, int x, int y, int state);
37 MODULE_EXPORT int MtxOrb_get_free_chars (Driver *drvthis);
38 MODULE_EXPORT void MtxOrb_set_char (Driver *drvthis, int n, unsigned char *dat);
40 MODULE_EXPORT int MtxOrb_get_contrast (Driver *drvthis);
41 MODULE_EXPORT void MtxOrb_set_contrast (Driver *drvthis, int promille);
42 MODULE_EXPORT int MtxOrb_get_brightness(Driver *drvthis, int state);
43 MODULE_EXPORT void MtxOrb_set_brightness(Driver *drvthis, int state, int promille);
44 MODULE_EXPORT void MtxOrb_backlight (Driver *drvthis, int on);
45 MODULE_EXPORT void MtxOrb_output (Driver *drvthis, int state);
46 MODULE_EXPORT const char * MtxOrb_get_info (Driver *drvthis);
48 #endif /* MTXORB_H */