2007-02-04 20:51:33 +00:00
|
|
|
#ifndef SERPOS_H
|
|
|
|
|
#define SERPOS_H
|
|
|
|
|
|
|
|
|
|
#include "lcd.h"
|
|
|
|
|
|
|
|
|
|
#define DEFAULT_DEVICE "/dev/Stty"
|
|
|
|
|
#define DEFAULT_SPEED 9800
|
|
|
|
|
#define DEFAULT_LINEWRAP 0
|
|
|
|
|
#define DEFAULT_AUTOSCROLL 0
|
|
|
|
|
#define DEFAULT_CURSORBLINK 0
|
|
|
|
|
#define DEFAULT_SIZE "16x2"
|
|
|
|
|
#define DEFAULT_TYPE "AEDEX"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MODULE_EXPORT int serialPOS_init (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void serialPOS_close (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int serialPOS_width (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int serialPOS_height (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int serialPOS_cellwidth (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT int serialPOS_cellheight (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void serialPOS_clear (Driver *drvthis);
|
|
|
|
|
MODULE_EXPORT void serialPOS_flush (Driver *drvthis);
|
2007-04-02 21:29:53 +00:00
|
|
|
MODULE_EXPORT void serialPOS_string (Driver *drvthis, int x, int y, const char string[]);
|
2007-02-04 20:51:33 +00:00
|
|
|
MODULE_EXPORT void serialPOS_chr (Driver *drvthis, int x, int y, char c);
|
|
|
|
|
MODULE_EXPORT const char * serialPOS_get_key (Driver *drvthis);
|
|
|
|
|
|
2007-04-02 21:29:53 +00:00
|
|
|
MODULE_EXPORT void serialPOS_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
MODULE_EXPORT void serialPOS_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
2007-02-04 20:51:33 +00:00
|
|
|
MODULE_EXPORT void serialPOS_num (Driver *drvthis, int x, int num);
|
|
|
|
|
MODULE_EXPORT void serialPOS_cursor (Driver *drvthis, int x, int y, int state);
|
|
|
|
|
|
2008-10-08 17:01:03 +00:00
|
|
|
MODULE_EXPORT int serialPOS_get_free_chars (Driver *drvthis);
|
2007-02-04 20:51:33 +00:00
|
|
|
//MODULE_EXPORT void serialPOS_set_char (Driver *drvthis, int n, unsigned char *dat);
|
|
|
|
|
|
|
|
|
|
MODULE_EXPORT void serialPOS_output (Driver *drvthis, int state);
|
|
|
|
|
MODULE_EXPORT const char * serialPOS_get_info (Driver *drvthis);
|
|
|
|
|
|
|
|
|
|
#endif /* serialPOS_H */
|