File: rawserial.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 (22 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LCD_rawserial_H
#define LCD_rawserial_H

#define DEFAULT_DEVICE		"/dev/cuaU0"
#define DISPLAY_DEFAULT_SIZE 	"40x4"

/* Default 9600 baud, 1 hz update rate, time resolution of 1 ms */
#define DEFAULT_SPEED		B9600
#define DEFAULT_UPDATE_RATE	1.0
#define SECOND_GRANULARITY	1000

MODULE_EXPORT int rawserial_init(Driver *drvthis);
MODULE_EXPORT void rawserial_close(Driver *drvthis);
MODULE_EXPORT int rawserial_width(Driver *drvthis);
MODULE_EXPORT int rawserial_height(Driver *drvthis);
MODULE_EXPORT void rawserial_clear(Driver *drvthis);
MODULE_EXPORT void rawserial_flush(Driver *drvthis);
MODULE_EXPORT void rawserial_string(Driver *drvthis, int x, int y, const char string[]);
MODULE_EXPORT void rawserial_chr(Driver *drvthis, int x, int y, char c);
MODULE_EXPORT const char *rawserial_get_info(Driver *drvthis);

#endif