Coverage Report

Created: 2025-09-02 06:46

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