/src/connectedhomeip/zzz_generated/app-common/clusters/BallastConfiguration/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/BallastConfiguration/AttributeIds.h> |
36 | | #include <clusters/BallastConfiguration/ClusterId.h> |
37 | | #include <clusters/BallastConfiguration/Enums.h> |
38 | | #include <clusters/BallastConfiguration/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace BallastConfiguration { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace PhysicalMinLevel { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = uint8_t; |
50 | | using DecodableType = uint8_t; |
51 | | using DecodableArgType = uint8_t; |
52 | | |
53 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
54 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalMinLevel::Id; } |
55 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
56 | | }; |
57 | | } // namespace PhysicalMinLevel |
58 | | namespace PhysicalMaxLevel { |
59 | | struct TypeInfo |
60 | | { |
61 | | using Type = uint8_t; |
62 | | using DecodableType = uint8_t; |
63 | | using DecodableArgType = uint8_t; |
64 | | |
65 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
66 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::PhysicalMaxLevel::Id; } |
67 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
68 | | }; |
69 | | } // namespace PhysicalMaxLevel |
70 | | namespace BallastStatus { |
71 | | struct TypeInfo |
72 | | { |
73 | | using Type = chip::BitMask<chip::app::Clusters::BallastConfiguration::BallastStatusBitmap>; |
74 | | using DecodableType = chip::BitMask<chip::app::Clusters::BallastConfiguration::BallastStatusBitmap>; |
75 | | using DecodableArgType = chip::BitMask<chip::app::Clusters::BallastConfiguration::BallastStatusBitmap>; |
76 | | |
77 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
78 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BallastStatus::Id; } |
79 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
80 | | }; |
81 | | } // namespace BallastStatus |
82 | | namespace MinLevel { |
83 | | struct TypeInfo |
84 | | { |
85 | | using Type = uint8_t; |
86 | | using DecodableType = uint8_t; |
87 | | using DecodableArgType = uint8_t; |
88 | | |
89 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
90 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MinLevel::Id; } |
91 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
92 | | }; |
93 | | } // namespace MinLevel |
94 | | namespace MaxLevel { |
95 | | struct TypeInfo |
96 | | { |
97 | | using Type = uint8_t; |
98 | | using DecodableType = uint8_t; |
99 | | using DecodableArgType = uint8_t; |
100 | | |
101 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
102 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxLevel::Id; } |
103 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
104 | | }; |
105 | | } // namespace MaxLevel |
106 | | namespace IntrinsicBallastFactor { |
107 | | struct TypeInfo |
108 | | { |
109 | | using Type = chip::app::DataModel::Nullable<uint8_t>; |
110 | | using DecodableType = chip::app::DataModel::Nullable<uint8_t>; |
111 | | using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &; |
112 | | |
113 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
114 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::IntrinsicBallastFactor::Id; } |
115 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
116 | | }; |
117 | | } // namespace IntrinsicBallastFactor |
118 | | namespace BallastFactorAdjustment { |
119 | | struct TypeInfo |
120 | | { |
121 | | using Type = chip::app::DataModel::Nullable<uint8_t>; |
122 | | using DecodableType = chip::app::DataModel::Nullable<uint8_t>; |
123 | | using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &; |
124 | | |
125 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
126 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BallastFactorAdjustment::Id; } |
127 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
128 | | }; |
129 | | } // namespace BallastFactorAdjustment |
130 | | namespace LampQuantity { |
131 | | struct TypeInfo |
132 | | { |
133 | | using Type = uint8_t; |
134 | | using DecodableType = uint8_t; |
135 | | using DecodableArgType = uint8_t; |
136 | | |
137 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
138 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampQuantity::Id; } |
139 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
140 | | }; |
141 | | } // namespace LampQuantity |
142 | | namespace LampType { |
143 | | struct TypeInfo |
144 | | { |
145 | | using Type = chip::CharSpan; |
146 | | using DecodableType = chip::CharSpan; |
147 | | using DecodableArgType = chip::CharSpan; |
148 | | |
149 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
150 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampType::Id; } |
151 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
152 | 0 | static constexpr size_t MaxLength() { return 16; } |
153 | | }; |
154 | | } // namespace LampType |
155 | | namespace LampManufacturer { |
156 | | struct TypeInfo |
157 | | { |
158 | | using Type = chip::CharSpan; |
159 | | using DecodableType = chip::CharSpan; |
160 | | using DecodableArgType = chip::CharSpan; |
161 | | |
162 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
163 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampManufacturer::Id; } |
164 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
165 | 0 | static constexpr size_t MaxLength() { return 16; } |
166 | | }; |
167 | | } // namespace LampManufacturer |
168 | | namespace LampRatedHours { |
169 | | struct TypeInfo |
170 | | { |
171 | | using Type = chip::app::DataModel::Nullable<uint32_t>; |
172 | | using DecodableType = chip::app::DataModel::Nullable<uint32_t>; |
173 | | using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &; |
174 | | |
175 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
176 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampRatedHours::Id; } |
177 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
178 | | }; |
179 | | } // namespace LampRatedHours |
180 | | namespace LampBurnHours { |
181 | | struct TypeInfo |
182 | | { |
183 | | using Type = chip::app::DataModel::Nullable<uint32_t>; |
184 | | using DecodableType = chip::app::DataModel::Nullable<uint32_t>; |
185 | | using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &; |
186 | | |
187 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
188 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampBurnHours::Id; } |
189 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
190 | | }; |
191 | | } // namespace LampBurnHours |
192 | | namespace LampAlarmMode { |
193 | | struct TypeInfo |
194 | | { |
195 | | using Type = chip::BitMask<chip::app::Clusters::BallastConfiguration::LampAlarmModeBitmap>; |
196 | | using DecodableType = chip::BitMask<chip::app::Clusters::BallastConfiguration::LampAlarmModeBitmap>; |
197 | | using DecodableArgType = chip::BitMask<chip::app::Clusters::BallastConfiguration::LampAlarmModeBitmap>; |
198 | | |
199 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
200 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampAlarmMode::Id; } |
201 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
202 | | }; |
203 | | } // namespace LampAlarmMode |
204 | | namespace LampBurnHoursTripPoint { |
205 | | struct TypeInfo |
206 | | { |
207 | | using Type = chip::app::DataModel::Nullable<uint32_t>; |
208 | | using DecodableType = chip::app::DataModel::Nullable<uint32_t>; |
209 | | using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &; |
210 | | |
211 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
212 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::LampBurnHoursTripPoint::Id; } |
213 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
214 | | }; |
215 | | } // namespace LampBurnHoursTripPoint |
216 | | namespace GeneratedCommandList { |
217 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
218 | | { |
219 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
220 | | }; |
221 | | } // namespace GeneratedCommandList |
222 | | namespace AcceptedCommandList { |
223 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
224 | | { |
225 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
226 | | }; |
227 | | } // namespace AcceptedCommandList |
228 | | namespace AttributeList { |
229 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
230 | | { |
231 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
232 | | }; |
233 | | } // namespace AttributeList |
234 | | namespace FeatureMap { |
235 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
236 | | { |
237 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
238 | | }; |
239 | | } // namespace FeatureMap |
240 | | namespace ClusterRevision { |
241 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
242 | | { |
243 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
244 | | }; |
245 | | } // namespace ClusterRevision |
246 | | |
247 | | struct TypeInfo |
248 | | { |
249 | | struct DecodableType |
250 | | { |
251 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::BallastConfiguration::Id; } |
252 | | |
253 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
254 | | |
255 | | Attributes::PhysicalMinLevel::TypeInfo::DecodableType physicalMinLevel = static_cast<uint8_t>(0); |
256 | | Attributes::PhysicalMaxLevel::TypeInfo::DecodableType physicalMaxLevel = static_cast<uint8_t>(0); |
257 | | Attributes::BallastStatus::TypeInfo::DecodableType ballastStatus = |
258 | | static_cast<chip::BitMask<chip::app::Clusters::BallastConfiguration::BallastStatusBitmap>>(0); |
259 | | Attributes::MinLevel::TypeInfo::DecodableType minLevel = static_cast<uint8_t>(0); |
260 | | Attributes::MaxLevel::TypeInfo::DecodableType maxLevel = static_cast<uint8_t>(0); |
261 | | Attributes::IntrinsicBallastFactor::TypeInfo::DecodableType intrinsicBallastFactor; |
262 | | Attributes::BallastFactorAdjustment::TypeInfo::DecodableType ballastFactorAdjustment; |
263 | | Attributes::LampQuantity::TypeInfo::DecodableType lampQuantity = static_cast<uint8_t>(0); |
264 | | Attributes::LampType::TypeInfo::DecodableType lampType; |
265 | | Attributes::LampManufacturer::TypeInfo::DecodableType lampManufacturer; |
266 | | Attributes::LampRatedHours::TypeInfo::DecodableType lampRatedHours; |
267 | | Attributes::LampBurnHours::TypeInfo::DecodableType lampBurnHours; |
268 | | Attributes::LampAlarmMode::TypeInfo::DecodableType lampAlarmMode = |
269 | | static_cast<chip::BitMask<chip::app::Clusters::BallastConfiguration::LampAlarmModeBitmap>>(0); |
270 | | Attributes::LampBurnHoursTripPoint::TypeInfo::DecodableType lampBurnHoursTripPoint; |
271 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
272 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
273 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
274 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
275 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
276 | | }; |
277 | | }; |
278 | | } // namespace Attributes |
279 | | } // namespace BallastConfiguration |
280 | | } // namespace Clusters |
281 | | } // namespace app |
282 | | } // namespace chip |