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