blob: 284eaf8059ba157bc9db41aa15fcdc36eb8c179d [file] [log] [blame]
/*
*
* 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 ValveConfigurationAndControl {
// Enum for StatusCodeEnum
enum class StatusCodeEnum : uint8_t
{
kFailureDueToFault = 0x02,
// 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 = 0,
};
// Enum for ValveStateEnum
enum class ValveStateEnum : uint8_t
{
kClosed = 0x00,
kOpen = 0x01,
kTransitioning = 0x02,
// 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 = 3,
};
// Bitmap for Feature
enum class Feature : uint32_t
{
kTimeSync = 0x1,
kLevel = 0x2,
};
// Bitmap for ValveFaultBitmap
enum class ValveFaultBitmap : uint16_t
{
kGeneralFault = 0x1,
kBlocked = 0x2,
kLeaking = 0x4,
kNotConnected = 0x8,
kShortCircuit = 0x10,
kCurrentExceeded = 0x20,
};
} // namespace ValveConfigurationAndControl
} // namespace Clusters
} // namespace app
} // namespace chip