2 * AtmoConnection.h: generic/abstract class defining all methods for the
3 * communication with the hardware
5 * See the README.txt file for copyright information and how to reach the author(s).
9 #ifndef _AtmoConnection_h_
10 #define _AtmoConnection_h_
13 #include "AtmoConfig.h"
18 CAtmoConfig *m_pAtmoConfig;
19 int m_ChannelAssignment[ATMO_NUM_CHANNELS];
22 CAtmoConnection(CAtmoConfig *cfg);
23 virtual ~CAtmoConnection(void);
24 virtual ATMO_BOOL OpenConnection() { return false; }
25 virtual void CloseConnection() {};
26 virtual ATMO_BOOL isOpen(void) { return false; }
28 virtual ATMO_BOOL SendData(unsigned char numChannels,
31 int blue[]) { return false; }
33 virtual ATMO_BOOL SendData(tColorPacket data) { return false; }
35 virtual ATMO_BOOL setChannelColor(int channel, tRGBColor color) { return false; }
36 virtual ATMO_BOOL setChannelValues(int numValues,unsigned char *channel_values) { return false; }
38 virtual ATMO_BOOL HardwareWhiteAdjust(int global_gamma,
46 ATMO_BOOL storeToEeprom) { return false; }
48 virtual void SetChannelAssignment(tChannelAssignment *ca);