/src/connectedhomeip/zzz_generated/app-common/clusters/MicrowaveOvenControl/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/MicrowaveOvenControl/AttributeIds.h> |
36 | | #include <clusters/MicrowaveOvenControl/ClusterId.h> |
37 | | #include <clusters/MicrowaveOvenControl/Enums.h> |
38 | | #include <clusters/MicrowaveOvenControl/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace MicrowaveOvenControl { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace CookTime { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = uint32_t; |
50 | | using DecodableType = uint32_t; |
51 | | using DecodableArgType = uint32_t; |
52 | | |
53 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
54 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::CookTime::Id; } |
55 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
56 | | }; |
57 | | } // namespace CookTime |
58 | | namespace MaxCookTime { |
59 | | struct TypeInfo |
60 | | { |
61 | | using Type = uint32_t; |
62 | | using DecodableType = uint32_t; |
63 | | using DecodableArgType = uint32_t; |
64 | | |
65 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
66 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxCookTime::Id; } |
67 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
68 | | }; |
69 | | } // namespace MaxCookTime |
70 | | namespace PowerSetting { |
71 | | struct TypeInfo |
72 | | { |
73 | | using Type = uint8_t; |
74 | | using DecodableType = uint8_t; |
75 | | using DecodableArgType = uint8_t; |
76 | | |
77 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
78 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::PowerSetting::Id; } |
79 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
80 | | }; |
81 | | } // namespace PowerSetting |
82 | | namespace MinPower { |
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::MicrowaveOvenControl::Id; } |
90 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MinPower::Id; } |
91 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
92 | | }; |
93 | | } // namespace MinPower |
94 | | namespace MaxPower { |
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::MicrowaveOvenControl::Id; } |
102 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::MaxPower::Id; } |
103 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
104 | | }; |
105 | | } // namespace MaxPower |
106 | | namespace PowerStep { |
107 | | struct TypeInfo |
108 | | { |
109 | | using Type = uint8_t; |
110 | | using DecodableType = uint8_t; |
111 | | using DecodableArgType = uint8_t; |
112 | | |
113 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
114 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::PowerStep::Id; } |
115 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
116 | | }; |
117 | | } // namespace PowerStep |
118 | | namespace SupportedWatts { |
119 | | struct TypeInfo |
120 | | { |
121 | | using Type = chip::app::DataModel::List<const uint16_t>; |
122 | | using DecodableType = chip::app::DataModel::DecodableList<uint16_t>; |
123 | | using DecodableArgType = const chip::app::DataModel::DecodableList<uint16_t> &; |
124 | | |
125 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
126 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::SupportedWatts::Id; } |
127 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
128 | | }; |
129 | | } // namespace SupportedWatts |
130 | | namespace SelectedWattIndex { |
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::MicrowaveOvenControl::Id; } |
138 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::SelectedWattIndex::Id; } |
139 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
140 | | }; |
141 | | } // namespace SelectedWattIndex |
142 | | namespace WattRating { |
143 | | struct TypeInfo |
144 | | { |
145 | | using Type = uint16_t; |
146 | | using DecodableType = uint16_t; |
147 | | using DecodableArgType = uint16_t; |
148 | | |
149 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
150 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::WattRating::Id; } |
151 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
152 | | }; |
153 | | } // namespace WattRating |
154 | | namespace GeneratedCommandList { |
155 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
156 | | { |
157 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
158 | | }; |
159 | | } // namespace GeneratedCommandList |
160 | | namespace AcceptedCommandList { |
161 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
162 | | { |
163 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
164 | | }; |
165 | | } // namespace AcceptedCommandList |
166 | | namespace AttributeList { |
167 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
168 | | { |
169 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
170 | | }; |
171 | | } // namespace AttributeList |
172 | | namespace FeatureMap { |
173 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
174 | | { |
175 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
176 | | }; |
177 | | } // namespace FeatureMap |
178 | | namespace ClusterRevision { |
179 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
180 | | { |
181 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
182 | | }; |
183 | | } // namespace ClusterRevision |
184 | | |
185 | | struct TypeInfo |
186 | | { |
187 | | struct DecodableType |
188 | | { |
189 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::MicrowaveOvenControl::Id; } |
190 | | |
191 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
192 | | |
193 | | Attributes::CookTime::TypeInfo::DecodableType cookTime = static_cast<uint32_t>(0); |
194 | | Attributes::MaxCookTime::TypeInfo::DecodableType maxCookTime = static_cast<uint32_t>(0); |
195 | | Attributes::PowerSetting::TypeInfo::DecodableType powerSetting = static_cast<uint8_t>(0); |
196 | | Attributes::MinPower::TypeInfo::DecodableType minPower = static_cast<uint8_t>(0); |
197 | | Attributes::MaxPower::TypeInfo::DecodableType maxPower = static_cast<uint8_t>(0); |
198 | | Attributes::PowerStep::TypeInfo::DecodableType powerStep = static_cast<uint8_t>(0); |
199 | | Attributes::SupportedWatts::TypeInfo::DecodableType supportedWatts; |
200 | | Attributes::SelectedWattIndex::TypeInfo::DecodableType selectedWattIndex = static_cast<uint8_t>(0); |
201 | | Attributes::WattRating::TypeInfo::DecodableType wattRating = static_cast<uint16_t>(0); |
202 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
203 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
204 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
205 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
206 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
207 | | }; |
208 | | }; |
209 | | } // namespace Attributes |
210 | | } // namespace MicrowaveOvenControl |
211 | | } // namespace Clusters |
212 | | } // namespace app |
213 | | } // namespace chip |