Coverage Report

Created: 2026-07-10 06:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/CommissioningProxy/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/CommissioningProxy/AttributeIds.h>
36
#include <clusters/CommissioningProxy/ClusterId.h>
37
#include <clusters/CommissioningProxy/Enums.h>
38
#include <clusters/CommissioningProxy/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace CommissioningProxy {
44
namespace Attributes {
45
46
namespace Transport {
47
struct TypeInfo
48
{
49
    using Type             = chip::BitMask<chip::app::Clusters::CommissioningProxy::CapabilitiesBitmap>;
50
    using DecodableType    = chip::BitMask<chip::app::Clusters::CommissioningProxy::CapabilitiesBitmap>;
51
    using DecodableArgType = chip::BitMask<chip::app::Clusters::CommissioningProxy::CapabilitiesBitmap>;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Transport::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace Transport
58
namespace ScanMaxTime {
59
struct TypeInfo
60
{
61
    using Type             = uint8_t;
62
    using DecodableType    = uint8_t;
63
    using DecodableArgType = uint8_t;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ScanMaxTime::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace ScanMaxTime
70
namespace MaxSessions {
71
struct TypeInfo
72
{
73
    using Type             = uint8_t;
74
    using DecodableType    = uint8_t;
75
    using DecodableArgType = uint8_t;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaxSessions::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace MaxSessions
82
namespace MaxCachedResults {
83
struct TypeInfo
84
{
85
    using Type             = uint8_t;
86
    using DecodableType    = uint8_t;
87
    using DecodableArgType = uint8_t;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaxCachedResults::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace MaxCachedResults
94
namespace NumCachedResults {
95
struct TypeInfo
96
{
97
    using Type             = uint8_t;
98
    using DecodableType    = uint8_t;
99
    using DecodableArgType = uint8_t;
100
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::NumCachedResults::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace NumCachedResults
106
namespace CacheTimeout {
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::CommissioningProxy::Id; }
114
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CacheTimeout::Id; }
115
0
    static constexpr bool MustUseTimedWrite() { return false; }
116
};
117
} // namespace CacheTimeout
118
namespace CachedResults {
119
struct TypeInfo
120
{
121
    using Type = chip::app::DataModel::Nullable<
122
        chip::app::DataModel::List<const chip::app::Clusters::CommissioningProxy::Structs::ScanResultStruct::Type>>;
123
    using DecodableType = chip::app::DataModel::Nullable<
124
        chip::app::DataModel::DecodableList<chip::app::Clusters::CommissioningProxy::Structs::ScanResultStruct::DecodableType>>;
125
    using DecodableArgType = const chip::app::DataModel::Nullable<
126
        chip::app::DataModel::DecodableList<chip::app::Clusters::CommissioningProxy::Structs::ScanResultStruct::DecodableType>> &;
127
128
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
129
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CachedResults::Id; }
130
0
    static constexpr bool MustUseTimedWrite() { return false; }
131
};
132
} // namespace CachedResults
133
namespace WiFiBand {
134
struct TypeInfo
135
{
136
    using Type             = chip::BitMask<chip::app::Clusters::CommissioningProxy::WiFiBandBitmap>;
137
    using DecodableType    = chip::BitMask<chip::app::Clusters::CommissioningProxy::WiFiBandBitmap>;
138
    using DecodableArgType = chip::BitMask<chip::app::Clusters::CommissioningProxy::WiFiBandBitmap>;
139
140
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
141
0
    static constexpr AttributeId GetAttributeId() { return Attributes::WiFiBand::Id; }
142
0
    static constexpr bool MustUseTimedWrite() { return false; }
143
};
144
} // namespace WiFiBand
145
namespace GeneratedCommandList {
146
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
147
{
148
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
149
};
150
} // namespace GeneratedCommandList
151
namespace AcceptedCommandList {
152
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
153
{
154
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
155
};
156
} // namespace AcceptedCommandList
157
namespace AttributeList {
158
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
159
{
160
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
161
};
162
} // namespace AttributeList
163
namespace FeatureMap {
164
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
165
{
166
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
167
};
168
} // namespace FeatureMap
169
namespace ClusterRevision {
170
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
171
{
172
0
    static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
173
};
174
} // namespace ClusterRevision
175
176
struct TypeInfo
177
{
178
    struct DecodableType
179
    {
180
0
        static constexpr ClusterId GetClusterId() { return Clusters::CommissioningProxy::Id; }
181
182
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
183
184
        Attributes::Transport::TypeInfo::DecodableType transport =
185
            static_cast<chip::BitMask<chip::app::Clusters::CommissioningProxy::CapabilitiesBitmap>>(0);
186
        Attributes::ScanMaxTime::TypeInfo::DecodableType scanMaxTime           = static_cast<uint8_t>(0);
187
        Attributes::MaxSessions::TypeInfo::DecodableType maxSessions           = static_cast<uint8_t>(0);
188
        Attributes::MaxCachedResults::TypeInfo::DecodableType maxCachedResults = static_cast<uint8_t>(0);
189
        Attributes::NumCachedResults::TypeInfo::DecodableType numCachedResults = static_cast<uint8_t>(0);
190
        Attributes::CacheTimeout::TypeInfo::DecodableType cacheTimeout         = static_cast<uint16_t>(0);
191
        Attributes::CachedResults::TypeInfo::DecodableType cachedResults;
192
        Attributes::WiFiBand::TypeInfo::DecodableType wiFiBand =
193
            static_cast<chip::BitMask<chip::app::Clusters::CommissioningProxy::WiFiBandBitmap>>(0);
194
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
195
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
196
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
197
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
198
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
199
    };
200
};
201
} // namespace Attributes
202
} // namespace CommissioningProxy
203
} // namespace Clusters
204
} // namespace app
205
} // namespace chip