/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Enums-Check.h.zapt

#pragma once

#include <clusters/ColorControl/Enums.h>

namespace chip {
namespace app {
namespace Clusters {
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::ColorLoopActionEnum val) {
  using EnumType = ColorControl::ColorLoopActionEnum;
  switch (val) {
  case EnumType::kDeactivate:
  case EnumType::kActivateFromColorLoopStartEnhancedHue:
  case EnumType::kActivateFromEnhancedCurrentHue:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::ColorLoopDirectionEnum val) {
  using EnumType = ColorControl::ColorLoopDirectionEnum;
  switch (val) {
  case EnumType::kDecrement:
  case EnumType::kIncrement:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::ColorModeEnum val) {
  using EnumType = ColorControl::ColorModeEnum;
  switch (val) {
  case EnumType::kCurrentHueAndCurrentSaturation:
  case EnumType::kCurrentXAndCurrentY:
  case EnumType::kColorTemperatureMireds:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::DirectionEnum val) {
  using EnumType = ColorControl::DirectionEnum;
  switch (val) {
  case EnumType::kShortest:
  case EnumType::kLongest:
  case EnumType::kUp:
  case EnumType::kDown:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::DriftCompensationEnum val) {
  using EnumType = ColorControl::DriftCompensationEnum;
  switch (val) {
  case EnumType::kNone:
  case EnumType::kOtherOrUnknown:
  case EnumType::kTemperatureMonitoring:
  case EnumType::kOpticalLuminanceMonitoringAndFeedback:
  case EnumType::kOpticalColorMonitoringAndFeedback:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::EnhancedColorModeEnum val) {
  using EnumType = ColorControl::EnhancedColorModeEnum;
  switch (val) {
  case EnumType::kCurrentHueAndCurrentSaturation:
  case EnumType::kCurrentXAndCurrentY:
  case EnumType::kColorTemperatureMireds:
  case EnumType::kEnhancedCurrentHueAndCurrentSaturation:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::MoveModeEnum val) {
  using EnumType = ColorControl::MoveModeEnum;
  switch (val) {
  case EnumType::kStop:
  case EnumType::kUp:
  case EnumType::kDown:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(ColorControl::StepModeEnum val) {
  using EnumType = ColorControl::StepModeEnum;
  switch (val) {
  case EnumType::kUp:
  case EnumType::kDown:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
} // namespace Clusters
} // namespace app
} // namespace chip
