Files
lcdproc/server/drivers/MtxOrb.h
T

51 lines
1.7 KiB
C
Raw Normal View History

1999-12-09 23:15:14 +00:00
#ifndef MTXORB_H
#define MTXORB_H
2001-12-30 00:15:25 +00:00
#include "lcd.h"
1999-12-09 23:15:14 +00:00
MODULE_EXPORT int MtxOrb_init (Driver *drvthis);
2001-12-30 00:15:25 +00:00
MODULE_EXPORT void MtxOrb_close (Driver *drvthis);
MODULE_EXPORT int MtxOrb_width (Driver *drvthis);
MODULE_EXPORT int MtxOrb_height (Driver *drvthis);
MODULE_EXPORT void MtxOrb_clear (Driver *drvthis);
MODULE_EXPORT void MtxOrb_flush (Driver *drvthis);
MODULE_EXPORT void MtxOrb_string (Driver *drvthis, int x, int y, char *string);
MODULE_EXPORT void MtxOrb_chr (Driver *drvthis, int x, int y, char c);
1999-12-09 23:15:14 +00:00
2001-12-30 00:15:25 +00:00
MODULE_EXPORT void MtxOrb_set_char (Driver *drvthis, int n, char *dat);
MODULE_EXPORT int MtxOrb_get_contrast (Driver *drvthis);
MODULE_EXPORT void MtxOrb_set_contrast (Driver *drvthis, int promille);
MODULE_EXPORT void MtxOrb_backlight (Driver *drvthis, int on);
MODULE_EXPORT void MtxOrb_output (Driver *drvthis, int on);
MODULE_EXPORT char * MtxOrb_get_key (Driver *drvthis);
2001-12-30 00:15:25 +00:00
MODULE_EXPORT char * MtxOrb_get_info (Driver *drvthis);
2002-01-17 20:51:31 +00:00
MODULE_EXPORT void MtxOrb_num (Driver *drvthis, int x, int num);
2002-05-23 18:03:36 +00:00
MODULE_EXPORT int MtxOrb_icon (Driver *drvthis, int x, int y, int icon);
MODULE_EXPORT void MtxOrb_vbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void MtxOrb_hbar (Driver * drvthis, int x, int y, int len, int promille, int options);
2002-01-17 20:51:31 +00:00
2001-12-30 00:15:25 +00:00
#define DEFAULT_CONTRAST 480
2001-09-28 21:20:50 +00:00
#define DEFAULT_DEVICE "/dev/lcd"
#define DEFAULT_SPEED B19200
#define DEFAULT_LINEWRAP 1
#define DEFAULT_AUTOSCROLL 1
#define DEFAULT_CURSORBLINK 0
2001-12-30 00:15:25 +00:00
/* These are the keys for a (possibly) broken LK202-25...*/
#define KEY_UP 'I'
#define KEY_DOWN 'F'
#define KEY_LEFT 'K'
#define KEY_RIGHT 'A'
#define KEY_F1 'N'
/* TODO: add more if you've got any more ;) or correct the settings
* the actual translation is done in MtxOrb_getkey()
*/
1999-12-09 23:15:14 +00:00
#endif
2001-09-28 21:20:50 +00:00