2 * AtmoCom.h: Class for communication with the serial hardware of Atmo Light,
3 * opens and configures the serial port
5 * See the README.txt file for copyright information and how to reach the author(s).
9 #ifndef _AtmoSerialConnection_h_
10 #define _AtmoSerialConnection_h_
13 #include "AtmoConnection.h"
14 #include "AtmoConfig.h"
21 class CAtmoSerialConnection : public CAtmoConnection {
26 DWORD m_dwLastWin32Error;
28 DWORD getLastError() { return m_dwLastWin32Error; }
32 CAtmoSerialConnection(CAtmoConfig *cfg);
33 virtual ~CAtmoSerialConnection(void);
35 virtual ATMO_BOOL OpenConnection();
37 virtual void CloseConnection();
39 virtual ATMO_BOOL isOpen(void);
41 virtual ATMO_BOOL SendData(unsigned char numChannels,
46 virtual ATMO_BOOL SendData(tColorPacket data);
48 virtual ATMO_BOOL HardwareWhiteAdjust(int global_gamma,
56 ATMO_BOOL storeToEeprom);