Coverage Report

Created: 2025-08-28 06:31

/src/connectedhomeip/zzz_generated/app-common/clusters/Pm1ConcentrationMeasurement/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/Pm1ConcentrationMeasurement/AttributeIds.h>
36
#include <clusters/Pm1ConcentrationMeasurement/ClusterId.h>
37
#include <clusters/Pm1ConcentrationMeasurement/Enums.h>
38
#include <clusters/Pm1ConcentrationMeasurement/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace Pm1ConcentrationMeasurement {
44
namespace Attributes {
45
46
namespace MeasuredValue {
47
struct TypeInfo
48
{
49
    using Type             = chip::app::DataModel::Nullable<float>;
50
    using DecodableType    = chip::app::DataModel::Nullable<float>;
51
    using DecodableArgType = const chip::app::DataModel::Nullable<float> &;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MeasuredValue::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace MeasuredValue
58
namespace MinMeasuredValue {
59
struct TypeInfo
60
{
61
    using Type             = chip::app::DataModel::Nullable<float>;
62
    using DecodableType    = chip::app::DataModel::Nullable<float>;
63
    using DecodableArgType = const chip::app::DataModel::Nullable<float> &;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MinMeasuredValue::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace MinMeasuredValue
70
namespace MaxMeasuredValue {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::DataModel::Nullable<float>;
74
    using DecodableType    = chip::app::DataModel::Nullable<float>;
75
    using DecodableArgType = const chip::app::DataModel::Nullable<float> &;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaxMeasuredValue::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace MaxMeasuredValue
82
namespace PeakMeasuredValue {
83
struct TypeInfo
84
{
85
    using Type             = chip::app::DataModel::Nullable<float>;
86
    using DecodableType    = chip::app::DataModel::Nullable<float>;
87
    using DecodableArgType = const chip::app::DataModel::Nullable<float> &;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PeakMeasuredValue::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace PeakMeasuredValue
94
namespace PeakMeasuredValueWindow {
95
struct TypeInfo
96
{
97
    using Type             = uint32_t;
98
    using DecodableType    = uint32_t;
99
    using DecodableArgType = uint32_t;
100
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::PeakMeasuredValueWindow::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace PeakMeasuredValueWindow
106
namespace AverageMeasuredValue {
107
struct TypeInfo
108
{
109
    using Type             = chip::app::DataModel::Nullable<float>;
110
    using DecodableType    = chip::app::DataModel::Nullable<float>;
111
    using DecodableArgType = const chip::app::DataModel::Nullable<float> &;
112
113
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
114
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AverageMeasuredValue::Id; }
115
0
    static constexpr bool MustUseTimedWrite() { return false; }
116
};
117
} // namespace AverageMeasuredValue
118
namespace AverageMeasuredValueWindow {
119
struct TypeInfo
120
{
121
    using Type             = uint32_t;
122
    using DecodableType    = uint32_t;
123
    using DecodableArgType = uint32_t;
124
125
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
126
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AverageMeasuredValueWindow::Id; }
127
0
    static constexpr bool MustUseTimedWrite() { return false; }
128
};
129
} // namespace AverageMeasuredValueWindow
130
namespace Uncertainty {
131
struct TypeInfo
132
{
133
    using Type             = float;
134
    using DecodableType    = float;
135
    using DecodableArgType = float;
136
137
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
138
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Uncertainty::Id; }
139
0
    static constexpr bool MustUseTimedWrite() { return false; }
140
};
141
} // namespace Uncertainty
142
namespace MeasurementUnit {
143
struct TypeInfo
144
{
145
    using Type             = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementUnitEnum;
146
    using DecodableType    = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementUnitEnum;
147
    using DecodableArgType = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementUnitEnum;
148
149
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
150
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MeasurementUnit::Id; }
151
0
    static constexpr bool MustUseTimedWrite() { return false; }
152
};
153
} // namespace MeasurementUnit
154
namespace MeasurementMedium {
155
struct TypeInfo
156
{
157
    using Type             = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementMediumEnum;
158
    using DecodableType    = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementMediumEnum;
159
    using DecodableArgType = chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementMediumEnum;
160
161
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
162
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MeasurementMedium::Id; }
163
0
    static constexpr bool MustUseTimedWrite() { return false; }
164
};
165
} // namespace MeasurementMedium
166
namespace LevelValue {
167
struct TypeInfo
168
{
169
    using Type             = chip::app::Clusters::Pm1ConcentrationMeasurement::LevelValueEnum;
170
    using DecodableType    = chip::app::Clusters::Pm1ConcentrationMeasurement::LevelValueEnum;
171
    using DecodableArgType = chip::app::Clusters::Pm1ConcentrationMeasurement::LevelValueEnum;
172
173
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
174
0
    static constexpr AttributeId GetAttributeId() { return Attributes::LevelValue::Id; }
175
0
    static constexpr bool MustUseTimedWrite() { return false; }
176
};
177
} // namespace LevelValue
178
namespace GeneratedCommandList {
179
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
180
{
181
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
182
};
183
} // namespace GeneratedCommandList
184
namespace AcceptedCommandList {
185
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
186
{
187
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
188
};
189
} // namespace AcceptedCommandList
190
namespace AttributeList {
191
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
192
{
193
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
194
};
195
} // namespace AttributeList
196
namespace FeatureMap {
197
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
198
{
199
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
200
};
201
} // namespace FeatureMap
202
namespace ClusterRevision {
203
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
204
{
205
0
    static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
206
};
207
} // namespace ClusterRevision
208
209
struct TypeInfo
210
{
211
    struct DecodableType
212
    {
213
0
        static constexpr ClusterId GetClusterId() { return Clusters::Pm1ConcentrationMeasurement::Id; }
214
215
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
216
217
        Attributes::MeasuredValue::TypeInfo::DecodableType measuredValue;
218
        Attributes::MinMeasuredValue::TypeInfo::DecodableType minMeasuredValue;
219
        Attributes::MaxMeasuredValue::TypeInfo::DecodableType maxMeasuredValue;
220
        Attributes::PeakMeasuredValue::TypeInfo::DecodableType peakMeasuredValue;
221
        Attributes::PeakMeasuredValueWindow::TypeInfo::DecodableType peakMeasuredValueWindow = static_cast<uint32_t>(0);
222
        Attributes::AverageMeasuredValue::TypeInfo::DecodableType averageMeasuredValue;
223
        Attributes::AverageMeasuredValueWindow::TypeInfo::DecodableType averageMeasuredValueWindow = static_cast<uint32_t>(0);
224
        Attributes::Uncertainty::TypeInfo::DecodableType uncertainty                               = static_cast<float>(0);
225
        Attributes::MeasurementUnit::TypeInfo::DecodableType measurementUnit =
226
            static_cast<chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementUnitEnum>(0);
227
        Attributes::MeasurementMedium::TypeInfo::DecodableType measurementMedium =
228
            static_cast<chip::app::Clusters::Pm1ConcentrationMeasurement::MeasurementMediumEnum>(0);
229
        Attributes::LevelValue::TypeInfo::DecodableType levelValue =
230
            static_cast<chip::app::Clusters::Pm1ConcentrationMeasurement::LevelValueEnum>(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 Pm1ConcentrationMeasurement
240
} // namespace Clusters
241
} // namespace app
242
} // namespace chip