OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / lcd / testsuite / hd-two-line.h
1 // hd-two-line.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_TWO_LINE_DEF_H
8 #define HD_TWO_LINE_DEF_H       1
9
10 #include "hd-tester.h"
11
12 class hd_two_line : public HD44780U_tester {
13 private:
14
15   enum {
16     DRAW_LOGO = LAST_BASE_STATE,
17     NO_DISPLAY,
18     SET_CURSOR,
19     MOVE_CURSOR,
20     SHIFT_CURSOR_LEFT,
21     SHIFT_CURSOR_RIGHT,
22     SHIFT_DISPLAY_LEFT,
23     SHIFT_DISPLAY_RIGHT,
24   };
25
26   void init();
27   void draw_logo();
28   void disable_display();
29   void enable_display();
30   void enable_cursor();
31   void move_cursor();
32   void shift_cursor_left();
33   void shift_cursor_right();
34   void shift_display_right();
35   void shift_display_left();
36
37   char curr_char;
38   int shift_count;
39
40   virtual void run( host_int_4 );
41
42 public:
43
44   hd_two_line() {}
45
46   ~hd_two_line() {}
47 };
48
49 #endif // HD_TWO_LINE_DEF_H