7 #ifndef __HiTechnicColorSensor_h__
8 #define __HiTechnicColorSensor_h__
10 #include "SensorBase.h"
11 #include "LiveWindow/LiveWindowSendable.h"
29 enum tColorMode {kActive = 0, kPassive = 1, kRaw = 3};
50 virtual std::string GetType();
58 static const uint8_t kAddress = 0x02;
59 static const uint8_t kManufacturerBaseRegister = 0x08;
60 static const uint8_t kManufacturerSize = 0x08;
61 static const uint8_t kSensorTypeBaseRegister = 0x10;
62 static const uint8_t kSensorTypeSize = 0x08;
63 static const uint8_t kModeRegister = 0x41;
64 static const uint8_t kColorRegister = 0x42;
65 static const uint8_t kRedRegister = 0x43;
66 static const uint8_t kGreenRegister = 0x44;
67 static const uint8_t kBlueRegister = 0x45;
68 static const uint8_t kRawRedRegister = 0x43;
69 static const uint8_t kRawGreenRegister = 0x45;
70 static const uint8_t kRawBlueRegister = 0x47;
virtual void StopLiveWindowMode()
Definition: HiTechnicColorSensor.cpp:385
uint8_t GetColor()
Definition: HiTechnicColorSensor.cpp:79
Definition: HiTechnicColorSensor.h:30
uint16_t GetRawGreen()
Definition: HiTechnicColorSensor.cpp:242
uint8_t GetBlue()
Definition: HiTechnicColorSensor.cpp:157
RGB GetRGB()
Definition: HiTechnicColorSensor.cpp:184
RGB GetRawRGB()
Definition: HiTechnicColorSensor.cpp:297
Definition: SensorBase.h:20
uint8_t GetGreen()
Definition: HiTechnicColorSensor.cpp:131
uint8_t GetRed()
Definition: HiTechnicColorSensor.cpp:105
virtual void InitTable(ITable *subtable)
Definition: HiTechnicColorSensor.cpp:346
virtual void UpdateTable()
Definition: HiTechnicColorSensor.cpp:354
Definition: HiTechnicColorSensor.h:26
virtual ITable * GetTable()
Definition: HiTechnicColorSensor.cpp:369
void SetMode(tColorMode mode)
Definition: HiTechnicColorSensor.cpp:327
uint16_t GetRawBlue()
Definition: HiTechnicColorSensor.cpp:268
virtual void StartLiveWindowMode()
Definition: HiTechnicColorSensor.cpp:377
uint16_t GetRawRed()
Definition: HiTechnicColorSensor.cpp:216
virtual ~HiTechnicColorSensor()
Definition: HiTechnicColorSensor.cpp:64
HiTechnicColorSensor(uint8_t moduleNumber)
Definition: HiTechnicColorSensor.cpp:33