Debian Codegraph @

extras/graphic_lcd/src/osram.h

raw
1 /*
2 Copyright (C) 2007 T. Scott Dattalo
3
4 This file is part of gpsim.
5
6 gpsim is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 gpsim is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with gpsim; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifndef EXTRAS_GRAPHIC_LCD_SRC_OSRAM_H_
22 #define EXTRAS_GRAPHIC_LCD_SRC_OSRAM_H_
23
24 #include <gtk/gtk.h>
25
26 #include "glcd.h"
27
28 class SSD0323;
29 class Module;
30 class PortRegister;
31
32 // gpsim graphics LCD modules for OSRAM Pictivia(tm) OLED Displays
33 namespace OSRAM {
34
35 class SSD0323_InputPin;
36 class StateAttribute;
37
38 class PK27_Series : public gLCD_Module {
39 public:
40 explicit PK27_Series(const char *new_name);
41 ~PK27_Series();
42
43 static Module *construct(const char *new_name);
44 void Update(GtkWidget *pw = nullptr);
45 bool dataBusDirection();
46 /*
47 void UpdatePinState(ePins, char);
48 */
49 void create_iopin_map();
50 void create_widget();
51
52 private:
53 PortRegister *m_dataBus;
54 SSD0323_InputPin *m_CS;
55 SSD0323_InputPin *m_RES;
56 SSD0323_InputPin *m_DC;
57 SSD0323_InputPin *m_E;
58 SSD0323_InputPin *m_RW;
59 SSD0323_InputPin *m_BS1;
60 SSD0323_InputPin *m_BS2;
61 IO_bi_directional *io_bus[8];
62
63 SSD0323 *m_pSSD0323;
64
65 StateAttribute *m_state;
66 static gboolean lcd_expose_event(GtkWidget *widget, GdkEventExpose *event,
67 PK27_Series *pLCD);
68 };
69
70 } // End of OSRAM namespace
71
72
73 #endif // EXTRAS_GRAPHIC_LCD_SRC_OSRAM_H_