Coverage Report

Created: 2025-09-02 06:46

/src/connectedhomeip/zzz_generated/app-common/clusters/ApplicationBasic/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/ApplicationBasic/AttributeIds.h>
36
#include <clusters/ApplicationBasic/ClusterId.h>
37
#include <clusters/ApplicationBasic/Enums.h>
38
#include <clusters/ApplicationBasic/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace ApplicationBasic {
44
namespace Attributes {
45
46
namespace VendorName {
47
struct TypeInfo
48
{
49
    using Type             = chip::CharSpan;
50
    using DecodableType    = chip::CharSpan;
51
    using DecodableArgType = chip::CharSpan;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::VendorName::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
0
    static constexpr size_t MaxLength() { return 32; }
57
};
58
} // namespace VendorName
59
namespace VendorID {
60
struct TypeInfo
61
{
62
    using Type             = chip::VendorId;
63
    using DecodableType    = chip::VendorId;
64
    using DecodableArgType = chip::VendorId;
65
66
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
67
0
    static constexpr AttributeId GetAttributeId() { return Attributes::VendorID::Id; }
68
0
    static constexpr bool MustUseTimedWrite() { return false; }
69
};
70
} // namespace VendorID
71
namespace ApplicationName {
72
struct TypeInfo
73
{
74
    using Type             = chip::CharSpan;
75
    using DecodableType    = chip::CharSpan;
76
    using DecodableArgType = chip::CharSpan;
77
78
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
79
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationName::Id; }
80
0
    static constexpr bool MustUseTimedWrite() { return false; }
81
0
    static constexpr size_t MaxLength() { return 256; }
82
};
83
} // namespace ApplicationName
84
namespace ProductID {
85
struct TypeInfo
86
{
87
    using Type             = uint16_t;
88
    using DecodableType    = uint16_t;
89
    using DecodableArgType = uint16_t;
90
91
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
92
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ProductID::Id; }
93
0
    static constexpr bool MustUseTimedWrite() { return false; }
94
};
95
} // namespace ProductID
96
namespace Application {
97
struct TypeInfo
98
{
99
    using Type             = chip::app::Clusters::ApplicationBasic::Structs::ApplicationStruct::Type;
100
    using DecodableType    = chip::app::Clusters::ApplicationBasic::Structs::ApplicationStruct::DecodableType;
101
    using DecodableArgType = const chip::app::Clusters::ApplicationBasic::Structs::ApplicationStruct::DecodableType &;
102
103
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
104
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Application::Id; }
105
0
    static constexpr bool MustUseTimedWrite() { return false; }
106
};
107
} // namespace Application
108
namespace Status {
109
struct TypeInfo
110
{
111
    using Type             = chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum;
112
    using DecodableType    = chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum;
113
    using DecodableArgType = chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum;
114
115
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
116
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Status::Id; }
117
0
    static constexpr bool MustUseTimedWrite() { return false; }
118
};
119
} // namespace Status
120
namespace ApplicationVersion {
121
struct TypeInfo
122
{
123
    using Type             = chip::CharSpan;
124
    using DecodableType    = chip::CharSpan;
125
    using DecodableArgType = chip::CharSpan;
126
127
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
128
0
    static constexpr AttributeId GetAttributeId() { return Attributes::ApplicationVersion::Id; }
129
0
    static constexpr bool MustUseTimedWrite() { return false; }
130
0
    static constexpr size_t MaxLength() { return 32; }
131
};
132
} // namespace ApplicationVersion
133
namespace AllowedVendorList {
134
struct TypeInfo
135
{
136
    using Type             = chip::app::DataModel::List<const chip::VendorId>;
137
    using DecodableType    = chip::app::DataModel::DecodableList<chip::VendorId>;
138
    using DecodableArgType = const chip::app::DataModel::DecodableList<chip::VendorId> &;
139
140
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
141
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AllowedVendorList::Id; }
142
0
    static constexpr bool MustUseTimedWrite() { return false; }
143
};
144
} // namespace AllowedVendorList
145
namespace GeneratedCommandList {
146
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
147
{
148
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
149
};
150
} // namespace GeneratedCommandList
151
namespace AcceptedCommandList {
152
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
153
{
154
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
155
};
156
} // namespace AcceptedCommandList
157
namespace AttributeList {
158
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
159
{
160
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
161
};
162
} // namespace AttributeList
163
namespace FeatureMap {
164
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
165
{
166
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
167
};
168
} // namespace FeatureMap
169
namespace ClusterRevision {
170
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
171
{
172
0
    static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
173
};
174
} // namespace ClusterRevision
175
176
struct TypeInfo
177
{
178
    struct DecodableType
179
    {
180
0
        static constexpr ClusterId GetClusterId() { return Clusters::ApplicationBasic::Id; }
181
182
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
183
184
        Attributes::VendorName::TypeInfo::DecodableType vendorName;
185
        Attributes::VendorID::TypeInfo::DecodableType vendorID = static_cast<chip::VendorId>(0);
186
        Attributes::ApplicationName::TypeInfo::DecodableType applicationName;
187
        Attributes::ProductID::TypeInfo::DecodableType productID = static_cast<uint16_t>(0);
188
        Attributes::Application::TypeInfo::DecodableType application;
189
        Attributes::Status::TypeInfo::DecodableType status =
190
            static_cast<chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum>(0);
191
        Attributes::ApplicationVersion::TypeInfo::DecodableType applicationVersion;
192
        Attributes::AllowedVendorList::TypeInfo::DecodableType allowedVendorList;
193
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
194
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
195
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
196
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
197
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
198
    };
199
};
200
} // namespace Attributes
201
} // namespace ApplicationBasic
202
} // namespace Clusters
203
} // namespace app
204
} // namespace chip