/src/connectedhomeip/zzz_generated/app-common/clusters/AmbientContextSensing/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/AmbientContextSensing/AttributeIds.h> |
36 | | #include <clusters/AmbientContextSensing/ClusterId.h> |
37 | | #include <clusters/AmbientContextSensing/Enums.h> |
38 | | #include <clusters/AmbientContextSensing/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace AmbientContextSensing { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace HumanActivityDetected { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = bool; |
50 | | using DecodableType = bool; |
51 | | using DecodableArgType = bool; |
52 | | |
53 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
54 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::HumanActivityDetected::Id; } |
55 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
56 | | }; |
57 | | } // namespace HumanActivityDetected |
58 | | namespace ObjectIdentified { |
59 | | struct TypeInfo |
60 | | { |
61 | | using Type = bool; |
62 | | using DecodableType = bool; |
63 | | using DecodableArgType = bool; |
64 | | |
65 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
66 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ObjectIdentified::Id; } |
67 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
68 | | }; |
69 | | } // namespace ObjectIdentified |
70 | | namespace AudioContextDetected { |
71 | | struct TypeInfo |
72 | | { |
73 | | using Type = bool; |
74 | | using DecodableType = bool; |
75 | | using DecodableArgType = bool; |
76 | | |
77 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
78 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::AudioContextDetected::Id; } |
79 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
80 | | }; |
81 | | } // namespace AudioContextDetected |
82 | | namespace AmbientContextType { |
83 | | struct TypeInfo |
84 | | { |
85 | | using Type = |
86 | | chip::app::DataModel::List<const chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::Type>; |
87 | | using DecodableType = chip::app::DataModel::DecodableList< |
88 | | chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::DecodableType>; |
89 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
90 | | chip::app::Clusters::AmbientContextSensing::Structs::AmbientContextTypeStruct::DecodableType> &; |
91 | | |
92 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
93 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::AmbientContextType::Id; } |
94 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
95 | | }; |
96 | | } // namespace AmbientContextType |
97 | | namespace AmbientContextTypeSupported { |
98 | | struct TypeInfo |
99 | | { |
100 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::Globals::Structs::SemanticTagStruct::Type>; |
101 | | using DecodableType = |
102 | | chip::app::DataModel::DecodableList<chip::app::Clusters::Globals::Structs::SemanticTagStruct::DecodableType>; |
103 | | using DecodableArgType = |
104 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::Globals::Structs::SemanticTagStruct::DecodableType> &; |
105 | | |
106 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
107 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::AmbientContextTypeSupported::Id; } |
108 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
109 | | }; |
110 | | } // namespace AmbientContextTypeSupported |
111 | | namespace ObjectCountReached { |
112 | | struct TypeInfo |
113 | | { |
114 | | using Type = bool; |
115 | | using DecodableType = bool; |
116 | | using DecodableArgType = bool; |
117 | | |
118 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
119 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ObjectCountReached::Id; } |
120 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
121 | | }; |
122 | | } // namespace ObjectCountReached |
123 | | namespace ObjectCountConfig { |
124 | | struct TypeInfo |
125 | | { |
126 | | using Type = chip::app::Clusters::AmbientContextSensing::Structs::ObjectCountConfigStruct::Type; |
127 | | using DecodableType = chip::app::Clusters::AmbientContextSensing::Structs::ObjectCountConfigStruct::DecodableType; |
128 | | using DecodableArgType = const chip::app::Clusters::AmbientContextSensing::Structs::ObjectCountConfigStruct::DecodableType &; |
129 | | |
130 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
131 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ObjectCountConfig::Id; } |
132 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
133 | | }; |
134 | | } // namespace ObjectCountConfig |
135 | | namespace ObjectCount { |
136 | | struct TypeInfo |
137 | | { |
138 | | using Type = uint16_t; |
139 | | using DecodableType = uint16_t; |
140 | | using DecodableArgType = uint16_t; |
141 | | |
142 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
143 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ObjectCount::Id; } |
144 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
145 | | }; |
146 | | } // namespace ObjectCount |
147 | | namespace SimultaneousDetectionLimit { |
148 | | struct TypeInfo |
149 | | { |
150 | | using Type = uint8_t; |
151 | | using DecodableType = uint8_t; |
152 | | using DecodableArgType = uint8_t; |
153 | | |
154 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
155 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::SimultaneousDetectionLimit::Id; } |
156 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
157 | | }; |
158 | | } // namespace SimultaneousDetectionLimit |
159 | | namespace HoldTime { |
160 | | struct TypeInfo |
161 | | { |
162 | | using Type = uint16_t; |
163 | | using DecodableType = uint16_t; |
164 | | using DecodableArgType = uint16_t; |
165 | | |
166 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
167 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::HoldTime::Id; } |
168 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
169 | | }; |
170 | | } // namespace HoldTime |
171 | | namespace HoldTimeLimits { |
172 | | struct TypeInfo |
173 | | { |
174 | | using Type = chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::Type; |
175 | | using DecodableType = chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::DecodableType; |
176 | | using DecodableArgType = const chip::app::Clusters::AmbientContextSensing::Structs::HoldTimeLimitsStruct::DecodableType &; |
177 | | |
178 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
179 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::HoldTimeLimits::Id; } |
180 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
181 | | }; |
182 | | } // namespace HoldTimeLimits |
183 | | namespace PredictedActivity { |
184 | | struct TypeInfo |
185 | | { |
186 | | using Type = |
187 | | chip::app::DataModel::List<const chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::Type>; |
188 | | using DecodableType = chip::app::DataModel::DecodableList< |
189 | | chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::DecodableType>; |
190 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
191 | | chip::app::Clusters::AmbientContextSensing::Structs::PredictedActivityStruct::DecodableType> &; |
192 | | |
193 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
194 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::PredictedActivity::Id; } |
195 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
196 | | }; |
197 | | } // namespace PredictedActivity |
198 | | namespace GeneratedCommandList { |
199 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
200 | | { |
201 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
202 | | }; |
203 | | } // namespace GeneratedCommandList |
204 | | namespace AcceptedCommandList { |
205 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
206 | | { |
207 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
208 | | }; |
209 | | } // namespace AcceptedCommandList |
210 | | namespace AttributeList { |
211 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
212 | | { |
213 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
214 | | }; |
215 | | } // namespace AttributeList |
216 | | namespace FeatureMap { |
217 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
218 | | { |
219 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
220 | | }; |
221 | | } // namespace FeatureMap |
222 | | namespace ClusterRevision { |
223 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
224 | | { |
225 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
226 | | }; |
227 | | } // namespace ClusterRevision |
228 | | |
229 | | struct TypeInfo |
230 | | { |
231 | | struct DecodableType |
232 | | { |
233 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::AmbientContextSensing::Id; } |
234 | | |
235 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
236 | | |
237 | | Attributes::HumanActivityDetected::TypeInfo::DecodableType humanActivityDetected = static_cast<bool>(0); |
238 | | Attributes::ObjectIdentified::TypeInfo::DecodableType objectIdentified = static_cast<bool>(0); |
239 | | Attributes::AudioContextDetected::TypeInfo::DecodableType audioContextDetected = static_cast<bool>(0); |
240 | | Attributes::AmbientContextType::TypeInfo::DecodableType ambientContextType; |
241 | | Attributes::AmbientContextTypeSupported::TypeInfo::DecodableType ambientContextTypeSupported; |
242 | | Attributes::ObjectCountReached::TypeInfo::DecodableType objectCountReached = static_cast<bool>(0); |
243 | | Attributes::ObjectCountConfig::TypeInfo::DecodableType objectCountConfig; |
244 | | Attributes::ObjectCount::TypeInfo::DecodableType objectCount = static_cast<uint16_t>(0); |
245 | | Attributes::SimultaneousDetectionLimit::TypeInfo::DecodableType simultaneousDetectionLimit = static_cast<uint8_t>(0); |
246 | | Attributes::HoldTime::TypeInfo::DecodableType holdTime = static_cast<uint16_t>(0); |
247 | | Attributes::HoldTimeLimits::TypeInfo::DecodableType holdTimeLimits; |
248 | | Attributes::PredictedActivity::TypeInfo::DecodableType predictedActivity; |
249 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
250 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
251 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
252 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
253 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
254 | | }; |
255 | | }; |
256 | | } // namespace Attributes |
257 | | } // namespace AmbientContextSensing |
258 | | } // namespace Clusters |
259 | | } // namespace app |
260 | | } // namespace chip |