1
2
3
4
5
6
7
8
9 #ifndef _CHARLCD_H
10 #define _CHARLCD_H
11
12 struct charlcd {
13 const struct charlcd_ops *ops;
14 const unsigned char *char_conv;
15
16 int ifwidth;
17 int height;
18 int width;
19 int bwidth;
20 int hwidth;
21
22 void *drvdata;
23 };
24
25 struct charlcd_ops {
26
27 void (*write_cmd)(struct charlcd *lcd, int cmd);
28 void (*write_data)(struct charlcd *lcd, int data);
29
30
31 void (*write_cmd_raw4)(struct charlcd *lcd, int cmd);
32 void (*clear_fast)(struct charlcd *lcd);
33 void (*backlight)(struct charlcd *lcd, int on);
34 };
35
36 struct charlcd *charlcd_alloc(unsigned int drvdata_size);
37 void charlcd_free(struct charlcd *lcd);
38
39 int charlcd_register(struct charlcd *lcd);
40 int charlcd_unregister(struct charlcd *lcd);
41
42 void charlcd_poke(struct charlcd *lcd);
43
44 #endif