Coverage Report

Created: 2025-08-28 06:31

/src/connectedhomeip/zzz_generated/app-common/clusters/GeneralDiagnostics/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/GeneralDiagnostics/AttributeIds.h>
36
#include <clusters/GeneralDiagnostics/ClusterId.h>
37
#include <clusters/GeneralDiagnostics/Enums.h>
38
#include <clusters/GeneralDiagnostics/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace GeneralDiagnostics {
44
namespace Attributes {
45
46
namespace NetworkInterfaces {
47
struct TypeInfo
48
{
49
    using Type = chip::app::DataModel::List<const chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterface::Type>;
50
    using DecodableType =
51
        chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterface::DecodableType>;
52
    using DecodableArgType = const chip::app::DataModel::DecodableList<
53
        chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterface::DecodableType> &;
54
55
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
56
0
    static constexpr AttributeId GetAttributeId() { return Attributes::NetworkInterfaces::Id; }
57
0
    static constexpr bool MustUseTimedWrite() { return false; }
58
};
59
} // namespace NetworkInterfaces
60
namespace RebootCount {
61
struct TypeInfo
62
{
63
    using Type             = uint16_t;
64
    using DecodableType    = uint16_t;
65
    using DecodableArgType = uint16_t;
66
67
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
68
0
    static constexpr AttributeId GetAttributeId() { return Attributes::RebootCount::Id; }
69
0
    static constexpr bool MustUseTimedWrite() { return false; }
70
};
71
} // namespace RebootCount
72
namespace UpTime {
73
struct TypeInfo
74
{
75
    using Type             = uint64_t;
76
    using DecodableType    = uint64_t;
77
    using DecodableArgType = uint64_t;
78
79
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
80
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UpTime::Id; }
81
0
    static constexpr bool MustUseTimedWrite() { return false; }
82
};
83
} // namespace UpTime
84
namespace TotalOperationalHours {
85
struct TypeInfo
86
{
87
    using Type             = uint32_t;
88
    using DecodableType    = uint32_t;
89
    using DecodableArgType = uint32_t;
90
91
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
92
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TotalOperationalHours::Id; }
93
0
    static constexpr bool MustUseTimedWrite() { return false; }
94
};
95
} // namespace TotalOperationalHours
96
namespace BootReason {
97
struct TypeInfo
98
{
99
    using Type             = chip::app::Clusters::GeneralDiagnostics::BootReasonEnum;
100
    using DecodableType    = chip::app::Clusters::GeneralDiagnostics::BootReasonEnum;
101
    using DecodableArgType = chip::app::Clusters::GeneralDiagnostics::BootReasonEnum;
102
103
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
104
0
    static constexpr AttributeId GetAttributeId() { return Attributes::BootReason::Id; }
105
0
    static constexpr bool MustUseTimedWrite() { return false; }
106
};
107
} // namespace BootReason
108
namespace ActiveHardwareFaults {
109
struct TypeInfo
110
{
111
    using Type          = chip::app::DataModel::List<const chip::app::Clusters::GeneralDiagnostics::HardwareFaultEnum>;
112
    using DecodableType = chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::HardwareFaultEnum>;
113
    using DecodableArgType =
114
        const chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::HardwareFaultEnum> &;
115
116
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
117
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ActiveHardwareFaults::Id; }
118
0
    static constexpr bool MustUseTimedWrite() { return false; }
119
};
120
} // namespace ActiveHardwareFaults
121
namespace ActiveRadioFaults {
122
struct TypeInfo
123
{
124
    using Type             = chip::app::DataModel::List<const chip::app::Clusters::GeneralDiagnostics::RadioFaultEnum>;
125
    using DecodableType    = chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::RadioFaultEnum>;
126
    using DecodableArgType = const chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::RadioFaultEnum> &;
127
128
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
129
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ActiveRadioFaults::Id; }
130
0
    static constexpr bool MustUseTimedWrite() { return false; }
131
};
132
} // namespace ActiveRadioFaults
133
namespace ActiveNetworkFaults {
134
struct TypeInfo
135
{
136
    using Type             = chip::app::DataModel::List<const chip::app::Clusters::GeneralDiagnostics::NetworkFaultEnum>;
137
    using DecodableType    = chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::NetworkFaultEnum>;
138
    using DecodableArgType = const chip::app::DataModel::DecodableList<chip::app::Clusters::GeneralDiagnostics::NetworkFaultEnum> &;
139
140
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
141
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ActiveNetworkFaults::Id; }
142
0
    static constexpr bool MustUseTimedWrite() { return false; }
143
};
144
} // namespace ActiveNetworkFaults
145
namespace TestEventTriggersEnabled {
146
struct TypeInfo
147
{
148
    using Type             = bool;
149
    using DecodableType    = bool;
150
    using DecodableArgType = bool;
151
152
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
153
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TestEventTriggersEnabled::Id; }
154
0
    static constexpr bool MustUseTimedWrite() { return false; }
155
};
156
} // namespace TestEventTriggersEnabled
157
namespace GeneratedCommandList {
158
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
159
{
160
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
161
};
162
} // namespace GeneratedCommandList
163
namespace AcceptedCommandList {
164
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
165
{
166
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
167
};
168
} // namespace AcceptedCommandList
169
namespace AttributeList {
170
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
171
{
172
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
173
};
174
} // namespace AttributeList
175
namespace FeatureMap {
176
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
177
{
178
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
179
};
180
} // namespace FeatureMap
181
namespace ClusterRevision {
182
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
183
{
184
0
    static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
185
};
186
} // namespace ClusterRevision
187
188
struct TypeInfo
189
{
190
    struct DecodableType
191
    {
192
0
        static constexpr ClusterId GetClusterId() { return Clusters::GeneralDiagnostics::Id; }
193
194
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
195
196
        Attributes::NetworkInterfaces::TypeInfo::DecodableType networkInterfaces;
197
        Attributes::RebootCount::TypeInfo::DecodableType rebootCount                     = static_cast<uint16_t>(0);
198
        Attributes::UpTime::TypeInfo::DecodableType upTime                               = static_cast<uint64_t>(0);
199
        Attributes::TotalOperationalHours::TypeInfo::DecodableType totalOperationalHours = static_cast<uint32_t>(0);
200
        Attributes::BootReason::TypeInfo::DecodableType bootReason =
201
            static_cast<chip::app::Clusters::GeneralDiagnostics::BootReasonEnum>(0);
202
        Attributes::ActiveHardwareFaults::TypeInfo::DecodableType activeHardwareFaults;
203
        Attributes::ActiveRadioFaults::TypeInfo::DecodableType activeRadioFaults;
204
        Attributes::ActiveNetworkFaults::TypeInfo::DecodableType activeNetworkFaults;
205
        Attributes::TestEventTriggersEnabled::TypeInfo::DecodableType testEventTriggersEnabled = static_cast<bool>(0);
206
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
207
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
208
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
209
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
210
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
211
    };
212
};
213
} // namespace Attributes
214
} // namespace GeneralDiagnostics
215
} // namespace Clusters
216
} // namespace app
217
} // namespace chip