Coverage Report

Created: 2026-08-14 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/ElectricalDistribution/Attributes.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-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/ElectricalDistribution/AttributeIds.h>
36
#include <clusters/ElectricalDistribution/ClusterId.h>
37
#include <clusters/ElectricalDistribution/Enums.h>
38
#include <clusters/ElectricalDistribution/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace ElectricalDistribution {
44
namespace Attributes {
45
46
namespace MaxContinuousCurrent {
47
struct TypeInfo
48
{
49
    using Type             = chip::app::DataModel::Nullable<int64_t>;
50
    using DecodableType    = chip::app::DataModel::Nullable<int64_t>;
51
    using DecodableArgType = const chip::app::DataModel::Nullable<int64_t> &;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaxContinuousCurrent::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
};
57
} // namespace MaxContinuousCurrent
58
namespace MaxVoltage {
59
struct TypeInfo
60
{
61
    using Type             = chip::app::DataModel::Nullable<int64_t>;
62
    using DecodableType    = chip::app::DataModel::Nullable<int64_t>;
63
    using DecodableArgType = const chip::app::DataModel::Nullable<int64_t> &;
64
65
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
66
0
    static constexpr AttributeId GetAttributeId() { return Attributes::MaxVoltage::Id; }
67
0
    static constexpr bool MustUseTimedWrite() { return false; }
68
};
69
} // namespace MaxVoltage
70
namespace NumberOfPoles {
71
struct TypeInfo
72
{
73
    using Type             = chip::app::DataModel::Nullable<uint16_t>;
74
    using DecodableType    = chip::app::DataModel::Nullable<uint16_t>;
75
    using DecodableArgType = const chip::app::DataModel::Nullable<uint16_t> &;
76
77
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
78
0
    static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfPoles::Id; }
79
0
    static constexpr bool MustUseTimedWrite() { return false; }
80
};
81
} // namespace NumberOfPoles
82
namespace EndOfLife {
83
struct TypeInfo
84
{
85
    using Type             = chip::app::DataModel::Nullable<chip::app::Clusters::ElectricalDistribution::EndOfLifeEnum>;
86
    using DecodableType    = chip::app::DataModel::Nullable<chip::app::Clusters::ElectricalDistribution::EndOfLifeEnum>;
87
    using DecodableArgType = const chip::app::DataModel::Nullable<chip::app::Clusters::ElectricalDistribution::EndOfLifeEnum> &;
88
89
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
90
0
    static constexpr AttributeId GetAttributeId() { return Attributes::EndOfLife::Id; }
91
0
    static constexpr bool MustUseTimedWrite() { return false; }
92
};
93
} // namespace EndOfLife
94
namespace ServiceEntranceRated {
95
struct TypeInfo
96
{
97
    using Type             = chip::app::DataModel::Nullable<bool>;
98
    using DecodableType    = chip::app::DataModel::Nullable<bool>;
99
    using DecodableArgType = const chip::app::DataModel::Nullable<bool> &;
100
101
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
102
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ServiceEntranceRated::Id; }
103
0
    static constexpr bool MustUseTimedWrite() { return false; }
104
};
105
} // namespace ServiceEntranceRated
106
namespace GeneratedCommandList {
107
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
108
{
109
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
110
};
111
} // namespace GeneratedCommandList
112
namespace AcceptedCommandList {
113
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
114
{
115
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
116
};
117
} // namespace AcceptedCommandList
118
namespace AttributeList {
119
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
120
{
121
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
122
};
123
} // namespace AttributeList
124
namespace FeatureMap {
125
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
126
{
127
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
128
};
129
} // namespace FeatureMap
130
namespace ClusterRevision {
131
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
132
{
133
0
    static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
134
};
135
} // namespace ClusterRevision
136
137
struct TypeInfo
138
{
139
    struct DecodableType
140
    {
141
0
        static constexpr ClusterId GetClusterId() { return Clusters::ElectricalDistribution::Id; }
142
143
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
144
145
        Attributes::MaxContinuousCurrent::TypeInfo::DecodableType maxContinuousCurrent;
146
        Attributes::MaxVoltage::TypeInfo::DecodableType maxVoltage;
147
        Attributes::NumberOfPoles::TypeInfo::DecodableType numberOfPoles;
148
        Attributes::EndOfLife::TypeInfo::DecodableType endOfLife;
149
        Attributes::ServiceEntranceRated::TypeInfo::DecodableType serviceEntranceRated;
150
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
151
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
152
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
153
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
154
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
155
    };
156
};
157
} // namespace Attributes
158
} // namespace ElectricalDistribution
159
} // namespace Clusters
160
} // namespace app
161
} // namespace chip