Coverage Report

Created: 2025-09-02 06:46

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