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/IcdManagement/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/IcdManagement/AttributeIds.h>
36
#include <clusters/IcdManagement/ClusterId.h>
37
#include <clusters/IcdManagement/Enums.h>
38
#include <clusters/IcdManagement/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace IcdManagement {
44
namespace Attributes {
45
46
namespace IdleModeDuration {
47
struct TypeInfo
48
{
49
    using Type             = uint32_t;
50
    using DecodableType    = uint32_t;
51
    using DecodableArgType = uint32_t;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::IdleModeDuration::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace IdleModeDuration
58
namespace ActiveModeDuration {
59
struct TypeInfo
60
{
61
    using Type             = uint32_t;
62
    using DecodableType    = uint32_t;
63
    using DecodableArgType = uint32_t;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ActiveModeDuration::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace ActiveModeDuration
70
namespace ActiveModeThreshold {
71
struct TypeInfo
72
{
73
    using Type             = uint16_t;
74
    using DecodableType    = uint16_t;
75
    using DecodableArgType = uint16_t;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ActiveModeThreshold::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace ActiveModeThreshold
82
namespace RegisteredClients {
83
struct TypeInfo
84
{
85
    using Type = chip::app::DataModel::List<const chip::app::Clusters::IcdManagement::Structs::MonitoringRegistrationStruct::Type>;
86
    using DecodableType = chip::app::DataModel::DecodableList<
87
        chip::app::Clusters::IcdManagement::Structs::MonitoringRegistrationStruct::DecodableType>;
88
    using DecodableArgType = const chip::app::DataModel::DecodableList<
89
        chip::app::Clusters::IcdManagement::Structs::MonitoringRegistrationStruct::DecodableType> &;
90
91
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
92
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RegisteredClients::Id; }
93
0
    static constexpr bool MustUseTimedWrite() { return false; }
94
};
95
} // namespace RegisteredClients
96
namespace ICDCounter {
97
struct TypeInfo
98
{
99
    using Type             = uint32_t;
100
    using DecodableType    = uint32_t;
101
    using DecodableArgType = uint32_t;
102
103
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
104
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ICDCounter::Id; }
105
0
    static constexpr bool MustUseTimedWrite() { return false; }
106
};
107
} // namespace ICDCounter
108
namespace ClientsSupportedPerFabric {
109
struct TypeInfo
110
{
111
    using Type             = uint16_t;
112
    using DecodableType    = uint16_t;
113
    using DecodableArgType = uint16_t;
114
115
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
116
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ClientsSupportedPerFabric::Id; }
117
0
    static constexpr bool MustUseTimedWrite() { return false; }
118
};
119
} // namespace ClientsSupportedPerFabric
120
namespace UserActiveModeTriggerHint {
121
struct TypeInfo
122
{
123
    using Type             = chip::BitMask<chip::app::Clusters::IcdManagement::UserActiveModeTriggerBitmap>;
124
    using DecodableType    = chip::BitMask<chip::app::Clusters::IcdManagement::UserActiveModeTriggerBitmap>;
125
    using DecodableArgType = chip::BitMask<chip::app::Clusters::IcdManagement::UserActiveModeTriggerBitmap>;
126
127
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
128
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UserActiveModeTriggerHint::Id; }
129
0
    static constexpr bool MustUseTimedWrite() { return false; }
130
};
131
} // namespace UserActiveModeTriggerHint
132
namespace UserActiveModeTriggerInstruction {
133
struct TypeInfo
134
{
135
    using Type             = chip::CharSpan;
136
    using DecodableType    = chip::CharSpan;
137
    using DecodableArgType = chip::CharSpan;
138
139
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
140
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UserActiveModeTriggerInstruction::Id; }
141
0
    static constexpr bool MustUseTimedWrite() { return false; }
142
0
    static constexpr size_t MaxLength() { return 128; }
143
};
144
} // namespace UserActiveModeTriggerInstruction
145
namespace OperatingMode {
146
struct TypeInfo
147
{
148
    using Type             = chip::app::Clusters::IcdManagement::OperatingModeEnum;
149
    using DecodableType    = chip::app::Clusters::IcdManagement::OperatingModeEnum;
150
    using DecodableArgType = chip::app::Clusters::IcdManagement::OperatingModeEnum;
151
152
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
153
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OperatingMode::Id; }
154
0
    static constexpr bool MustUseTimedWrite() { return false; }
155
};
156
} // namespace OperatingMode
157
namespace MaximumCheckInBackOff {
158
struct TypeInfo
159
{
160
    using Type             = uint32_t;
161
    using DecodableType    = uint32_t;
162
    using DecodableArgType = uint32_t;
163
164
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
165
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaximumCheckInBackOff::Id; }
166
0
    static constexpr bool MustUseTimedWrite() { return false; }
167
};
168
} // namespace MaximumCheckInBackOff
169
namespace GeneratedCommandList {
170
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
171
{
172
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
173
};
174
} // namespace GeneratedCommandList
175
namespace AcceptedCommandList {
176
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
177
{
178
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
179
};
180
} // namespace AcceptedCommandList
181
namespace AttributeList {
182
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
183
{
184
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
185
};
186
} // namespace AttributeList
187
namespace FeatureMap {
188
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
189
{
190
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
191
};
192
} // namespace FeatureMap
193
namespace ClusterRevision {
194
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
195
{
196
0
    static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
197
};
198
} // namespace ClusterRevision
199
200
struct TypeInfo
201
{
202
    struct DecodableType
203
    {
204
0
        static constexpr ClusterId GetClusterId() { return Clusters::IcdManagement::Id; }
205
206
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
207
208
        Attributes::IdleModeDuration::TypeInfo::DecodableType idleModeDuration       = static_cast<uint32_t>(0);
209
        Attributes::ActiveModeDuration::TypeInfo::DecodableType activeModeDuration   = static_cast<uint32_t>(0);
210
        Attributes::ActiveModeThreshold::TypeInfo::DecodableType activeModeThreshold = static_cast<uint16_t>(0);
211
        Attributes::RegisteredClients::TypeInfo::DecodableType registeredClients;
212
        Attributes::ICDCounter::TypeInfo::DecodableType ICDCounter                               = static_cast<uint32_t>(0);
213
        Attributes::ClientsSupportedPerFabric::TypeInfo::DecodableType clientsSupportedPerFabric = static_cast<uint16_t>(0);
214
        Attributes::UserActiveModeTriggerHint::TypeInfo::DecodableType userActiveModeTriggerHint =
215
            static_cast<chip::BitMask<chip::app::Clusters::IcdManagement::UserActiveModeTriggerBitmap>>(0);
216
        Attributes::UserActiveModeTriggerInstruction::TypeInfo::DecodableType userActiveModeTriggerInstruction;
217
        Attributes::OperatingMode::TypeInfo::DecodableType operatingMode =
218
            static_cast<chip::app::Clusters::IcdManagement::OperatingModeEnum>(0);
219
        Attributes::MaximumCheckInBackOff::TypeInfo::DecodableType maximumCheckInBackOff = static_cast<uint32_t>(0);
220
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
221
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
222
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
223
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
224
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
225
    };
226
};
227
} // namespace Attributes
228
} // namespace IcdManagement
229
} // namespace Clusters
230
} // namespace app
231
} // namespace chip