summaryrefslogtreecommitdiff
path: root/glcddrivers/dm140gink.h
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2010-02-28 12:21:54 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2010-02-28 12:21:54 +0100
commite9e2adc334176bb4297c3a79a2a40f3b45150fa4 (patch)
treef0ec46cf8932369abc69ae85417be4d5c5c5cd6a /glcddrivers/dm140gink.h
parentb19c06a5a115dcc13467fcc9e5e2272535e2399b (diff)
downloadgraphlcd-base-e9e2adc334176bb4297c3a79a2a40f3b45150fa4.tar.gz
graphlcd-base-e9e2adc334176bb4297c3a79a2a40f3b45150fa4.tar.bz2
added Futaba DM140 support
Diffstat (limited to 'glcddrivers/dm140gink.h')
-rw-r--r--glcddrivers/dm140gink.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/glcddrivers/dm140gink.h b/glcddrivers/dm140gink.h
new file mode 100644
index 0000000..526263a
--- /dev/null
+++ b/glcddrivers/dm140gink.h
@@ -0,0 +1,57 @@
+/*
+ * GraphLCD driver library
+ *
+ * framebuffer.h - framebuffer device
+ * Output goes to a framebuffer device
+ *
+ * This file is released under the GNU General Public License. Refer
+ * to the COPYING file distributed with this package.
+ *
+ * (c) 2004 Stephan Skrodzki
+ */
+
+#ifndef _GLCDDRIVERS_DM140GINK_H_
+#define _GLCDDRIVERS_DM140GINK_H_
+
+#include "driver.h"
+
+
+namespace GLCD
+{
+
+class cDriverConfig;
+
+class cDriverDM140GINK : public cDriver
+{
+private:
+ cDriverConfig * config;
+ cDriverConfig * oldConfig;
+
+ int fd;
+
+ int vendor;
+ int product;
+
+ char *framebuff;
+
+ long int screensize;
+
+ int SendReport(const char *buf, size_t size);
+ int CheckSetup();
+ void SetPixel(int x, int y);
+
+public:
+ cDriverDM140GINK(cDriverConfig * config);
+ virtual ~cDriverDM140GINK();
+
+ virtual int Init();
+ virtual int DeInit();
+
+ virtual void Clear();
+ virtual void Set8Pixels(int x, int y, unsigned char data);
+ virtual void Refresh(bool refreshAll = false);
+};
+
+} // end of namespace
+
+#endif