/src/connectedhomeip/zzz_generated/app-common/clusters/CameraAvSettingsUserLevelManagement/Commands.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-Commands.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/data-model/DecodableList.h> |
24 | | #include <app/data-model/Encode.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/NullObject.h> |
27 | | #include <app/data-model/Nullable.h> |
28 | | #include <lib/core/DataModelTypes.h> |
29 | | #include <lib/core/Optional.h> |
30 | | #include <lib/core/TLV.h> |
31 | | #include <lib/support/BitMask.h> |
32 | | |
33 | | #include <clusters/shared/Enums.h> |
34 | | #include <clusters/shared/Structs.h> |
35 | | |
36 | | #include <clusters/CameraAvSettingsUserLevelManagement/ClusterId.h> |
37 | | #include <clusters/CameraAvSettingsUserLevelManagement/CommandIds.h> |
38 | | #include <clusters/CameraAvSettingsUserLevelManagement/Enums.h> |
39 | | #include <clusters/CameraAvSettingsUserLevelManagement/Structs.h> |
40 | | |
41 | | #include <cstdint> |
42 | | |
43 | | namespace chip { |
44 | | namespace app { |
45 | | namespace Clusters { |
46 | | namespace CameraAvSettingsUserLevelManagement { |
47 | | namespace Commands { |
48 | | // Forward-declarations so we can reference these later. |
49 | | |
50 | | namespace MPTZSetPosition { |
51 | | struct Type; |
52 | | struct DecodableType; |
53 | | } // namespace MPTZSetPosition |
54 | | |
55 | | namespace MPTZRelativeMove { |
56 | | struct Type; |
57 | | struct DecodableType; |
58 | | } // namespace MPTZRelativeMove |
59 | | |
60 | | namespace MPTZMoveToPreset { |
61 | | struct Type; |
62 | | struct DecodableType; |
63 | | } // namespace MPTZMoveToPreset |
64 | | |
65 | | namespace MPTZSavePreset { |
66 | | struct Type; |
67 | | struct DecodableType; |
68 | | } // namespace MPTZSavePreset |
69 | | |
70 | | namespace MPTZRemovePreset { |
71 | | struct Type; |
72 | | struct DecodableType; |
73 | | } // namespace MPTZRemovePreset |
74 | | |
75 | | namespace DPTZSetViewport { |
76 | | struct Type; |
77 | | struct DecodableType; |
78 | | } // namespace DPTZSetViewport |
79 | | |
80 | | namespace DPTZRelativeMove { |
81 | | struct Type; |
82 | | struct DecodableType; |
83 | | } // namespace DPTZRelativeMove |
84 | | |
85 | | } // namespace Commands |
86 | | |
87 | | namespace Commands { |
88 | | namespace MPTZSetPosition { |
89 | | enum class Fields : uint8_t |
90 | | { |
91 | | kPan = 0, |
92 | | kTilt = 1, |
93 | | kZoom = 2, |
94 | | }; |
95 | | |
96 | | struct Type |
97 | | { |
98 | | public: |
99 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
100 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZSetPosition::Id; } |
101 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
102 | | |
103 | | Optional<int16_t> pan; |
104 | | Optional<int16_t> tilt; |
105 | | Optional<uint8_t> zoom; |
106 | | |
107 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
108 | | |
109 | | using ResponseType = DataModel::NullObjectType; |
110 | | |
111 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
112 | | }; |
113 | | |
114 | | struct DecodableType |
115 | | { |
116 | | public: |
117 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZSetPosition::Id; } |
118 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
119 | | static constexpr bool kIsFabricScoped = false; |
120 | | |
121 | | Optional<int16_t> pan; |
122 | | Optional<int16_t> tilt; |
123 | | Optional<uint8_t> zoom; |
124 | | |
125 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
126 | | }; |
127 | | }; // namespace MPTZSetPosition |
128 | | namespace MPTZRelativeMove { |
129 | | enum class Fields : uint8_t |
130 | | { |
131 | | kPanDelta = 0, |
132 | | kTiltDelta = 1, |
133 | | kZoomDelta = 2, |
134 | | }; |
135 | | |
136 | | struct Type |
137 | | { |
138 | | public: |
139 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
140 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZRelativeMove::Id; } |
141 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
142 | | |
143 | | Optional<int16_t> panDelta; |
144 | | Optional<int16_t> tiltDelta; |
145 | | Optional<int8_t> zoomDelta; |
146 | | |
147 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
148 | | |
149 | | using ResponseType = DataModel::NullObjectType; |
150 | | |
151 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
152 | | }; |
153 | | |
154 | | struct DecodableType |
155 | | { |
156 | | public: |
157 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZRelativeMove::Id; } |
158 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
159 | | static constexpr bool kIsFabricScoped = false; |
160 | | |
161 | | Optional<int16_t> panDelta; |
162 | | Optional<int16_t> tiltDelta; |
163 | | Optional<int8_t> zoomDelta; |
164 | | |
165 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
166 | | }; |
167 | | }; // namespace MPTZRelativeMove |
168 | | namespace MPTZMoveToPreset { |
169 | | enum class Fields : uint8_t |
170 | | { |
171 | | kPresetID = 0, |
172 | | }; |
173 | | |
174 | | struct Type |
175 | | { |
176 | | public: |
177 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
178 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZMoveToPreset::Id; } |
179 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
180 | | |
181 | | uint8_t presetID = static_cast<uint8_t>(0); |
182 | | |
183 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
184 | | |
185 | | using ResponseType = DataModel::NullObjectType; |
186 | | |
187 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
188 | | }; |
189 | | |
190 | | struct DecodableType |
191 | | { |
192 | | public: |
193 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZMoveToPreset::Id; } |
194 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
195 | | static constexpr bool kIsFabricScoped = false; |
196 | | |
197 | | uint8_t presetID = static_cast<uint8_t>(0); |
198 | | |
199 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
200 | | }; |
201 | | }; // namespace MPTZMoveToPreset |
202 | | namespace MPTZSavePreset { |
203 | | enum class Fields : uint8_t |
204 | | { |
205 | | kPresetID = 0, |
206 | | kName = 1, |
207 | | }; |
208 | | |
209 | | struct Type |
210 | | { |
211 | | public: |
212 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
213 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZSavePreset::Id; } |
214 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
215 | | |
216 | | Optional<uint8_t> presetID; |
217 | | chip::CharSpan name; |
218 | | |
219 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
220 | | |
221 | | using ResponseType = DataModel::NullObjectType; |
222 | | |
223 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
224 | | }; |
225 | | |
226 | | struct DecodableType |
227 | | { |
228 | | public: |
229 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZSavePreset::Id; } |
230 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
231 | | static constexpr bool kIsFabricScoped = false; |
232 | | |
233 | | Optional<uint8_t> presetID; |
234 | | chip::CharSpan name; |
235 | | |
236 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
237 | | }; |
238 | | }; // namespace MPTZSavePreset |
239 | | namespace MPTZRemovePreset { |
240 | | enum class Fields : uint8_t |
241 | | { |
242 | | kPresetID = 0, |
243 | | }; |
244 | | |
245 | | struct Type |
246 | | { |
247 | | public: |
248 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
249 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZRemovePreset::Id; } |
250 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
251 | | |
252 | | uint8_t presetID = static_cast<uint8_t>(0); |
253 | | |
254 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
255 | | |
256 | | using ResponseType = DataModel::NullObjectType; |
257 | | |
258 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
259 | | }; |
260 | | |
261 | | struct DecodableType |
262 | | { |
263 | | public: |
264 | 0 | static constexpr CommandId GetCommandId() { return Commands::MPTZRemovePreset::Id; } |
265 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
266 | | static constexpr bool kIsFabricScoped = false; |
267 | | |
268 | | uint8_t presetID = static_cast<uint8_t>(0); |
269 | | |
270 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
271 | | }; |
272 | | }; // namespace MPTZRemovePreset |
273 | | namespace DPTZSetViewport { |
274 | | enum class Fields : uint8_t |
275 | | { |
276 | | kVideoStreamID = 0, |
277 | | kViewport = 1, |
278 | | }; |
279 | | |
280 | | struct Type |
281 | | { |
282 | | public: |
283 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
284 | 0 | static constexpr CommandId GetCommandId() { return Commands::DPTZSetViewport::Id; } |
285 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
286 | | |
287 | | uint16_t videoStreamID = static_cast<uint16_t>(0); |
288 | | Globals::Structs::ViewportStruct::Type viewport; |
289 | | |
290 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
291 | | |
292 | | using ResponseType = DataModel::NullObjectType; |
293 | | |
294 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
295 | | }; |
296 | | |
297 | | struct DecodableType |
298 | | { |
299 | | public: |
300 | 0 | static constexpr CommandId GetCommandId() { return Commands::DPTZSetViewport::Id; } |
301 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
302 | | static constexpr bool kIsFabricScoped = false; |
303 | | |
304 | | uint16_t videoStreamID = static_cast<uint16_t>(0); |
305 | | Globals::Structs::ViewportStruct::DecodableType viewport; |
306 | | |
307 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
308 | | }; |
309 | | }; // namespace DPTZSetViewport |
310 | | namespace DPTZRelativeMove { |
311 | | enum class Fields : uint8_t |
312 | | { |
313 | | kVideoStreamID = 0, |
314 | | kDeltaX = 1, |
315 | | kDeltaY = 2, |
316 | | kZoomDelta = 3, |
317 | | }; |
318 | | |
319 | | struct Type |
320 | | { |
321 | | public: |
322 | | // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand |
323 | 0 | static constexpr CommandId GetCommandId() { return Commands::DPTZRelativeMove::Id; } |
324 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
325 | | |
326 | | uint16_t videoStreamID = static_cast<uint16_t>(0); |
327 | | Optional<int16_t> deltaX; |
328 | | Optional<int16_t> deltaY; |
329 | | Optional<int8_t> zoomDelta; |
330 | | |
331 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
332 | | |
333 | | using ResponseType = DataModel::NullObjectType; |
334 | | |
335 | 0 | static constexpr bool MustUseTimedInvoke() { return false; } |
336 | | }; |
337 | | |
338 | | struct DecodableType |
339 | | { |
340 | | public: |
341 | 0 | static constexpr CommandId GetCommandId() { return Commands::DPTZRelativeMove::Id; } |
342 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::CameraAvSettingsUserLevelManagement::Id; } |
343 | | static constexpr bool kIsFabricScoped = false; |
344 | | |
345 | | uint16_t videoStreamID = static_cast<uint16_t>(0); |
346 | | Optional<int16_t> deltaX; |
347 | | Optional<int16_t> deltaY; |
348 | | Optional<int8_t> zoomDelta; |
349 | | |
350 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
351 | | }; |
352 | | }; // namespace DPTZRelativeMove |
353 | | } // namespace Commands |
354 | | } // namespace CameraAvSettingsUserLevelManagement |
355 | | } // namespace Clusters |
356 | | } // namespace app |
357 | | } // namespace chip |