2002-04-10 23:06:45 +00:00
|
|
|
#ifndef CFONTZ633_H
|
|
|
|
|
#define CFONTZ633_H
|
|
|
|
|
|
|
|
|
|
#include "lcd.h"
|
|
|
|
|
|
2005-05-29 19:10:58 +00:00
|
|
|
#define DEFAULT_CELL_WIDTH 6
|
|
|
|
|
#define DEFAULT_CELL_HEIGHT 8
|
|
|
|
|
#define DEFAULT_CONTRAST 560
|
|
|
|
|
#define DEFAULT_DEVICE "/dev/lcd"
|
2005-07-03 15:25:55 +00:00
|
|
|
#define DEFAULT_SPEED 19200
|
|
|
|
|
#define DEFAULT_SPEED_CF631 115200
|
|
|
|
|
#define DEFAULT_SPEED_CF633 19200
|
|
|
|
|
#define DEFAULT_SPEED_CF635 115200
|
2005-06-12 16:25:50 +00:00
|
|
|
#define DEFAULT_BRIGHTNESS 1000
|
2005-05-29 19:10:58 +00:00
|
|
|
#define DEFAULT_OFFBRIGHTNESS 0
|
|
|
|
|
#define DEFAULT_SIZE "16x2"
|
|
|
|
|
#define DEFAULT_SIZE_CF631 "20x2"
|
2005-07-03 15:25:55 +00:00
|
|
|
#define DEFAULT_SIZE_CF633 "16x2"
|
|
|
|
|
#define DEFAULT_SIZE_CF635 "20x4"
|
2002-04-10 23:06:45 +00:00
|
|
|
|
|
|
|
|
|
2005-07-02 13:38:51 +00:00
|
|
|
MODULE_EXPORT int CFontz633_init (Driver *drvthis);
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT void CFontz633_close (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int CFontz633_width (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int CFontz633_height (Driver *drvthis);
|
2005-06-04 12:40:17 +00:00
|
|
|
MODULE_EXPORT int CFontz633_cellwidth (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int CFontz633_cellheight (Driver *drvthis);
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT void CFontz633_clear (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void CFontz633_flush (Driver *drvthis);
|
2007-04-02 21:29:53 +00:00
|
|
|
MODULE_EXPORT void CFontz633_string (Driver *drvthis, int x, int y, const char string[]);
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT void CFontz633_chr (Driver *drvthis, int x, int y, char c);
|
2006-04-06 13:25:14 +00:00
|
|
|
MODULE_EXPORT const char *CFontz633_get_key (Driver *drvthis);
|
2002-04-10 23:06:45 +00:00
|
|
|
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT void CFontz633_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
MODULE_EXPORT void CFontz633_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
MODULE_EXPORT void CFontz633_num (Driver *drvthis, int x, int num);
|
|
|
|
|
MODULE_EXPORT int CFontz633_icon(Driver *drvthis, int x, int y, int icon);
|
2002-04-10 23:06:45 +00:00
|
|
|
|
2006-04-26 10:00:20 +00:00
|
|
|
MODULE_EXPORT int CFontz633_iget_free_chars (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void CFontz633_set_char (Driver *drvthis, int n, unsigned char *dat);
|
2002-04-10 23:06:45 +00:00
|
|
|
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT int CFontz633_get_contrast (Driver *drvthis);
|
2005-06-12 16:25:50 +00:00
|
|
|
MODULE_EXPORT void CFontz633_set_contrast (Driver *drvthis, int promille);
|
|
|
|
|
MODULE_EXPORT int CFontz633_get_brightness (Driver *drvthis, int state);
|
|
|
|
|
MODULE_EXPORT void CFontz633_set_brightness (Driver *drvthis, int state, int promille);
|
2005-05-29 19:10:58 +00:00
|
|
|
MODULE_EXPORT void CFontz633_backlight (Driver *drvthis, int on);
|
2005-06-27 17:16:37 +00:00
|
|
|
MODULE_EXPORT void CFontz633_output (Driver *drvthis, int state);
|
2005-05-29 19:10:58 +00:00
|
|
|
|
|
|
|
|
#endif /* CFONTZ633_H */
|