Coverage Report

Created: 2026-04-09 06:56

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/GeneralCommissioning/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/GeneralCommissioning/AttributeIds.h>
36
#include <clusters/GeneralCommissioning/ClusterId.h>
37
#include <clusters/GeneralCommissioning/Enums.h>
38
#include <clusters/GeneralCommissioning/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace GeneralCommissioning {
44
namespace Attributes {
45
46
namespace Breadcrumb {
47
struct TypeInfo
48
{
49
    using Type             = uint64_t;
50
    using DecodableType    = uint64_t;
51
    using DecodableArgType = uint64_t;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Breadcrumb::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace Breadcrumb
58
namespace BasicCommissioningInfo {
59
struct TypeInfo
60
{
61
    using Type             = chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfo::Type;
62
    using DecodableType    = chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfo::DecodableType;
63
    using DecodableArgType = const chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfo::DecodableType &;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::BasicCommissioningInfo::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace BasicCommissioningInfo
70
namespace RegulatoryConfig {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
74
    using DecodableType    = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
75
    using DecodableArgType = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RegulatoryConfig::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace RegulatoryConfig
82
namespace LocationCapability {
83
struct TypeInfo
84
{
85
    using Type             = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
86
    using DecodableType    = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
87
    using DecodableArgType = chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::LocationCapability::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace LocationCapability
94
namespace SupportsConcurrentConnection {
95
struct TypeInfo
96
{
97
    using Type             = bool;
98
    using DecodableType    = bool;
99
    using DecodableArgType = bool;
100
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SupportsConcurrentConnection::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace SupportsConcurrentConnection
106
namespace TCAcceptedVersion {
107
struct TypeInfo
108
{
109
    using Type             = uint16_t;
110
    using DecodableType    = uint16_t;
111
    using DecodableArgType = uint16_t;
112
113
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
114
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TCAcceptedVersion::Id; }
115
0
    static constexpr bool MustUseTimedWrite() { return false; }
116
};
117
} // namespace TCAcceptedVersion
118
namespace TCMinRequiredVersion {
119
struct TypeInfo
120
{
121
    using Type             = uint16_t;
122
    using DecodableType    = uint16_t;
123
    using DecodableArgType = uint16_t;
124
125
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
126
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TCMinRequiredVersion::Id; }
127
0
    static constexpr bool MustUseTimedWrite() { return false; }
128
};
129
} // namespace TCMinRequiredVersion
130
namespace TCAcknowledgements {
131
struct TypeInfo
132
{
133
    using Type             = uint16_t;
134
    using DecodableType    = uint16_t;
135
    using DecodableArgType = uint16_t;
136
137
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
138
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TCAcknowledgements::Id; }
139
0
    static constexpr bool MustUseTimedWrite() { return false; }
140
};
141
} // namespace TCAcknowledgements
142
namespace TCAcknowledgementsRequired {
143
struct TypeInfo
144
{
145
    using Type             = bool;
146
    using DecodableType    = bool;
147
    using DecodableArgType = bool;
148
149
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
150
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TCAcknowledgementsRequired::Id; }
151
0
    static constexpr bool MustUseTimedWrite() { return false; }
152
};
153
} // namespace TCAcknowledgementsRequired
154
namespace TCUpdateDeadline {
155
struct TypeInfo
156
{
157
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
158
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
159
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
160
161
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
162
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TCUpdateDeadline::Id; }
163
0
    static constexpr bool MustUseTimedWrite() { return false; }
164
};
165
} // namespace TCUpdateDeadline
166
namespace RecoveryIdentifier {
167
struct TypeInfo
168
{
169
    using Type             = chip::ByteSpan;
170
    using DecodableType    = chip::ByteSpan;
171
    using DecodableArgType = chip::ByteSpan;
172
173
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
174
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RecoveryIdentifier::Id; }
175
0
    static constexpr bool MustUseTimedWrite() { return false; }
176
0
    static constexpr size_t MaxLength() { return 8; }
177
};
178
} // namespace RecoveryIdentifier
179
namespace NetworkRecoveryReason {
180
struct TypeInfo
181
{
182
    using Type          = chip::app::DataModel::Nullable<chip::app::Clusters::GeneralCommissioning::NetworkRecoveryReasonEnum>;
183
    using DecodableType = chip::app::DataModel::Nullable<chip::app::Clusters::GeneralCommissioning::NetworkRecoveryReasonEnum>;
184
    using DecodableArgType =
185
        const chip::app::DataModel::Nullable<chip::app::Clusters::GeneralCommissioning::NetworkRecoveryReasonEnum> &;
186
187
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
188
0
    static constexpr AttributeId GetAttributeId() { return Attributes::NetworkRecoveryReason::Id; }
189
0
    static constexpr bool MustUseTimedWrite() { return false; }
190
};
191
} // namespace NetworkRecoveryReason
192
namespace IsCommissioningWithoutPower {
193
struct TypeInfo
194
{
195
    using Type             = bool;
196
    using DecodableType    = bool;
197
    using DecodableArgType = bool;
198
199
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
200
0
    static constexpr AttributeId GetAttributeId() { return Attributes::IsCommissioningWithoutPower::Id; }
201
0
    static constexpr bool MustUseTimedWrite() { return false; }
202
};
203
} // namespace IsCommissioningWithoutPower
204
namespace GeneratedCommandList {
205
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
206
{
207
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
208
};
209
} // namespace GeneratedCommandList
210
namespace AcceptedCommandList {
211
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
212
{
213
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
214
};
215
} // namespace AcceptedCommandList
216
namespace AttributeList {
217
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
218
{
219
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
220
};
221
} // namespace AttributeList
222
namespace FeatureMap {
223
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
224
{
225
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
226
};
227
} // namespace FeatureMap
228
namespace ClusterRevision {
229
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
230
{
231
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
232
};
233
} // namespace ClusterRevision
234
235
struct TypeInfo
236
{
237
    struct DecodableType
238
    {
239
0
        static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; }
240
241
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
242
243
        Attributes::Breadcrumb::TypeInfo::DecodableType breadcrumb = static_cast<uint64_t>(0);
244
        Attributes::BasicCommissioningInfo::TypeInfo::DecodableType basicCommissioningInfo;
245
        Attributes::RegulatoryConfig::TypeInfo::DecodableType regulatoryConfig =
246
            static_cast<chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum>(0);
247
        Attributes::LocationCapability::TypeInfo::DecodableType locationCapability =
248
            static_cast<chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum>(0);
249
        Attributes::SupportsConcurrentConnection::TypeInfo::DecodableType supportsConcurrentConnection = static_cast<bool>(0);
250
        Attributes::TCAcceptedVersion::TypeInfo::DecodableType TCAcceptedVersion                       = static_cast<uint16_t>(0);
251
        Attributes::TCMinRequiredVersion::TypeInfo::DecodableType TCMinRequiredVersion                 = static_cast<uint16_t>(0);
252
        Attributes::TCAcknowledgements::TypeInfo::DecodableType TCAcknowledgements                     = static_cast<uint16_t>(0);
253
        Attributes::TCAcknowledgementsRequired::TypeInfo::DecodableType TCAcknowledgementsRequired     = static_cast<bool>(0);
254
        Attributes::TCUpdateDeadline::TypeInfo::DecodableType TCUpdateDeadline;
255
        Attributes::RecoveryIdentifier::TypeInfo::DecodableType recoveryIdentifier;
256
        Attributes::NetworkRecoveryReason::TypeInfo::DecodableType networkRecoveryReason;
257
        Attributes::IsCommissioningWithoutPower::TypeInfo::DecodableType isCommissioningWithoutPower = static_cast<bool>(0);
258
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
259
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
260
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
261
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
262
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
263
    };
264
};
265
} // namespace Attributes
266
} // namespace GeneralCommissioning
267
} // namespace Clusters
268
} // namespace app
269
} // namespace chip