OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / lcd / testsuite / hd-5X10.h
1 // hd-5X10.h - description.  -*- C++ -*-
2
3 // Copyright (C) 1999, 2000 Red Hat.
4 // This file is part of SID and is licensed under the GPL.
5 // See the file COPYING.SID for conditions for redistribution.
6
7 #ifndef HD_5X10_DEF_H
8 #define HD_5X10_DEF_H   1
9
10 #include "hd-tester.h"
11
12 class hd_5X10 : public HD44780U_tester {
13 private:
14
15   output_pin refresh;
16
17   enum {
18     INIT_2 = LAST_BASE_STATE,
19     INIT_3,
20     SCROLL_LEFT,
21     SCROLL_RIGHT,
22   };
23
24   void init();
25   void init_2();
26   void init_3();
27
28   void draw_char( uchar val );
29
30   char str[4];
31   int curr_char;
32
33   virtual void run( host_int_4 );
34
35 public:
36
37   hd_5X10() { add_pin( "force-refresh", &refresh ); }
38
39   ~hd_5X10() {}
40 };
41
42 #endif // HD44780U_TESTER_DEF_H