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 3bb50db commit 33e6dcd
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/app/common/CompatEnumNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,35 +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 = to_underlying(ColorModeEnum::kCurrentHueAndCurrentSaturation),
kCurrentXAndCurrentY = to_underlying(ColorModeEnum::kCurrentXAndCurrentY),
kColorTemperature = to_underlying(ColorModeEnum::kColorTemperatureMireds),
kUnknownEnumValue = to_underlying(ColorModeEnum::kUnknownEnumValue)
};

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

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

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

using EnhancedColorMode = EnhancedColorModeEnum;
Expand Down

0 comments on commit 33e6dcd

Please sign in to comment.