Coverage Report

Created: 2025-09-02 06:46

/src/connectedhomeip/zzz_generated/app-common/clusters/FanControl/Attributes.h
Line
Count
Source (jump to first uncovered line)
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/FanControl/AttributeIds.h>
36
#include <clusters/FanControl/ClusterId.h>
37
#include <clusters/FanControl/Enums.h>
38
#include <clusters/FanControl/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace FanControl {
44
namespace Attributes {
45
46
namespace FanMode {
47
struct TypeInfo
48
{
49
    using Type             = chip::app::Clusters::FanControl::FanModeEnum;
50
    using DecodableType    = chip::app::Clusters::FanControl::FanModeEnum;
51
    using DecodableArgType = chip::app::Clusters::FanControl::FanModeEnum;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::FanMode::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace FanMode
58
namespace FanModeSequence {
59
struct TypeInfo
60
{
61
    using Type             = chip::app::Clusters::FanControl::FanModeSequenceEnum;
62
    using DecodableType    = chip::app::Clusters::FanControl::FanModeSequenceEnum;
63
    using DecodableArgType = chip::app::Clusters::FanControl::FanModeSequenceEnum;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::FanModeSequence::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace FanModeSequence
70
namespace PercentSetting {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::DataModel::Nullable<chip::Percent>;
74
    using DecodableType    = chip::app::DataModel::Nullable<chip::Percent>;
75
    using DecodableArgType = const chip::app::DataModel::Nullable<chip::Percent> &;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PercentSetting::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace PercentSetting
82
namespace PercentCurrent {
83
struct TypeInfo
84
{
85
    using Type             = chip::Percent;
86
    using DecodableType    = chip::Percent;
87
    using DecodableArgType = chip::Percent;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PercentCurrent::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace PercentCurrent
94
namespace SpeedMax {
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::FanControl::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SpeedMax::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace SpeedMax
106
namespace SpeedSetting {
107
struct TypeInfo
108
{
109
    using Type             = chip::app::DataModel::Nullable<uint8_t>;
110
    using DecodableType    = chip::app::DataModel::Nullable<uint8_t>;
111
    using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
112
113
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
114
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SpeedSetting::Id; }
115
0
    static constexpr bool MustUseTimedWrite() { return false; }
116
};
117
} // namespace SpeedSetting
118
namespace SpeedCurrent {
119
struct TypeInfo
120
{
121
    using Type             = uint8_t;
122
    using DecodableType    = uint8_t;
123
    using DecodableArgType = uint8_t;
124
125
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
126
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SpeedCurrent::Id; }
127
0
    static constexpr bool MustUseTimedWrite() { return false; }
128
};
129
} // namespace SpeedCurrent
130
namespace RockSupport {
131
struct TypeInfo
132
{
133
    using Type             = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
134
    using DecodableType    = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
135
    using DecodableArgType = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
136
137
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
138
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RockSupport::Id; }
139
0
    static constexpr bool MustUseTimedWrite() { return false; }
140
};
141
} // namespace RockSupport
142
namespace RockSetting {
143
struct TypeInfo
144
{
145
    using Type             = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
146
    using DecodableType    = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
147
    using DecodableArgType = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
148
149
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
150
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RockSetting::Id; }
151
0
    static constexpr bool MustUseTimedWrite() { return false; }
152
};
153
} // namespace RockSetting
154
namespace WindSupport {
155
struct TypeInfo
156
{
157
    using Type             = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
158
    using DecodableType    = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
159
    using DecodableArgType = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
160
161
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
162
0
    static constexpr AttributeId GetAttributeId() { return Attributes::WindSupport::Id; }
163
0
    static constexpr bool MustUseTimedWrite() { return false; }
164
};
165
} // namespace WindSupport
166
namespace WindSetting {
167
struct TypeInfo
168
{
169
    using Type             = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
170
    using DecodableType    = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
171
    using DecodableArgType = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
172
173
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
174
0
    static constexpr AttributeId GetAttributeId() { return Attributes::WindSetting::Id; }
175
0
    static constexpr bool MustUseTimedWrite() { return false; }
176
};
177
} // namespace WindSetting
178
namespace AirflowDirection {
179
struct TypeInfo
180
{
181
    using Type             = chip::app::Clusters::FanControl::AirflowDirectionEnum;
182
    using DecodableType    = chip::app::Clusters::FanControl::AirflowDirectionEnum;
183
    using DecodableArgType = chip::app::Clusters::FanControl::AirflowDirectionEnum;
184
185
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
186
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AirflowDirection::Id; }
187
0
    static constexpr bool MustUseTimedWrite() { return false; }
188
};
189
} // namespace AirflowDirection
190
namespace GeneratedCommandList {
191
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
192
{
193
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
194
};
195
} // namespace GeneratedCommandList
196
namespace AcceptedCommandList {
197
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
198
{
199
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
200
};
201
} // namespace AcceptedCommandList
202
namespace AttributeList {
203
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
204
{
205
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
206
};
207
} // namespace AttributeList
208
namespace FeatureMap {
209
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
210
{
211
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
212
};
213
} // namespace FeatureMap
214
namespace ClusterRevision {
215
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
216
{
217
0
    static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
218
};
219
} // namespace ClusterRevision
220
221
struct TypeInfo
222
{
223
    struct DecodableType
224
    {
225
0
        static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
226
227
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
228
229
        Attributes::FanMode::TypeInfo::DecodableType fanMode = static_cast<chip::app::Clusters::FanControl::FanModeEnum>(0);
230
        Attributes::FanModeSequence::TypeInfo::DecodableType fanModeSequence =
231
            static_cast<chip::app::Clusters::FanControl::FanModeSequenceEnum>(0);
232
        Attributes::PercentSetting::TypeInfo::DecodableType percentSetting;
233
        Attributes::PercentCurrent::TypeInfo::DecodableType percentCurrent = static_cast<chip::Percent>(0);
234
        Attributes::SpeedMax::TypeInfo::DecodableType speedMax             = static_cast<uint8_t>(0);
235
        Attributes::SpeedSetting::TypeInfo::DecodableType speedSetting;
236
        Attributes::SpeedCurrent::TypeInfo::DecodableType speedCurrent = static_cast<uint8_t>(0);
237
        Attributes::RockSupport::TypeInfo::DecodableType rockSupport =
238
            static_cast<chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>>(0);
239
        Attributes::RockSetting::TypeInfo::DecodableType rockSetting =
240
            static_cast<chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>>(0);
241
        Attributes::WindSupport::TypeInfo::DecodableType windSupport =
242
            static_cast<chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>>(0);
243
        Attributes::WindSetting::TypeInfo::DecodableType windSetting =
244
            static_cast<chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>>(0);
245
        Attributes::AirflowDirection::TypeInfo::DecodableType airflowDirection =
246
            static_cast<chip::app::Clusters::FanControl::AirflowDirectionEnum>(0);
247
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
248
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
249
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
250
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
251
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
252
    };
253
};
254
} // namespace Attributes
255
} // namespace FanControl
256
} // namespace Clusters
257
} // namespace app
258
} // namespace chip