Coverage Report

Created: 2026-08-14 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/DeviceEnergyManagement/Attributes.h
Line
Count
Source
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Attributes.h.zapt
20
21
#pragma once
22
23
#include <app/ConcreteAttributePath.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <app/util/basic-types.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Attributes.h>
32
#include <clusters/shared/Enums.h>
33
#include <clusters/shared/Structs.h>
34
35
#include <clusters/DeviceEnergyManagement/AttributeIds.h>
36
#include <clusters/DeviceEnergyManagement/ClusterId.h>
37
#include <clusters/DeviceEnergyManagement/Enums.h>
38
#include <clusters/DeviceEnergyManagement/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace DeviceEnergyManagement {
44
namespace Attributes {
45
46
namespace ESAType {
47
struct TypeInfo
48
{
49
    using Type             = chip::app::Clusters::DeviceEnergyManagement::ESATypeEnum;
50
    using DecodableType    = chip::app::Clusters::DeviceEnergyManagement::ESATypeEnum;
51
    using DecodableArgType = chip::app::Clusters::DeviceEnergyManagement::ESATypeEnum;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ESAType::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace ESAType
58
namespace ESACanGenerate {
59
struct TypeInfo
60
{
61
    using Type             = bool;
62
    using DecodableType    = bool;
63
    using DecodableArgType = bool;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ESACanGenerate::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace ESACanGenerate
70
namespace ESAState {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::Clusters::DeviceEnergyManagement::ESAStateEnum;
74
    using DecodableType    = chip::app::Clusters::DeviceEnergyManagement::ESAStateEnum;
75
    using DecodableArgType = chip::app::Clusters::DeviceEnergyManagement::ESAStateEnum;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ESAState::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace ESAState
82
namespace AbsMinPower {
83
struct TypeInfo
84
{
85
    using Type             = int64_t;
86
    using DecodableType    = int64_t;
87
    using DecodableArgType = int64_t;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AbsMinPower::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace AbsMinPower
94
namespace AbsMaxPower {
95
struct TypeInfo
96
{
97
    using Type             = int64_t;
98
    using DecodableType    = int64_t;
99
    using DecodableArgType = int64_t;
100
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AbsMaxPower::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace AbsMaxPower
106
namespace PowerAdjustmentCapability {
107
struct TypeInfo
108
{
109
    using Type =
110
        chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::PowerAdjustCapabilityStruct::Type>;
111
    using DecodableType = chip::app::DataModel::Nullable<
112
        chip::app::Clusters::DeviceEnergyManagement::Structs::PowerAdjustCapabilityStruct::DecodableType>;
113
    using DecodableArgType = const chip::app::DataModel::Nullable<
114
        chip::app::Clusters::DeviceEnergyManagement::Structs::PowerAdjustCapabilityStruct::DecodableType> &;
115
116
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
117
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PowerAdjustmentCapability::Id; }
118
0
    static constexpr bool MustUseTimedWrite() { return false; }
119
};
120
} // namespace PowerAdjustmentCapability
121
namespace Forecast {
122
struct TypeInfo
123
{
124
    using Type = chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::ForecastStruct::Type>;
125
    using DecodableType =
126
        chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::ForecastStruct::DecodableType>;
127
    using DecodableArgType =
128
        const chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::ForecastStruct::DecodableType> &;
129
130
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
131
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Forecast::Id; }
132
0
    static constexpr bool MustUseTimedWrite() { return false; }
133
};
134
} // namespace Forecast
135
namespace OptOutState {
136
struct TypeInfo
137
{
138
    using Type             = chip::app::Clusters::DeviceEnergyManagement::OptOutStateEnum;
139
    using DecodableType    = chip::app::Clusters::DeviceEnergyManagement::OptOutStateEnum;
140
    using DecodableArgType = chip::app::Clusters::DeviceEnergyManagement::OptOutStateEnum;
141
142
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
143
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OptOutState::Id; }
144
0
    static constexpr bool MustUseTimedWrite() { return false; }
145
};
146
} // namespace OptOutState
147
namespace PowerRangeAdjustment {
148
struct TypeInfo
149
{
150
    using Type = chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::PowerRangeAdjustStruct::Type>;
151
    using DecodableType =
152
        chip::app::DataModel::Nullable<chip::app::Clusters::DeviceEnergyManagement::Structs::PowerRangeAdjustStruct::DecodableType>;
153
    using DecodableArgType = const chip::app::DataModel::Nullable<
154
        chip::app::Clusters::DeviceEnergyManagement::Structs::PowerRangeAdjustStruct::DecodableType> &;
155
156
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
157
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PowerRangeAdjustment::Id; }
158
0
    static constexpr bool MustUseTimedWrite() { return false; }
159
};
160
} // namespace PowerRangeAdjustment
161
namespace GeneratedCommandList {
162
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
163
{
164
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
165
};
166
} // namespace GeneratedCommandList
167
namespace AcceptedCommandList {
168
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
169
{
170
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
171
};
172
} // namespace AcceptedCommandList
173
namespace AttributeList {
174
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
175
{
176
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
177
};
178
} // namespace AttributeList
179
namespace FeatureMap {
180
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
181
{
182
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
183
};
184
} // namespace FeatureMap
185
namespace ClusterRevision {
186
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
187
{
188
0
    static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
189
};
190
} // namespace ClusterRevision
191
192
struct TypeInfo
193
{
194
    struct DecodableType
195
    {
196
0
        static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagement::Id; }
197
198
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
199
200
        Attributes::ESAType::TypeInfo::DecodableType ESAType =
201
            static_cast<chip::app::Clusters::DeviceEnergyManagement::ESATypeEnum>(0);
202
        Attributes::ESACanGenerate::TypeInfo::DecodableType ESACanGenerate = static_cast<bool>(0);
203
        Attributes::ESAState::TypeInfo::DecodableType ESAState =
204
            static_cast<chip::app::Clusters::DeviceEnergyManagement::ESAStateEnum>(0);
205
        Attributes::AbsMinPower::TypeInfo::DecodableType absMinPower = static_cast<int64_t>(0);
206
        Attributes::AbsMaxPower::TypeInfo::DecodableType absMaxPower = static_cast<int64_t>(0);
207
        Attributes::PowerAdjustmentCapability::TypeInfo::DecodableType powerAdjustmentCapability;
208
        Attributes::Forecast::TypeInfo::DecodableType forecast;
209
        Attributes::OptOutState::TypeInfo::DecodableType optOutState =
210
            static_cast<chip::app::Clusters::DeviceEnergyManagement::OptOutStateEnum>(0);
211
        Attributes::PowerRangeAdjustment::TypeInfo::DecodableType powerRangeAdjustment;
212
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
213
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
214
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
215
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
216
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
217
    };
218
};
219
} // namespace Attributes
220
} // namespace DeviceEnergyManagement
221
} // namespace Clusters
222
} // namespace app
223
} // namespace chip