AtmoConnection.h

Go to the documentation of this file.
00001 /*
00002  * AtmoConnection.h: generic/abstract class defining all methods for the
00003  * communication with the hardware
00004  *
00005  * See the README.txt file for copyright information and how to reach the author(s).
00006  *
00007  * $Id$
00008  */
00009 #ifndef _AtmoConnection_h_
00010 #define _AtmoConnection_h_
00011 
00012 #include "AtmoDefs.h"
00013 #include "AtmoConfig.h"
00014 
00015 class CAtmoConnection
00016 {
00017 protected:
00018     CAtmoConfig *m_pAtmoConfig;
00019     int m_ChannelAssignment[ATMO_NUM_CHANNELS];
00020 
00021 public:
00022     CAtmoConnection(CAtmoConfig *cfg);
00023     virtual ~CAtmoConnection(void);
00024     virtual ATMO_BOOL OpenConnection() { return false; }
00025     virtual void CloseConnection() {};
00026     virtual ATMO_BOOL isOpen(void) { return false; }
00027 
00028     virtual ATMO_BOOL SendData(unsigned char numChannels,
00029                                int red[],
00030                                int green[],
00031                                int blue[]) { return false; }
00032 
00033     virtual ATMO_BOOL SendData(tColorPacket data) { return false; }
00034 
00035     virtual ATMO_BOOL setChannelColor(int channel, tRGBColor color) { return false; }
00036     virtual ATMO_BOOL setChannelValues(int numValues,unsigned char *channel_values) { return false; }
00037 
00038     virtual ATMO_BOOL HardwareWhiteAdjust(int global_gamma,
00039                                           int global_contrast,
00040                                           int contrast_red,
00041                                           int contrast_green,
00042                                           int contrast_blue,
00043                                           int gamma_red,
00044                                           int gamma_green,
00045                                           int gamma_blue,
00046                                           ATMO_BOOL storeToEeprom) { return false; }
00047 
00048     virtual void SetChannelAssignment(tChannelAssignment *ca);
00049 
00050 };
00051 
00052 #endif

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1