/*
 *
 *    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.h.zapt

#pragma once

#include <clusters/shared/Enums.h>
#include <cstdint>

namespace chip {
namespace app {
namespace Clusters {
namespace ClosureControl {

// Enum for ClosureErrorEnum
enum class ClosureErrorEnum : uint8_t {
  kPhysicallyBlocked = 0x00,
  kBlockedBySensor = 0x01,
  kTemperatureLimited = 0x02,
  kMaintenanceRequired = 0x03,
  kInternalInterference = 0x04,
  // All received enum values that are not listed above will be mapped
  // to kUnknownEnumValue. This is a helper enum value that should only
  // be used by code to process how it handles receiving and unknown
  // enum value. This specific should never be transmitted.
  kUnknownEnumValue = 5,
};

// Enum for CurrentPositionEnum
enum class CurrentPositionEnum : uint8_t {
  kFullyClosed = 0x00,
  kFullyOpened = 0x01,
  kPartiallyOpened = 0x02,
  kOpenedForPedestrian = 0x03,
  kOpenedForVentilation = 0x04,
  kOpenedAtSignature = 0x05,
  // All received enum values that are not listed above will be mapped
  // to kUnknownEnumValue. This is a helper enum value that should only
  // be used by code to process how it handles receiving and unknown
  // enum value. This specific should never be transmitted.
  kUnknownEnumValue = 6,
};

// Enum for MainStateEnum
enum class MainStateEnum : uint8_t {
  kStopped = 0x00,
  kMoving = 0x01,
  kWaitingForMotion = 0x02,
  kError = 0x03,
  kCalibrating = 0x04,
  kProtected = 0x05,
  kDisengaged = 0x06,
  kSetupRequired = 0x07,
  // All received enum values that are not listed above will be mapped
  // to kUnknownEnumValue. This is a helper enum value that should only
  // be used by code to process how it handles receiving and unknown
  // enum value. This specific should never be transmitted.
  kUnknownEnumValue = 8,
};

// Enum for TargetPositionEnum
enum class TargetPositionEnum : uint8_t {
  kMoveToFullyClosed = 0x00,
  kMoveToFullyOpen = 0x01,
  kMoveToPedestrianPosition = 0x02,
  kMoveToVentilationPosition = 0x03,
  kMoveToSignaturePosition = 0x04,
  // All received enum values that are not listed above will be mapped
  // to kUnknownEnumValue. This is a helper enum value that should only
  // be used by code to process how it handles receiving and unknown
  // enum value. This specific should never be transmitted.
  kUnknownEnumValue = 5,
};

// Bitmap for Feature
enum class Feature : uint32_t {
  kPositioning = 0x1,
  kMotionLatching = 0x2,
  kInstantaneous = 0x4,
  kSpeed = 0x8,
  kVentilation = 0x10,
  kPedestrian = 0x20,
  kCalibration = 0x40,
  kProtection = 0x80,
  kManuallyOperable = 0x100,
};

// Bitmap for LatchControlModesBitmap
enum class LatchControlModesBitmap : uint8_t {
  kRemoteLatching = 0x1,
  kRemoteUnlatching = 0x2,
};
} // namespace ClosureControl
} // namespace Clusters
} // namespace app
} // namespace chip
