Files
lcdproc/server/drivers/CFontz.h
T

36 lines
1.3 KiB
C
Raw Normal View History

1999-12-09 23:15:14 +00:00
#ifndef CFONTZ_H
#define CFONTZ_H
2001-12-30 00:15:25 +00:00
#include "lcd.h"
1999-12-09 23:15:14 +00:00
#define DEFAULT_CELL_WIDTH 6
#define DEFAULT_CELL_HEIGHT 8
2001-12-30 00:15:25 +00:00
#define DEFAULT_CONTRAST 560
#define DEFAULT_DEVICE "/dev/lcd"
#define DEFAULT_SPEED B9600
#define DEFAULT_BRIGHTNESS 60
#define DEFAULT_OFFBRIGHTNESS 0
#define DEFAULT_SIZE "20x4"
2001-12-30 00:15:25 +00:00
2002-02-21 22:50:12 +00:00
MODULE_EXPORT int CFontz_init (Driver * drvthis, char *device);
2001-12-30 00:15:25 +00:00
MODULE_EXPORT void CFontz_close (Driver * drvthis);
MODULE_EXPORT int CFontz_width (Driver * drvthis);
MODULE_EXPORT int CFontz_height (Driver * drvthis);
MODULE_EXPORT void CFontz_clear (Driver * drvthis);
MODULE_EXPORT void CFontz_flush (Driver * drvthis);
MODULE_EXPORT void CFontz_string (Driver * drvthis, int x, int y, char string[]);
MODULE_EXPORT void CFontz_chr (Driver * drvthis, int x, int y, char c);
2002-02-08 00:14:10 +00:00
MODULE_EXPORT void CFontz_vbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void CFontz_hbar (Driver * drvthis, int x, int y, int len, int promille, int options);
2002-05-23 18:03:36 +00:00
MODULE_EXPORT int CFontz_icon(Driver * drvthis, int x, int y, int icon);
2001-12-30 00:15:25 +00:00
MODULE_EXPORT void CFontz_set_char (Driver * drvthis, int n, char *dat);
MODULE_EXPORT int CFontz_get_contrast (Driver * drvthis);
MODULE_EXPORT void CFontz_set_contrast (Driver * drvthis, int contrast);
MODULE_EXPORT void CFontz_backlight (Driver * drvthis, int on);
1999-12-09 23:15:14 +00:00
#endif