equal
deleted
inserted
replaced
|
1 /* |
|
2 * GraphLCD driver library |
|
3 * |
|
4 * sed1520.h - SED1520 driver class |
|
5 * |
|
6 * This file is released under the GNU General Public License. Refer |
|
7 * to the COPYING file distributed with this package. |
|
8 * |
|
9 * (c) 2003 Andreas 'randy' Weinberger <vdr AT smue.org> |
|
10 */ |
|
11 |
|
12 #ifndef _GLCDDRIVERS_SED1520_H_ |
|
13 #define _GLCDDRIVERS_SED1520_H_ |
|
14 |
|
15 #include "driver.h" |
|
16 |
|
17 |
|
18 namespace GLCD |
|
19 { |
|
20 |
|
21 class cDriverConfig; |
|
22 class cParallelPort; |
|
23 |
|
24 class cDriverSED1520 : public cDriver |
|
25 { |
|
26 private: |
|
27 cParallelPort * port; |
|
28 unsigned char ** LCD; // linear lcd display "memory" |
|
29 unsigned char ** LCD_page; // paged lcd display "memory" |
|
30 int refreshCounter; |
|
31 long timeForPortCmdInNs; |
|
32 cDriverConfig * config; |
|
33 cDriverConfig * oldConfig; |
|
34 bool useSleepInit; |
|
35 |
|
36 int SEAD; |
|
37 int SEPA; |
|
38 int SEDS; |
|
39 int DION; |
|
40 int DIOF; |
|
41 |
|
42 int CS1LO; |
|
43 int CS2LO; |
|
44 int CS1HI; |
|
45 int CS2HI; |
|
46 |
|
47 int CDHI; |
|
48 int CDLO; |
|
49 |
|
50 int LED; |
|
51 int LEDHI; |
|
52 |
|
53 int CheckSetup(); |
|
54 int InitGraphic(); |
|
55 void SED1520Cmd(unsigned char data, int cmscd); |
|
56 void SED1520Data(unsigned char data, int datacs); |
|
57 |
|
58 public: |
|
59 cDriverSED1520(cDriverConfig * config); |
|
60 virtual ~cDriverSED1520(); |
|
61 |
|
62 virtual int Init(); |
|
63 virtual int DeInit(); |
|
64 |
|
65 virtual void Clear(); |
|
66 virtual void Set8Pixels(int x, int y, unsigned char data); |
|
67 virtual void Refresh(bool refreshAll = false); |
|
68 }; |
|
69 |
|
70 } // end of namespace |
|
71 |
|
72 #endif |