Coverage Report

Created: 2026-02-12 06:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/ValveConfigurationAndControl/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/ValveConfigurationAndControl/AttributeIds.h>
36
#include <clusters/ValveConfigurationAndControl/ClusterId.h>
37
#include <clusters/ValveConfigurationAndControl/Enums.h>
38
#include <clusters/ValveConfigurationAndControl/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace ValveConfigurationAndControl {
44
namespace Attributes {
45
46
namespace OpenDuration {
47
struct TypeInfo
48
{
49
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
50
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
51
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OpenDuration::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace OpenDuration
58
namespace DefaultOpenDuration {
59
struct TypeInfo
60
{
61
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
62
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
63
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::DefaultOpenDuration::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace DefaultOpenDuration
70
namespace AutoCloseTime {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::DataModel::Nullable<uint64_t>;
74
    using DecodableType    = chip::app::DataModel::Nullable<uint64_t>;
75
    using DecodableArgType = const chip::app::DataModel::Nullable<uint64_t> &;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AutoCloseTime::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace AutoCloseTime
82
namespace RemainingDuration {
83
struct TypeInfo
84
{
85
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
86
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
87
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RemainingDuration::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace RemainingDuration
94
namespace CurrentState {
95
struct TypeInfo
96
{
97
    using Type          = chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum>;
98
    using DecodableType = chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum>;
99
    using DecodableArgType =
100
        const chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum> &;
101
102
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
103
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CurrentState::Id; }
104
0
    static constexpr bool MustUseTimedWrite() { return false; }
105
};
106
} // namespace CurrentState
107
namespace TargetState {
108
struct TypeInfo
109
{
110
    using Type          = chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum>;
111
    using DecodableType = chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum>;
112
    using DecodableArgType =
113
        const chip::app::DataModel::Nullable<chip::app::Clusters::ValveConfigurationAndControl::ValveStateEnum> &;
114
115
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
116
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TargetState::Id; }
117
0
    static constexpr bool MustUseTimedWrite() { return false; }
118
};
119
} // namespace TargetState
120
namespace CurrentLevel {
121
struct TypeInfo
122
{
123
    using Type             = chip::app::DataModel::Nullable<chip::Percent>;
124
    using DecodableType    = chip::app::DataModel::Nullable<chip::Percent>;
125
    using DecodableArgType = const chip::app::DataModel::Nullable<chip::Percent> &;
126
127
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
128
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CurrentLevel::Id; }
129
0
    static constexpr bool MustUseTimedWrite() { return false; }
130
};
131
} // namespace CurrentLevel
132
namespace TargetLevel {
133
struct TypeInfo
134
{
135
    using Type             = chip::app::DataModel::Nullable<chip::Percent>;
136
    using DecodableType    = chip::app::DataModel::Nullable<chip::Percent>;
137
    using DecodableArgType = const chip::app::DataModel::Nullable<chip::Percent> &;
138
139
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
140
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TargetLevel::Id; }
141
0
    static constexpr bool MustUseTimedWrite() { return false; }
142
};
143
} // namespace TargetLevel
144
namespace DefaultOpenLevel {
145
struct TypeInfo
146
{
147
    using Type             = chip::Percent;
148
    using DecodableType    = chip::Percent;
149
    using DecodableArgType = chip::Percent;
150
151
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
152
0
    static constexpr AttributeId GetAttributeId() { return Attributes::DefaultOpenLevel::Id; }
153
0
    static constexpr bool MustUseTimedWrite() { return false; }
154
};
155
} // namespace DefaultOpenLevel
156
namespace ValveFault {
157
struct TypeInfo
158
{
159
    using Type             = chip::BitMask<chip::app::Clusters::ValveConfigurationAndControl::ValveFaultBitmap>;
160
    using DecodableType    = chip::BitMask<chip::app::Clusters::ValveConfigurationAndControl::ValveFaultBitmap>;
161
    using DecodableArgType = chip::BitMask<chip::app::Clusters::ValveConfigurationAndControl::ValveFaultBitmap>;
162
163
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
164
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ValveFault::Id; }
165
0
    static constexpr bool MustUseTimedWrite() { return false; }
166
};
167
} // namespace ValveFault
168
namespace LevelStep {
169
struct TypeInfo
170
{
171
    using Type             = uint8_t;
172
    using DecodableType    = uint8_t;
173
    using DecodableArgType = uint8_t;
174
175
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
176
0
    static constexpr AttributeId GetAttributeId() { return Attributes::LevelStep::Id; }
177
0
    static constexpr bool MustUseTimedWrite() { return false; }
178
};
179
} // namespace LevelStep
180
namespace GeneratedCommandList {
181
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
182
{
183
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
184
};
185
} // namespace GeneratedCommandList
186
namespace AcceptedCommandList {
187
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
188
{
189
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
190
};
191
} // namespace AcceptedCommandList
192
namespace AttributeList {
193
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
194
{
195
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
196
};
197
} // namespace AttributeList
198
namespace FeatureMap {
199
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
200
{
201
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
202
};
203
} // namespace FeatureMap
204
namespace ClusterRevision {
205
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
206
{
207
0
    static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
208
};
209
} // namespace ClusterRevision
210
211
struct TypeInfo
212
{
213
    struct DecodableType
214
    {
215
0
        static constexpr ClusterId GetClusterId() { return Clusters::ValveConfigurationAndControl::Id; }
216
217
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
218
219
        Attributes::OpenDuration::TypeInfo::DecodableType openDuration;
220
        Attributes::DefaultOpenDuration::TypeInfo::DecodableType defaultOpenDuration;
221
        Attributes::AutoCloseTime::TypeInfo::DecodableType autoCloseTime;
222
        Attributes::RemainingDuration::TypeInfo::DecodableType remainingDuration;
223
        Attributes::CurrentState::TypeInfo::DecodableType currentState;
224
        Attributes::TargetState::TypeInfo::DecodableType targetState;
225
        Attributes::CurrentLevel::TypeInfo::DecodableType currentLevel;
226
        Attributes::TargetLevel::TypeInfo::DecodableType targetLevel;
227
        Attributes::DefaultOpenLevel::TypeInfo::DecodableType defaultOpenLevel = static_cast<chip::Percent>(0);
228
        Attributes::ValveFault::TypeInfo::DecodableType valveFault =
229
            static_cast<chip::BitMask<chip::app::Clusters::ValveConfigurationAndControl::ValveFaultBitmap>>(0);
230
        Attributes::LevelStep::TypeInfo::DecodableType levelStep = static_cast<uint8_t>(0);
231
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
232
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
233
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
234
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
235
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
236
    };
237
};
238
} // namespace Attributes
239
} // namespace ValveConfigurationAndControl
240
} // namespace Clusters
241
} // namespace app
242
} // namespace chip