File: serialPOS.h

package info (click to toggle)
lcdproc 0.5.7-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,056 kB
  • ctags: 6,533
  • sloc: ansic: 58,028; sh: 1,963; perl: 681; makefile: 484
file content (36 lines) | stat: -rw-r--r-- 1,578 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SERPOS_H
#define SERPOS_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);
MODULE_EXPORT void serialPOS_string (Driver *drvthis, int x, int y, const char string[]);
MODULE_EXPORT void serialPOS_chr (Driver *drvthis, int x, int y, char c);
MODULE_EXPORT const char * serialPOS_get_key (Driver *drvthis);

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);
MODULE_EXPORT void serialPOS_num (Driver *drvthis, int x, int num);
MODULE_EXPORT void serialPOS_cursor (Driver *drvthis, int x, int y, int state);

MODULE_EXPORT int  serialPOS_get_free_chars (Driver *drvthis);
//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 */