graphlcd-base/glcddrivers/g15daemon.h
changeset 4 df6a40031aa5
equal deleted inserted replaced
3:d0e62fc47285 4:df6a40031aa5
       
     1 /*
       
     2  * GraphLCD driver library
       
     3  *
       
     4  * g15daemon.h  -  pseudo device for the g15daemon
       
     5  *                   Output goes to the g15daemon which then displays it
       
     6  *
       
     7  */
       
     8 
       
     9 #ifndef _GLCDDRIVERS_G15DAEMON_H_
       
    10 #define _GLCDDRIVERS_G15DAEMON_H_
       
    11 
       
    12 #include "driver.h"
       
    13 
       
    14 
       
    15 namespace GLCD
       
    16 {
       
    17 
       
    18 class cDriverConfig;
       
    19 
       
    20 class cDriverG15daemon : public cDriver
       
    21 {
       
    22 private:
       
    23     unsigned char ** LCD;
       
    24     cDriverConfig * config;
       
    25     cDriverConfig * oldConfig;
       
    26     char *offbuff;
       
    27     int sockfd;
       
    28     long int screensize;
       
    29     char *fbp;
       
    30     int zoom;
       
    31 
       
    32     int CheckSetup();
       
    33     void SetPixel(int x, int y);
       
    34 
       
    35 public:
       
    36     cDriverG15daemon(cDriverConfig * config);
       
    37     virtual ~cDriverG15daemon();
       
    38 
       
    39     virtual int Init();
       
    40     virtual int DeInit();
       
    41 
       
    42     virtual void Clear();
       
    43     virtual void Set8Pixels(int x, int y, unsigned char data);
       
    44     virtual void Refresh(bool refreshAll = false);
       
    45 };
       
    46 
       
    47 } // end of namespace
       
    48 
       
    49 #endif