Coverage Report

Created: 2025-09-02 06:46

/src/connectedhomeip/zzz_generated/app-common/clusters/PumpConfigurationAndControl/Events.ipp
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-Events.ipp.zapt
20
21
#include <clusters/PumpConfigurationAndControl/Events.h>
22
23
#include <app/data-model/Decode.h>
24
#include <app/data-model/Encode.h>
25
#include <app/data-model/StructDecodeIterator.h>
26
#include <app/data-model/WrappedStructEncoder.h>
27
28
namespace chip {
29
namespace app {
30
namespace Clusters {
31
namespace PumpConfigurationAndControl {
32
namespace Events {
33
namespace SupplyVoltageLow {
34
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
35
0
{
36
0
    TLV::TLVType outer;
37
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
38
0
    return aWriter.EndContainer(outer);
39
0
}
40
41
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
42
0
{
43
0
    detail::StructDecodeIterator __iterator(reader);
44
0
    while (true)
45
0
    {
46
0
        uint8_t __context_tag = 0;
47
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
48
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
49
0
        ReturnErrorOnFailure(err);
50
51
0
        ReturnErrorOnFailure(err);
52
0
    }
53
0
}
54
} // namespace SupplyVoltageLow.
55
namespace SupplyVoltageHigh {
56
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
57
0
{
58
0
    TLV::TLVType outer;
59
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
60
0
    return aWriter.EndContainer(outer);
61
0
}
62
63
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
64
0
{
65
0
    detail::StructDecodeIterator __iterator(reader);
66
0
    while (true)
67
0
    {
68
0
        uint8_t __context_tag = 0;
69
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
70
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
71
0
        ReturnErrorOnFailure(err);
72
73
0
        ReturnErrorOnFailure(err);
74
0
    }
75
0
}
76
} // namespace SupplyVoltageHigh.
77
namespace PowerMissingPhase {
78
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
79
0
{
80
0
    TLV::TLVType outer;
81
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
82
0
    return aWriter.EndContainer(outer);
83
0
}
84
85
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
86
0
{
87
0
    detail::StructDecodeIterator __iterator(reader);
88
0
    while (true)
89
0
    {
90
0
        uint8_t __context_tag = 0;
91
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
92
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
93
0
        ReturnErrorOnFailure(err);
94
95
0
        ReturnErrorOnFailure(err);
96
0
    }
97
0
}
98
} // namespace PowerMissingPhase.
99
namespace SystemPressureLow {
100
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
101
0
{
102
0
    TLV::TLVType outer;
103
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
104
0
    return aWriter.EndContainer(outer);
105
0
}
106
107
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
108
0
{
109
0
    detail::StructDecodeIterator __iterator(reader);
110
0
    while (true)
111
0
    {
112
0
        uint8_t __context_tag = 0;
113
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
114
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
115
0
        ReturnErrorOnFailure(err);
116
117
0
        ReturnErrorOnFailure(err);
118
0
    }
119
0
}
120
} // namespace SystemPressureLow.
121
namespace SystemPressureHigh {
122
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
123
0
{
124
0
    TLV::TLVType outer;
125
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
126
0
    return aWriter.EndContainer(outer);
127
0
}
128
129
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
130
0
{
131
0
    detail::StructDecodeIterator __iterator(reader);
132
0
    while (true)
133
0
    {
134
0
        uint8_t __context_tag = 0;
135
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
136
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
137
0
        ReturnErrorOnFailure(err);
138
139
0
        ReturnErrorOnFailure(err);
140
0
    }
141
0
}
142
} // namespace SystemPressureHigh.
143
namespace DryRunning {
144
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
145
0
{
146
0
    TLV::TLVType outer;
147
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
148
0
    return aWriter.EndContainer(outer);
149
0
}
150
151
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
152
0
{
153
0
    detail::StructDecodeIterator __iterator(reader);
154
0
    while (true)
155
0
    {
156
0
        uint8_t __context_tag = 0;
157
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
158
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
159
0
        ReturnErrorOnFailure(err);
160
161
0
        ReturnErrorOnFailure(err);
162
0
    }
163
0
}
164
} // namespace DryRunning.
165
namespace MotorTemperatureHigh {
166
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
167
0
{
168
0
    TLV::TLVType outer;
169
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
170
0
    return aWriter.EndContainer(outer);
171
0
}
172
173
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
174
0
{
175
0
    detail::StructDecodeIterator __iterator(reader);
176
0
    while (true)
177
0
    {
178
0
        uint8_t __context_tag = 0;
179
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
180
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
181
0
        ReturnErrorOnFailure(err);
182
183
0
        ReturnErrorOnFailure(err);
184
0
    }
185
0
}
186
} // namespace MotorTemperatureHigh.
187
namespace PumpMotorFatalFailure {
188
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
189
0
{
190
0
    TLV::TLVType outer;
191
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
192
0
    return aWriter.EndContainer(outer);
193
0
}
194
195
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
196
0
{
197
0
    detail::StructDecodeIterator __iterator(reader);
198
0
    while (true)
199
0
    {
200
0
        uint8_t __context_tag = 0;
201
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
202
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
203
0
        ReturnErrorOnFailure(err);
204
205
0
        ReturnErrorOnFailure(err);
206
0
    }
207
0
}
208
} // namespace PumpMotorFatalFailure.
209
namespace ElectronicTemperatureHigh {
210
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
211
0
{
212
0
    TLV::TLVType outer;
213
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
214
0
    return aWriter.EndContainer(outer);
215
0
}
216
217
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
218
0
{
219
0
    detail::StructDecodeIterator __iterator(reader);
220
0
    while (true)
221
0
    {
222
0
        uint8_t __context_tag = 0;
223
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
224
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
225
0
        ReturnErrorOnFailure(err);
226
227
0
        ReturnErrorOnFailure(err);
228
0
    }
229
0
}
230
} // namespace ElectronicTemperatureHigh.
231
namespace PumpBlocked {
232
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
233
0
{
234
0
    TLV::TLVType outer;
235
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
236
0
    return aWriter.EndContainer(outer);
237
0
}
238
239
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
240
0
{
241
0
    detail::StructDecodeIterator __iterator(reader);
242
0
    while (true)
243
0
    {
244
0
        uint8_t __context_tag = 0;
245
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
246
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
247
0
        ReturnErrorOnFailure(err);
248
249
0
        ReturnErrorOnFailure(err);
250
0
    }
251
0
}
252
} // namespace PumpBlocked.
253
namespace SensorFailure {
254
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
255
0
{
256
0
    TLV::TLVType outer;
257
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
258
0
    return aWriter.EndContainer(outer);
259
0
}
260
261
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
262
0
{
263
0
    detail::StructDecodeIterator __iterator(reader);
264
0
    while (true)
265
0
    {
266
0
        uint8_t __context_tag = 0;
267
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
268
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
269
0
        ReturnErrorOnFailure(err);
270
271
0
        ReturnErrorOnFailure(err);
272
0
    }
273
0
}
274
} // namespace SensorFailure.
275
namespace ElectronicNonFatalFailure {
276
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
277
0
{
278
0
    TLV::TLVType outer;
279
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
280
0
    return aWriter.EndContainer(outer);
281
0
}
282
283
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
284
0
{
285
0
    detail::StructDecodeIterator __iterator(reader);
286
0
    while (true)
287
0
    {
288
0
        uint8_t __context_tag = 0;
289
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
290
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
291
0
        ReturnErrorOnFailure(err);
292
293
0
        ReturnErrorOnFailure(err);
294
0
    }
295
0
}
296
} // namespace ElectronicNonFatalFailure.
297
namespace ElectronicFatalFailure {
298
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
299
0
{
300
0
    TLV::TLVType outer;
301
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
302
0
    return aWriter.EndContainer(outer);
303
0
}
304
305
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
306
0
{
307
0
    detail::StructDecodeIterator __iterator(reader);
308
0
    while (true)
309
0
    {
310
0
        uint8_t __context_tag = 0;
311
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
312
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
313
0
        ReturnErrorOnFailure(err);
314
315
0
        ReturnErrorOnFailure(err);
316
0
    }
317
0
}
318
} // namespace ElectronicFatalFailure.
319
namespace GeneralFault {
320
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
321
0
{
322
0
    TLV::TLVType outer;
323
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
324
0
    return aWriter.EndContainer(outer);
325
0
}
326
327
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
328
0
{
329
0
    detail::StructDecodeIterator __iterator(reader);
330
0
    while (true)
331
0
    {
332
0
        uint8_t __context_tag = 0;
333
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
334
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
335
0
        ReturnErrorOnFailure(err);
336
337
0
        ReturnErrorOnFailure(err);
338
0
    }
339
0
}
340
} // namespace GeneralFault.
341
namespace Leakage {
342
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
343
0
{
344
0
    TLV::TLVType outer;
345
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
346
0
    return aWriter.EndContainer(outer);
347
0
}
348
349
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
350
0
{
351
0
    detail::StructDecodeIterator __iterator(reader);
352
0
    while (true)
353
0
    {
354
0
        uint8_t __context_tag = 0;
355
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
356
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
357
0
        ReturnErrorOnFailure(err);
358
359
0
        ReturnErrorOnFailure(err);
360
0
    }
361
0
}
362
} // namespace Leakage.
363
namespace AirDetection {
364
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
365
0
{
366
0
    TLV::TLVType outer;
367
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
368
0
    return aWriter.EndContainer(outer);
369
0
}
370
371
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
372
0
{
373
0
    detail::StructDecodeIterator __iterator(reader);
374
0
    while (true)
375
0
    {
376
0
        uint8_t __context_tag = 0;
377
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
378
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
379
0
        ReturnErrorOnFailure(err);
380
381
0
        ReturnErrorOnFailure(err);
382
0
    }
383
0
}
384
} // namespace AirDetection.
385
namespace TurbineOperation {
386
CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const
387
0
{
388
0
    TLV::TLVType outer;
389
0
    ReturnErrorOnFailure(aWriter.StartContainer(aTag, TLV::kTLVType_Structure, outer));
390
0
    return aWriter.EndContainer(outer);
391
0
}
392
393
CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
394
0
{
395
0
    detail::StructDecodeIterator __iterator(reader);
396
0
    while (true)
397
0
    {
398
0
        uint8_t __context_tag = 0;
399
0
        CHIP_ERROR err        = __iterator.Next(__context_tag);
400
0
        VerifyOrReturnError(err != CHIP_ERROR_END_OF_TLV, CHIP_NO_ERROR);
401
0
        ReturnErrorOnFailure(err);
402
403
0
        ReturnErrorOnFailure(err);
404
0
    }
405
0
}
406
} // namespace TurbineOperation.
407
} // namespace Events
408
} // namespace PumpConfigurationAndControl
409
} // namespace Clusters
410
} // namespace app
411
} // namespace chip