Skip to content

Commit

Permalink
added enum values in compatenum.h file
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Aug 21, 2024
1 parent 8dec909 commit 4e4448c
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/app/common/CompatEnumNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,29 +84,35 @@ namespace ColorControl {
// https://github.com/project-chip/connectedhomeip/pull/33612 renamed this
enum class ColorMode : uint8_t
{
kCurrentHueAndCurrentSaturation = ColorModeEnum::kCurrentHueAndCurrentSaturation kCurrentXAndCurrentY =
ColorModeEnum::kCurrentXAndCurrentY kColorTemperature = ColorModeEnum::kColorTemperatureMireds kUnknownEnumValue =
ColorModeEnum::kUnknownEnumValue
kCurrentHueAndCurrentSaturation = ColorModeEnum::kCurrentHueAndCurrentSaturation,
kCurrentXAndCurrentY = ColorModeEnum::kCurrentXAndCurrentY,
kColorTemperature = ColorModeEnum::kColorTemperatureMireds,
kUnknownEnumValue = ColorModeEnum::kUnknownEnumValue
};

enum class HueDirection : uint8_t
{
ShortestDistance = DirectionEnum::kShortest LongestDistance = DirectionEnum::kLongest Up = DirectionEnum::kUp Down =
DirectionEnum::kDown kUnknownEnumValue = DirectionEnum::kUnknownEnumValue
ShortestDistance = DirectionEnum::kShortest,
LongestDistance = DirectionEnum::kLongest,
Up = DirectionEnum::kUp,
Down =DirectionEnum::kDown,
kUnknownEnumValue = DirectionEnum::kUnknownEnumValue
};

enum class ColorCapabilities : uint16_t
{
ColorLoopSupported = ColorCapabilitiesBitmap::kColorLoop ColorTemperatureSupported =
ColorCapabilitiesBitmap::kColorTemperature EnhancedHueSupported =
ColorCapabilitiesBitmap::kEnhancedHue HueSaturationSupported =
ColorCapabilitiesBitmap::kHueSaturation XYAttributesSupported = ColorCapabilitiesBitmap::kXy
ColorLoopSupported = ColorCapabilitiesBitmap::kColorLoop,
ColorTemperatureSupported = ColorCapabilitiesBitmap::kColorTemperature,
EnhancedHueSupported = ColorCapabilitiesBitmap::kEnhancedHue,
HueSaturationSupported = ColorCapabilitiesBitmap::kHueSaturation,
XYAttributesSupported = ColorCapabilitiesBitmap::kXy
};

enum class ColorLoopDirection : uint8_t
{
DecrementHue = ColorLoopDirectionEnum::kDecrement IncrementHue = ColorLoopDirectionEnum::kIncrement kUnknownEnumValue =
ColorLoopDirectionEnum::kUnknownEnumValue
DecrementHue = ColorLoopDirectionEnum::kDecrement,
IncrementHue = ColorLoopDirectionEnum::kIncrement,
kUnknownEnumValue = ColorLoopDirectionEnum::kUnknownEnumValue
};

using EnhancedColorMode = EnhancedColorModeEnum;
Expand Down

0 comments on commit 4e4448c

Please sign in to comment.