Coverage Report

Created: 2026-09-24 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/GeneralDiagnostics/Events.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-Events.h.zapt
20
21
#pragma once
22
23
#include <app/EventLoggingTypes.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <lib/core/DataModelTypes.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Enums.h>
32
#include <clusters/shared/Structs.h>
33
34
#include <clusters/GeneralDiagnostics/ClusterId.h>
35
#include <clusters/GeneralDiagnostics/Enums.h>
36
#include <clusters/GeneralDiagnostics/EventIds.h>
37
#include <clusters/GeneralDiagnostics/Structs.h>
38
39
#include <cstdint>
40
41
namespace chip {
42
namespace app {
43
namespace Clusters {
44
namespace GeneralDiagnostics {
45
namespace Events {
46
namespace HardwareFaultChange {
47
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;
48
49
enum class Fields : uint8_t
50
{
51
    kCurrent  = 0,
52
    kPrevious = 1,
53
};
54
55
struct Type
56
{
57
public:
58
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
59
0
    static constexpr EventId GetEventId() { return Events::HardwareFaultChange::Id; }
60
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
61
    static constexpr bool kIsFabricScoped = false;
62
63
    DataModel::List<const HardwareFaultEnum> current;
64
    DataModel::List<const HardwareFaultEnum> previous;
65
66
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
67
};
68
69
struct DecodableType
70
{
71
public:
72
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
73
0
    static constexpr EventId GetEventId() { return Events::HardwareFaultChange::Id; }
74
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
75
76
    DataModel::DecodableList<HardwareFaultEnum> current;
77
    DataModel::DecodableList<HardwareFaultEnum> previous;
78
79
    CHIP_ERROR Decode(TLV::TLVReader & reader);
80
};
81
} // namespace HardwareFaultChange
82
namespace RadioFaultChange {
83
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;
84
85
enum class Fields : uint8_t
86
{
87
    kCurrent  = 0,
88
    kPrevious = 1,
89
};
90
91
struct Type
92
{
93
public:
94
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
95
0
    static constexpr EventId GetEventId() { return Events::RadioFaultChange::Id; }
96
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
97
    static constexpr bool kIsFabricScoped = false;
98
99
    DataModel::List<const RadioFaultEnum> current;
100
    DataModel::List<const RadioFaultEnum> previous;
101
102
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
103
};
104
105
struct DecodableType
106
{
107
public:
108
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
109
0
    static constexpr EventId GetEventId() { return Events::RadioFaultChange::Id; }
110
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
111
112
    DataModel::DecodableList<RadioFaultEnum> current;
113
    DataModel::DecodableList<RadioFaultEnum> previous;
114
115
    CHIP_ERROR Decode(TLV::TLVReader & reader);
116
};
117
} // namespace RadioFaultChange
118
namespace NetworkFaultChange {
119
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;
120
121
enum class Fields : uint8_t
122
{
123
    kCurrent  = 0,
124
    kPrevious = 1,
125
};
126
127
struct Type
128
{
129
public:
130
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
131
0
    static constexpr EventId GetEventId() { return Events::NetworkFaultChange::Id; }
132
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
133
    static constexpr bool kIsFabricScoped = false;
134
135
    DataModel::List<const NetworkFaultEnum> current;
136
    DataModel::List<const NetworkFaultEnum> previous;
137
138
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
139
};
140
141
struct DecodableType
142
{
143
public:
144
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
145
0
    static constexpr EventId GetEventId() { return Events::NetworkFaultChange::Id; }
146
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
147
148
    DataModel::DecodableList<NetworkFaultEnum> current;
149
    DataModel::DecodableList<NetworkFaultEnum> previous;
150
151
    CHIP_ERROR Decode(TLV::TLVReader & reader);
152
};
153
} // namespace NetworkFaultChange
154
namespace BootReason {
155
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;
156
157
enum class Fields : uint8_t
158
{
159
    kBootReason = 0,
160
};
161
162
struct Type
163
{
164
public:
165
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
166
0
    static constexpr EventId GetEventId() { return Events::BootReason::Id; }
167
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
168
    static constexpr bool kIsFabricScoped = false;
169
170
    BootReasonEnum bootReason = static_cast<BootReasonEnum>(0);
171
172
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
173
};
174
175
struct DecodableType
176
{
177
public:
178
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
179
0
    static constexpr EventId GetEventId() { return Events::BootReason::Id; }
180
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
181
182
    BootReasonEnum bootReason = static_cast<BootReasonEnum>(0);
183
184
    CHIP_ERROR Decode(TLV::TLVReader & reader);
185
};
186
} // namespace BootReason
187
} // namespace Events
188
} // namespace GeneralDiagnostics
189
} // namespace Clusters
190
} // namespace app
191
} // namespace chip