3 * Copyright (c) 2021 Project CHIP Authors
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 // THIS FILE IS GENERATED BY ZAP
20 // Prevent multiple inclusion
23 #include <app/util/basic-types.h>
24 #include <lib/support/Span.h>
26 #include <system/SystemPacketBuffer.h>
28 /*----------------------------------------------------------------------------*\
30 |---------------------------------------------------------------------+--------|
31 | ApplicationBasic | 0x050D |
32 | BarrierControl | 0x0103 |
35 | ColorControl | 0x0300 |
36 | ContentLaunch | 0xF002 |
38 | GeneralCommissioning | 0x0030 |
42 | LevelControl | 0x0008 |
44 | MediaPlayback | 0xF001 |
45 | NetworkCommissioning | 0xAAAA |
48 | TemperatureMeasurement | 0x0402 |
49 \*----------------------------------------------------------------------------*/
51 /*----------------------------------------------------------------------------*\
52 | Cluster ApplicationBasic | 0x050D |
53 |------------------------------------------------------------------------------|
55 |------------------------------------------------------------------------------|
57 | * VendorName | 0x0000 |
58 | * VendorId | 0x0001 |
59 | * ApplicationName | 0x0002 |
60 | * ProductId | 0x0003 |
61 | * ApplicationId | 0x0005 |
62 | * CatalogVendorId | 0x0006 |
63 | * ApplicationSatus | 0x0007 |
64 | * ClusterRevision | 0xFFFD |
65 \*----------------------------------------------------------------------------*/
69 * Encode a Application Basic server discover command into buffer including the APS frame
71 chip::System::PacketBufferHandle encodeApplicationBasicClusterDiscoverAttributes(uint8_t seqNum,
72 chip::EndpointId destinationEndpoint);
76 * Encode a Application Basic server read command for the vendor name attribute into buffer including the APS frame
78 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadVendorNameAttribute(uint8_t seqNum,
79 chip::EndpointId destinationEndpoint);
83 * Encode a Application Basic server read command for the vendor id attribute into buffer including the APS frame
85 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadVendorIdAttribute(uint8_t seqNum,
86 chip::EndpointId destinationEndpoint);
90 * Encode a Application Basic server read command for the application name attribute into buffer including the APS frame
92 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadApplicationNameAttribute(uint8_t seqNum,
93 chip::EndpointId destinationEndpoint);
97 * Encode a Application Basic server read command for the product id attribute into buffer including the APS frame
99 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadProductIdAttribute(uint8_t seqNum,
100 chip::EndpointId destinationEndpoint);
104 * Encode a Application Basic server read command for the application id attribute into buffer including the APS frame
106 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadApplicationIdAttribute(uint8_t seqNum,
107 chip::EndpointId destinationEndpoint);
111 * Encode a Application Basic server read command for the catalog vendor id attribute into buffer including the APS frame
113 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadCatalogVendorIdAttribute(uint8_t seqNum,
114 chip::EndpointId destinationEndpoint);
118 * Encode a Application Basic server read command for the application satus attribute into buffer including the APS frame
120 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadApplicationSatusAttribute(uint8_t seqNum,
121 chip::EndpointId destinationEndpoint);
125 * Encode a Application Basic server read command for the cluster revision attribute into buffer including the APS frame
127 chip::System::PacketBufferHandle encodeApplicationBasicClusterReadClusterRevisionAttribute(uint8_t seqNum,
128 chip::EndpointId destinationEndpoint);
130 /*----------------------------------------------------------------------------*\
131 | Cluster BarrierControl | 0x0103 |
132 |------------------------------------------------------------------------------|
134 | * BarrierControlGoToPercent | 0x00 |
135 | * BarrierControlStop | 0x01 |
136 |------------------------------------------------------------------------------|
138 | * BarrierMovingState | 0x0001 |
139 | * BarrierSafetyStatus | 0x0002 |
140 | * BarrierCapabilities | 0x0003 |
141 | * BarrierPosition | 0x000A |
142 | * ClusterRevision | 0xFFFD |
143 \*----------------------------------------------------------------------------*/
147 * Encode an BarrierControlGoToPercent command for Barrier Control server into buffer including the APS frame
149 chip::System::PacketBufferHandle encodeBarrierControlClusterBarrierControlGoToPercentCommand(uint8_t seqNum,
150 chip::EndpointId destinationEndpoint,
151 uint8_t percentOpen);
155 * Encode an BarrierControlStop command for Barrier Control server into buffer including the APS frame
157 chip::System::PacketBufferHandle encodeBarrierControlClusterBarrierControlStopCommand(uint8_t seqNum,
158 chip::EndpointId destinationEndpoint);
162 * Encode a Barrier Control server discover command into buffer including the APS frame
164 chip::System::PacketBufferHandle encodeBarrierControlClusterDiscoverAttributes(uint8_t seqNum,
165 chip::EndpointId destinationEndpoint);
169 * Encode a Barrier Control server read command for the barrier moving state attribute into buffer including the APS frame
171 chip::System::PacketBufferHandle encodeBarrierControlClusterReadBarrierMovingStateAttribute(uint8_t seqNum,
172 chip::EndpointId destinationEndpoint);
176 * Encode a Barrier Control server read command for the barrier safety status attribute into buffer including the APS frame
178 chip::System::PacketBufferHandle encodeBarrierControlClusterReadBarrierSafetyStatusAttribute(uint8_t seqNum,
179 chip::EndpointId destinationEndpoint);
183 * Encode a Barrier Control server read command for the barrier capabilities attribute into buffer including the APS frame
185 chip::System::PacketBufferHandle encodeBarrierControlClusterReadBarrierCapabilitiesAttribute(uint8_t seqNum,
186 chip::EndpointId destinationEndpoint);
190 * Encode a Barrier Control server read command for the barrier position attribute into buffer including the APS frame
192 chip::System::PacketBufferHandle encodeBarrierControlClusterReadBarrierPositionAttribute(uint8_t seqNum,
193 chip::EndpointId destinationEndpoint);
197 * Encode a Barrier Control server read command for the cluster revision attribute into buffer including the APS frame
199 chip::System::PacketBufferHandle encodeBarrierControlClusterReadClusterRevisionAttribute(uint8_t seqNum,
200 chip::EndpointId destinationEndpoint);
202 /*----------------------------------------------------------------------------*\
203 | Cluster Basic | 0x0028 |
204 |------------------------------------------------------------------------------|
206 | * MfgSpecificPing | 0x00 |
207 |------------------------------------------------------------------------------|
209 | * InteractionModelVersion | 0x0000 |
210 | * VendorName | 0x0001 |
211 | * VendorID | 0x0002 |
212 | * ProductName | 0x0003 |
213 | * ProductID | 0x0004 |
214 | * UserLabel | 0x0005 |
215 | * Location | 0x0006 |
216 | * HardwareVersion | 0x0007 |
217 | * HardwareVersionString | 0x0008 |
218 | * SoftwareVersion | 0x0009 |
219 | * SoftwareVersionString | 0x000A |
220 | * ClusterRevision | 0xFFFD |
221 \*----------------------------------------------------------------------------*/
225 * Encode an MfgSpecificPing command for Basic server into buffer including the APS frame
227 chip::System::PacketBufferHandle encodeBasicClusterMfgSpecificPingCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
231 * Encode a Basic server discover command into buffer including the APS frame
233 chip::System::PacketBufferHandle encodeBasicClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
237 * Encode a Basic server read command for the InteractionModelVersion attribute into buffer including the APS frame
239 chip::System::PacketBufferHandle encodeBasicClusterReadInteractionModelVersionAttribute(uint8_t seqNum,
240 chip::EndpointId destinationEndpoint);
244 * Encode a Basic server read command for the VendorName attribute into buffer including the APS frame
246 chip::System::PacketBufferHandle encodeBasicClusterReadVendorNameAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
250 * Encode a Basic server read command for the VendorID attribute into buffer including the APS frame
252 chip::System::PacketBufferHandle encodeBasicClusterReadVendorIDAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
256 * Encode a Basic server read command for the ProductName attribute into buffer including the APS frame
258 chip::System::PacketBufferHandle encodeBasicClusterReadProductNameAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
262 * Encode a Basic server read command for the ProductID attribute into buffer including the APS frame
264 chip::System::PacketBufferHandle encodeBasicClusterReadProductIDAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
268 * Encode a Basic server read command for the UserLabel attribute into buffer including the APS frame
270 chip::System::PacketBufferHandle encodeBasicClusterReadUserLabelAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
274 * Encode a Basic server write command for the UserLabel attribute into buffer including the APS frame
276 chip::System::PacketBufferHandle encodeBasicClusterWriteUserLabelAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint,
277 chip::ByteSpan userLabel);
281 * Encode a Basic server read command for the Location attribute into buffer including the APS frame
283 chip::System::PacketBufferHandle encodeBasicClusterReadLocationAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
287 * Encode a Basic server write command for the Location attribute into buffer including the APS frame
289 chip::System::PacketBufferHandle encodeBasicClusterWriteLocationAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint,
290 chip::ByteSpan location);
294 * Encode a Basic server read command for the HardwareVersion attribute into buffer including the APS frame
296 chip::System::PacketBufferHandle encodeBasicClusterReadHardwareVersionAttribute(uint8_t seqNum,
297 chip::EndpointId destinationEndpoint);
301 * Encode a Basic server read command for the HardwareVersionString attribute into buffer including the APS frame
303 chip::System::PacketBufferHandle encodeBasicClusterReadHardwareVersionStringAttribute(uint8_t seqNum,
304 chip::EndpointId destinationEndpoint);
308 * Encode a Basic server read command for the SoftwareVersion attribute into buffer including the APS frame
310 chip::System::PacketBufferHandle encodeBasicClusterReadSoftwareVersionAttribute(uint8_t seqNum,
311 chip::EndpointId destinationEndpoint);
315 * Encode a Basic server read command for the SoftwareVersionString attribute into buffer including the APS frame
317 chip::System::PacketBufferHandle encodeBasicClusterReadSoftwareVersionStringAttribute(uint8_t seqNum,
318 chip::EndpointId destinationEndpoint);
322 * Encode a Basic server read command for the cluster revision attribute into buffer including the APS frame
324 chip::System::PacketBufferHandle encodeBasicClusterReadClusterRevisionAttribute(uint8_t seqNum,
325 chip::EndpointId destinationEndpoint);
327 /*----------------------------------------------------------------------------*\
328 | Cluster Binding | 0xF000 |
329 |------------------------------------------------------------------------------|
333 |------------------------------------------------------------------------------|
335 | * ClusterRevision | 0xFFFD |
336 \*----------------------------------------------------------------------------*/
340 * Encode an Bind command for Binding server into buffer including the APS frame
342 chip::System::PacketBufferHandle encodeBindingClusterBindCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
343 chip::NodeId nodeId, chip::GroupId groupId,
344 chip::EndpointId endpointId, chip::ClusterId clusterId);
348 * Encode an Unbind command for Binding server into buffer including the APS frame
350 chip::System::PacketBufferHandle encodeBindingClusterUnbindCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
351 chip::NodeId nodeId, chip::GroupId groupId,
352 chip::EndpointId endpointId, chip::ClusterId clusterId);
356 * Encode a Binding server discover command into buffer including the APS frame
358 chip::System::PacketBufferHandle encodeBindingClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
362 * Encode a Binding server read command for the cluster revision attribute into buffer including the APS frame
364 chip::System::PacketBufferHandle encodeBindingClusterReadClusterRevisionAttribute(uint8_t seqNum,
365 chip::EndpointId destinationEndpoint);
367 /*----------------------------------------------------------------------------*\
368 | Cluster ColorControl | 0x0300 |
369 |------------------------------------------------------------------------------|
371 | * MoveColor | 0x08 |
372 | * MoveColorTemperature | 0x4B |
374 | * MoveSaturation | 0x04 |
375 | * MoveToColor | 0x07 |
376 | * MoveToColorTemperature | 0x0A |
377 | * MoveToHue | 0x00 |
378 | * MoveToHueAndSaturation | 0x06 |
379 | * MoveToSaturation | 0x03 |
380 | * StepColor | 0x09 |
381 | * StepColorTemperature | 0x4C |
383 | * StepSaturation | 0x05 |
384 | * StopMoveStep | 0x47 |
385 |------------------------------------------------------------------------------|
387 | * CurrentHue | 0x0000 |
388 | * CurrentSaturation | 0x0001 |
389 | * RemainingTime | 0x0002 |
390 | * CurrentX | 0x0003 |
391 | * CurrentY | 0x0004 |
392 | * DriftCompensation | 0x0005 |
393 | * CompensationText | 0x0006 |
394 | * ColorTemperature | 0x0007 |
395 | * ColorMode | 0x0008 |
396 | * ColorControlOptions | 0x000F |
397 | * NumberOfPrimaries | 0x0010 |
398 | * Primary1X | 0x0011 |
399 | * Primary1Y | 0x0012 |
400 | * Primary1Intensity | 0x0013 |
401 | * Primary2X | 0x0015 |
402 | * Primary2Y | 0x0016 |
403 | * Primary2Intensity | 0x0017 |
404 | * Primary3X | 0x0019 |
405 | * Primary3Y | 0x001A |
406 | * Primary3Intensity | 0x001B |
407 | * Primary4X | 0x0020 |
408 | * Primary4Y | 0x0021 |
409 | * Primary4Intensity | 0x0022 |
410 | * Primary5X | 0x0024 |
411 | * Primary5Y | 0x0025 |
412 | * Primary5Intensity | 0x0026 |
413 | * Primary6X | 0x0028 |
414 | * Primary6Y | 0x0029 |
415 | * Primary6Intensity | 0x002A |
416 | * WhitePointX | 0x0030 |
417 | * WhitePointY | 0x0031 |
418 | * ColorPointRX | 0x0032 |
419 | * ColorPointRY | 0x0033 |
420 | * ColorPointRIntensity | 0x0034 |
421 | * ColorPointGX | 0x0036 |
422 | * ColorPointGY | 0x0037 |
423 | * ColorPointGIntensity | 0x0038 |
424 | * ColorPointBX | 0x003A |
425 | * ColorPointBY | 0x003B |
426 | * ColorPointBIntensity | 0x003C |
427 | * EnhancedCurrentHue | 0x4000 |
428 | * EnhancedColorMode | 0x4001 |
429 | * ColorLoopActive | 0x4002 |
430 | * ColorLoopDirection | 0x4003 |
431 | * ColorLoopTime | 0x4004 |
432 | * ColorCapabilities | 0x400A |
433 | * ColorTempPhysicalMin | 0x400B |
434 | * ColorTempPhysicalMax | 0x400C |
435 | * CoupleColorTempToLevelMinMireds | 0x400D |
436 | * StartUpColorTemperatureMireds | 0x4010 |
437 | * ClusterRevision | 0xFFFD |
438 \*----------------------------------------------------------------------------*/
442 * Encode an MoveColor command for Color Control server into buffer including the APS frame
444 chip::System::PacketBufferHandle encodeColorControlClusterMoveColorCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
445 int16_t rateX, int16_t rateY, uint8_t optionsMask,
446 uint8_t optionsOverride);
450 * Encode an MoveColorTemperature command for Color Control server into buffer including the APS frame
452 chip::System::PacketBufferHandle encodeColorControlClusterMoveColorTemperatureCommand(
453 uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t moveMode, uint16_t rate, uint16_t colorTemperatureMinimum,
454 uint16_t colorTemperatureMaximum, uint8_t optionsMask, uint8_t optionsOverride);
458 * Encode an MoveHue command for Color Control server into buffer including the APS frame
460 chip::System::PacketBufferHandle encodeColorControlClusterMoveHueCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
461 uint8_t moveMode, uint8_t rate, uint8_t optionsMask,
462 uint8_t optionsOverride);
466 * Encode an MoveSaturation command for Color Control server into buffer including the APS frame
468 chip::System::PacketBufferHandle encodeColorControlClusterMoveSaturationCommand(uint8_t seqNum,
469 chip::EndpointId destinationEndpoint,
470 uint8_t moveMode, uint8_t rate, uint8_t optionsMask,
471 uint8_t optionsOverride);
475 * Encode an MoveToColor command for Color Control server into buffer including the APS frame
477 chip::System::PacketBufferHandle encodeColorControlClusterMoveToColorCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
478 uint16_t colorX, uint16_t colorY,
479 uint16_t transitionTime, uint8_t optionsMask,
480 uint8_t optionsOverride);
484 * Encode an MoveToColorTemperature command for Color Control server into buffer including the APS frame
486 chip::System::PacketBufferHandle
487 encodeColorControlClusterMoveToColorTemperatureCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
488 uint16_t colorTemperature, uint16_t transitionTime, uint8_t optionsMask,
489 uint8_t optionsOverride);
493 * Encode an MoveToHue command for Color Control server into buffer including the APS frame
495 chip::System::PacketBufferHandle encodeColorControlClusterMoveToHueCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
496 uint8_t hue, uint8_t direction, uint16_t transitionTime,
497 uint8_t optionsMask, uint8_t optionsOverride);
501 * Encode an MoveToHueAndSaturation command for Color Control server into buffer including the APS frame
503 chip::System::PacketBufferHandle
504 encodeColorControlClusterMoveToHueAndSaturationCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t hue,
505 uint8_t saturation, uint16_t transitionTime, uint8_t optionsMask,
506 uint8_t optionsOverride);
510 * Encode an MoveToSaturation command for Color Control server into buffer including the APS frame
512 chip::System::PacketBufferHandle encodeColorControlClusterMoveToSaturationCommand(uint8_t seqNum,
513 chip::EndpointId destinationEndpoint,
514 uint8_t saturation, uint16_t transitionTime,
515 uint8_t optionsMask, uint8_t optionsOverride);
519 * Encode an StepColor command for Color Control server into buffer including the APS frame
521 chip::System::PacketBufferHandle encodeColorControlClusterStepColorCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
522 int16_t stepX, int16_t stepY, uint16_t transitionTime,
523 uint8_t optionsMask, uint8_t optionsOverride);
527 * Encode an StepColorTemperature command for Color Control server into buffer including the APS frame
529 chip::System::PacketBufferHandle encodeColorControlClusterStepColorTemperatureCommand(
530 uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t stepMode, uint16_t stepSize, uint16_t transitionTime,
531 uint16_t colorTemperatureMinimum, uint16_t colorTemperatureMaximum, uint8_t optionsMask, uint8_t optionsOverride);
535 * Encode an StepHue command for Color Control server into buffer including the APS frame
537 chip::System::PacketBufferHandle encodeColorControlClusterStepHueCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
538 uint8_t stepMode, uint8_t stepSize, uint8_t transitionTime,
539 uint8_t optionsMask, uint8_t optionsOverride);
543 * Encode an StepSaturation command for Color Control server into buffer including the APS frame
545 chip::System::PacketBufferHandle encodeColorControlClusterStepSaturationCommand(uint8_t seqNum,
546 chip::EndpointId destinationEndpoint,
547 uint8_t stepMode, uint8_t stepSize,
548 uint8_t transitionTime, uint8_t optionsMask,
549 uint8_t optionsOverride);
553 * Encode an StopMoveStep command for Color Control server into buffer including the APS frame
555 chip::System::PacketBufferHandle encodeColorControlClusterStopMoveStepCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
556 uint8_t optionsMask, uint8_t optionsOverride);
560 * Encode a Color Control server discover command into buffer including the APS frame
562 chip::System::PacketBufferHandle encodeColorControlClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
566 * Encode a Color Control server read command for the current hue attribute into buffer including the APS frame
568 chip::System::PacketBufferHandle encodeColorControlClusterReadCurrentHueAttribute(uint8_t seqNum,
569 chip::EndpointId destinationEndpoint);
573 * Encode a Color Control server configure report command for the current hue attribute into buffer including the APS frame
575 chip::System::PacketBufferHandle encodeColorControlClusterConfigureCurrentHueAttribute(uint8_t seqNum,
576 chip::EndpointId destinationEndpoint,
577 uint16_t minInterval, uint16_t maxInterval,
582 * Encode a Color Control server read command for the current saturation attribute into buffer including the APS frame
584 chip::System::PacketBufferHandle encodeColorControlClusterReadCurrentSaturationAttribute(uint8_t seqNum,
585 chip::EndpointId destinationEndpoint);
589 * Encode a Color Control server configure report command for the current saturation attribute into buffer including the APS
592 chip::System::PacketBufferHandle encodeColorControlClusterConfigureCurrentSaturationAttribute(uint8_t seqNum,
593 chip::EndpointId destinationEndpoint,
594 uint16_t minInterval,
595 uint16_t maxInterval, uint8_t change);
599 * Encode a Color Control server read command for the remaining time attribute into buffer including the APS frame
601 chip::System::PacketBufferHandle encodeColorControlClusterReadRemainingTimeAttribute(uint8_t seqNum,
602 chip::EndpointId destinationEndpoint);
606 * Encode a Color Control server read command for the current x attribute into buffer including the APS frame
608 chip::System::PacketBufferHandle encodeColorControlClusterReadCurrentXAttribute(uint8_t seqNum,
609 chip::EndpointId destinationEndpoint);
613 * Encode a Color Control server configure report command for the current x attribute into buffer including the APS frame
615 chip::System::PacketBufferHandle encodeColorControlClusterConfigureCurrentXAttribute(uint8_t seqNum,
616 chip::EndpointId destinationEndpoint,
617 uint16_t minInterval, uint16_t maxInterval,
622 * Encode a Color Control server read command for the current y attribute into buffer including the APS frame
624 chip::System::PacketBufferHandle encodeColorControlClusterReadCurrentYAttribute(uint8_t seqNum,
625 chip::EndpointId destinationEndpoint);
629 * Encode a Color Control server configure report command for the current y attribute into buffer including the APS frame
631 chip::System::PacketBufferHandle encodeColorControlClusterConfigureCurrentYAttribute(uint8_t seqNum,
632 chip::EndpointId destinationEndpoint,
633 uint16_t minInterval, uint16_t maxInterval,
638 * Encode a Color Control server read command for the drift compensation attribute into buffer including the APS frame
640 chip::System::PacketBufferHandle encodeColorControlClusterReadDriftCompensationAttribute(uint8_t seqNum,
641 chip::EndpointId destinationEndpoint);
645 * Encode a Color Control server read command for the compensation text attribute into buffer including the APS frame
647 chip::System::PacketBufferHandle encodeColorControlClusterReadCompensationTextAttribute(uint8_t seqNum,
648 chip::EndpointId destinationEndpoint);
652 * Encode a Color Control server read command for the color temperature attribute into buffer including the APS frame
654 chip::System::PacketBufferHandle encodeColorControlClusterReadColorTemperatureAttribute(uint8_t seqNum,
655 chip::EndpointId destinationEndpoint);
659 * Encode a Color Control server configure report command for the color temperature attribute into buffer including the APS frame
661 chip::System::PacketBufferHandle encodeColorControlClusterConfigureColorTemperatureAttribute(uint8_t seqNum,
662 chip::EndpointId destinationEndpoint,
663 uint16_t minInterval,
664 uint16_t maxInterval, uint16_t change);
668 * Encode a Color Control server read command for the color mode attribute into buffer including the APS frame
670 chip::System::PacketBufferHandle encodeColorControlClusterReadColorModeAttribute(uint8_t seqNum,
671 chip::EndpointId destinationEndpoint);
675 * Encode a Color Control server read command for the color control options attribute into buffer including the APS frame
677 chip::System::PacketBufferHandle encodeColorControlClusterReadColorControlOptionsAttribute(uint8_t seqNum,
678 chip::EndpointId destinationEndpoint);
682 * Encode a Color Control server write command for the color control options attribute into buffer including the APS frame
684 chip::System::PacketBufferHandle encodeColorControlClusterWriteColorControlOptionsAttribute(uint8_t seqNum,
685 chip::EndpointId destinationEndpoint,
686 uint8_t colorControlOptions);
690 * Encode a Color Control server read command for the number of primaries attribute into buffer including the APS frame
692 chip::System::PacketBufferHandle encodeColorControlClusterReadNumberOfPrimariesAttribute(uint8_t seqNum,
693 chip::EndpointId destinationEndpoint);
697 * Encode a Color Control server read command for the primary 1 x attribute into buffer including the APS frame
699 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary1XAttribute(uint8_t seqNum,
700 chip::EndpointId destinationEndpoint);
704 * Encode a Color Control server read command for the primary 1 y attribute into buffer including the APS frame
706 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary1YAttribute(uint8_t seqNum,
707 chip::EndpointId destinationEndpoint);
711 * Encode a Color Control server read command for the primary 1 intensity attribute into buffer including the APS frame
713 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary1IntensityAttribute(uint8_t seqNum,
714 chip::EndpointId destinationEndpoint);
718 * Encode a Color Control server read command for the primary 2 x attribute into buffer including the APS frame
720 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary2XAttribute(uint8_t seqNum,
721 chip::EndpointId destinationEndpoint);
725 * Encode a Color Control server read command for the primary 2 y attribute into buffer including the APS frame
727 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary2YAttribute(uint8_t seqNum,
728 chip::EndpointId destinationEndpoint);
732 * Encode a Color Control server read command for the primary 2 intensity attribute into buffer including the APS frame
734 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary2IntensityAttribute(uint8_t seqNum,
735 chip::EndpointId destinationEndpoint);
739 * Encode a Color Control server read command for the primary 3 x attribute into buffer including the APS frame
741 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary3XAttribute(uint8_t seqNum,
742 chip::EndpointId destinationEndpoint);
746 * Encode a Color Control server read command for the primary 3 y attribute into buffer including the APS frame
748 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary3YAttribute(uint8_t seqNum,
749 chip::EndpointId destinationEndpoint);
753 * Encode a Color Control server read command for the primary 3 intensity attribute into buffer including the APS frame
755 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary3IntensityAttribute(uint8_t seqNum,
756 chip::EndpointId destinationEndpoint);
760 * Encode a Color Control server read command for the primary 4 x attribute into buffer including the APS frame
762 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary4XAttribute(uint8_t seqNum,
763 chip::EndpointId destinationEndpoint);
767 * Encode a Color Control server read command for the primary 4 y attribute into buffer including the APS frame
769 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary4YAttribute(uint8_t seqNum,
770 chip::EndpointId destinationEndpoint);
774 * Encode a Color Control server read command for the primary 4 intensity attribute into buffer including the APS frame
776 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary4IntensityAttribute(uint8_t seqNum,
777 chip::EndpointId destinationEndpoint);
781 * Encode a Color Control server read command for the primary 5 x attribute into buffer including the APS frame
783 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary5XAttribute(uint8_t seqNum,
784 chip::EndpointId destinationEndpoint);
788 * Encode a Color Control server read command for the primary 5 y attribute into buffer including the APS frame
790 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary5YAttribute(uint8_t seqNum,
791 chip::EndpointId destinationEndpoint);
795 * Encode a Color Control server read command for the primary 5 intensity attribute into buffer including the APS frame
797 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary5IntensityAttribute(uint8_t seqNum,
798 chip::EndpointId destinationEndpoint);
802 * Encode a Color Control server read command for the primary 6 x attribute into buffer including the APS frame
804 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary6XAttribute(uint8_t seqNum,
805 chip::EndpointId destinationEndpoint);
809 * Encode a Color Control server read command for the primary 6 y attribute into buffer including the APS frame
811 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary6YAttribute(uint8_t seqNum,
812 chip::EndpointId destinationEndpoint);
816 * Encode a Color Control server read command for the primary 6 intensity attribute into buffer including the APS frame
818 chip::System::PacketBufferHandle encodeColorControlClusterReadPrimary6IntensityAttribute(uint8_t seqNum,
819 chip::EndpointId destinationEndpoint);
823 * Encode a Color Control server read command for the white point x attribute into buffer including the APS frame
825 chip::System::PacketBufferHandle encodeColorControlClusterReadWhitePointXAttribute(uint8_t seqNum,
826 chip::EndpointId destinationEndpoint);
830 * Encode a Color Control server write command for the white point x attribute into buffer including the APS frame
832 chip::System::PacketBufferHandle
833 encodeColorControlClusterWriteWhitePointXAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t whitePointX);
837 * Encode a Color Control server read command for the white point y attribute into buffer including the APS frame
839 chip::System::PacketBufferHandle encodeColorControlClusterReadWhitePointYAttribute(uint8_t seqNum,
840 chip::EndpointId destinationEndpoint);
844 * Encode a Color Control server write command for the white point y attribute into buffer including the APS frame
846 chip::System::PacketBufferHandle
847 encodeColorControlClusterWriteWhitePointYAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t whitePointY);
851 * Encode a Color Control server read command for the color point r x attribute into buffer including the APS frame
853 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointRXAttribute(uint8_t seqNum,
854 chip::EndpointId destinationEndpoint);
858 * Encode a Color Control server write command for the color point r x attribute into buffer including the APS frame
860 chip::System::PacketBufferHandle
861 encodeColorControlClusterWriteColorPointRXAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointRX);
865 * Encode a Color Control server read command for the color point r y attribute into buffer including the APS frame
867 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointRYAttribute(uint8_t seqNum,
868 chip::EndpointId destinationEndpoint);
872 * Encode a Color Control server write command for the color point r y attribute into buffer including the APS frame
874 chip::System::PacketBufferHandle
875 encodeColorControlClusterWriteColorPointRYAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointRY);
879 * Encode a Color Control server read command for the color point r intensity attribute into buffer including the APS frame
881 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointRIntensityAttribute(uint8_t seqNum,
882 chip::EndpointId destinationEndpoint);
886 * Encode a Color Control server write command for the color point r intensity attribute into buffer including the APS frame
888 chip::System::PacketBufferHandle encodeColorControlClusterWriteColorPointRIntensityAttribute(uint8_t seqNum,
889 chip::EndpointId destinationEndpoint,
890 uint8_t colorPointRIntensity);
894 * Encode a Color Control server read command for the color point g x attribute into buffer including the APS frame
896 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointGXAttribute(uint8_t seqNum,
897 chip::EndpointId destinationEndpoint);
901 * Encode a Color Control server write command for the color point g x attribute into buffer including the APS frame
903 chip::System::PacketBufferHandle
904 encodeColorControlClusterWriteColorPointGXAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointGX);
908 * Encode a Color Control server read command for the color point g y attribute into buffer including the APS frame
910 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointGYAttribute(uint8_t seqNum,
911 chip::EndpointId destinationEndpoint);
915 * Encode a Color Control server write command for the color point g y attribute into buffer including the APS frame
917 chip::System::PacketBufferHandle
918 encodeColorControlClusterWriteColorPointGYAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointGY);
922 * Encode a Color Control server read command for the color point g intensity attribute into buffer including the APS frame
924 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointGIntensityAttribute(uint8_t seqNum,
925 chip::EndpointId destinationEndpoint);
929 * Encode a Color Control server write command for the color point g intensity attribute into buffer including the APS frame
931 chip::System::PacketBufferHandle encodeColorControlClusterWriteColorPointGIntensityAttribute(uint8_t seqNum,
932 chip::EndpointId destinationEndpoint,
933 uint8_t colorPointGIntensity);
937 * Encode a Color Control server read command for the color point b x attribute into buffer including the APS frame
939 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointBXAttribute(uint8_t seqNum,
940 chip::EndpointId destinationEndpoint);
944 * Encode a Color Control server write command for the color point b x attribute into buffer including the APS frame
946 chip::System::PacketBufferHandle
947 encodeColorControlClusterWriteColorPointBXAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointBX);
951 * Encode a Color Control server read command for the color point b y attribute into buffer including the APS frame
953 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointBYAttribute(uint8_t seqNum,
954 chip::EndpointId destinationEndpoint);
958 * Encode a Color Control server write command for the color point b y attribute into buffer including the APS frame
960 chip::System::PacketBufferHandle
961 encodeColorControlClusterWriteColorPointBYAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t colorPointBY);
965 * Encode a Color Control server read command for the color point b intensity attribute into buffer including the APS frame
967 chip::System::PacketBufferHandle encodeColorControlClusterReadColorPointBIntensityAttribute(uint8_t seqNum,
968 chip::EndpointId destinationEndpoint);
972 * Encode a Color Control server write command for the color point b intensity attribute into buffer including the APS frame
974 chip::System::PacketBufferHandle encodeColorControlClusterWriteColorPointBIntensityAttribute(uint8_t seqNum,
975 chip::EndpointId destinationEndpoint,
976 uint8_t colorPointBIntensity);
980 * Encode a Color Control server read command for the enhanced current hue attribute into buffer including the APS frame
982 chip::System::PacketBufferHandle encodeColorControlClusterReadEnhancedCurrentHueAttribute(uint8_t seqNum,
983 chip::EndpointId destinationEndpoint);
987 * Encode a Color Control server read command for the enhanced color mode attribute into buffer including the APS frame
989 chip::System::PacketBufferHandle encodeColorControlClusterReadEnhancedColorModeAttribute(uint8_t seqNum,
990 chip::EndpointId destinationEndpoint);
994 * Encode a Color Control server read command for the color loop active attribute into buffer including the APS frame
996 chip::System::PacketBufferHandle encodeColorControlClusterReadColorLoopActiveAttribute(uint8_t seqNum,
997 chip::EndpointId destinationEndpoint);
1001 * Encode a Color Control server read command for the color loop direction attribute into buffer including the APS frame
1003 chip::System::PacketBufferHandle encodeColorControlClusterReadColorLoopDirectionAttribute(uint8_t seqNum,
1004 chip::EndpointId destinationEndpoint);
1008 * Encode a Color Control server read command for the color loop time attribute into buffer including the APS frame
1010 chip::System::PacketBufferHandle encodeColorControlClusterReadColorLoopTimeAttribute(uint8_t seqNum,
1011 chip::EndpointId destinationEndpoint);
1015 * Encode a Color Control server read command for the color capabilities attribute into buffer including the APS frame
1017 chip::System::PacketBufferHandle encodeColorControlClusterReadColorCapabilitiesAttribute(uint8_t seqNum,
1018 chip::EndpointId destinationEndpoint);
1022 * Encode a Color Control server read command for the color temp physical min attribute into buffer including the APS frame
1024 chip::System::PacketBufferHandle encodeColorControlClusterReadColorTempPhysicalMinAttribute(uint8_t seqNum,
1025 chip::EndpointId destinationEndpoint);
1029 * Encode a Color Control server read command for the color temp physical max attribute into buffer including the APS frame
1031 chip::System::PacketBufferHandle encodeColorControlClusterReadColorTempPhysicalMaxAttribute(uint8_t seqNum,
1032 chip::EndpointId destinationEndpoint);
1036 * Encode a Color Control server read command for the couple color temp to level min-mireds attribute into buffer including the
1039 chip::System::PacketBufferHandle
1040 encodeColorControlClusterReadCoupleColorTempToLevelMinMiredsAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1044 * Encode a Color Control server read command for the start up color temperature mireds attribute into buffer including the APS
1047 chip::System::PacketBufferHandle
1048 encodeColorControlClusterReadStartUpColorTemperatureMiredsAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1052 * Encode a Color Control server write command for the start up color temperature mireds attribute into buffer including the APS
1055 chip::System::PacketBufferHandle
1056 encodeColorControlClusterWriteStartUpColorTemperatureMiredsAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1057 uint16_t startUpColorTemperatureMireds);
1061 * Encode a Color Control server read command for the cluster revision attribute into buffer including the APS frame
1063 chip::System::PacketBufferHandle encodeColorControlClusterReadClusterRevisionAttribute(uint8_t seqNum,
1064 chip::EndpointId destinationEndpoint);
1066 /*----------------------------------------------------------------------------*\
1067 | Cluster ContentLaunch | 0xF002 |
1068 |------------------------------------------------------------------------------|
1070 | * LaunchContent | 0x00 |
1071 | * LaunchURL | 0x01 |
1072 |------------------------------------------------------------------------------|
1074 | * ClusterRevision | 0xFFFD |
1075 \*----------------------------------------------------------------------------*/
1079 * Encode an LaunchContent command for Content Launch server into buffer including the APS frame
1081 chip::System::PacketBufferHandle encodeContentLaunchClusterLaunchContentCommand(uint8_t seqNum,
1082 chip::EndpointId destinationEndpoint);
1086 * Encode an LaunchURL command for Content Launch server into buffer including the APS frame
1088 chip::System::PacketBufferHandle encodeContentLaunchClusterLaunchURLCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1092 * Encode a Content Launch server discover command into buffer including the APS frame
1094 chip::System::PacketBufferHandle encodeContentLaunchClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1098 * Encode a Content Launch server read command for the cluster revision attribute into buffer including the APS frame
1100 chip::System::PacketBufferHandle encodeContentLaunchClusterReadClusterRevisionAttribute(uint8_t seqNum,
1101 chip::EndpointId destinationEndpoint);
1103 /*----------------------------------------------------------------------------*\
1104 | Cluster DoorLock | 0x0101 |
1105 |------------------------------------------------------------------------------|
1107 | * ClearAllPins | 0x08 |
1108 | * ClearAllRfids | 0x19 |
1109 | * ClearHolidaySchedule | 0x13 |
1110 | * ClearPin | 0x07 |
1111 | * ClearRfid | 0x18 |
1112 | * ClearWeekdaySchedule | 0x0D |
1113 | * ClearYeardaySchedule | 0x10 |
1114 | * GetHolidaySchedule | 0x12 |
1115 | * GetLogRecord | 0x04 |
1117 | * GetRfid | 0x17 |
1118 | * GetUserType | 0x15 |
1119 | * GetWeekdaySchedule | 0x0C |
1120 | * GetYeardaySchedule | 0x0F |
1121 | * LockDoor | 0x00 |
1122 | * SetHolidaySchedule | 0x11 |
1124 | * SetRfid | 0x16 |
1125 | * SetUserType | 0x14 |
1126 | * SetWeekdaySchedule | 0x0B |
1127 | * SetYeardaySchedule | 0x0E |
1128 | * UnlockDoor | 0x01 |
1129 | * UnlockWithTimeout | 0x03 |
1130 |------------------------------------------------------------------------------|
1132 | * LockState | 0x0000 |
1133 | * LockType | 0x0001 |
1134 | * ActuatorEnabled | 0x0002 |
1135 | * ClusterRevision | 0xFFFD |
1136 \*----------------------------------------------------------------------------*/
1140 * Encode an ClearAllPins command for Door Lock server into buffer including the APS frame
1142 chip::System::PacketBufferHandle encodeDoorLockClusterClearAllPinsCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1146 * Encode an ClearAllRfids command for Door Lock server into buffer including the APS frame
1148 chip::System::PacketBufferHandle encodeDoorLockClusterClearAllRfidsCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1152 * Encode an ClearHolidaySchedule command for Door Lock server into buffer including the APS frame
1154 chip::System::PacketBufferHandle
1155 encodeDoorLockClusterClearHolidayScheduleCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t scheduleId);
1159 * Encode an ClearPin command for Door Lock server into buffer including the APS frame
1161 chip::System::PacketBufferHandle encodeDoorLockClusterClearPinCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1166 * Encode an ClearRfid command for Door Lock server into buffer including the APS frame
1168 chip::System::PacketBufferHandle encodeDoorLockClusterClearRfidCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1173 * Encode an ClearWeekdaySchedule command for Door Lock server into buffer including the APS frame
1175 chip::System::PacketBufferHandle encodeDoorLockClusterClearWeekdayScheduleCommand(uint8_t seqNum,
1176 chip::EndpointId destinationEndpoint,
1177 uint8_t scheduleId, uint16_t userId);
1181 * Encode an ClearYeardaySchedule command for Door Lock server into buffer including the APS frame
1183 chip::System::PacketBufferHandle encodeDoorLockClusterClearYeardayScheduleCommand(uint8_t seqNum,
1184 chip::EndpointId destinationEndpoint,
1185 uint8_t scheduleId, uint16_t userId);
1189 * Encode an GetHolidaySchedule command for Door Lock server into buffer including the APS frame
1191 chip::System::PacketBufferHandle
1192 encodeDoorLockClusterGetHolidayScheduleCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t scheduleId);
1196 * Encode an GetLogRecord command for Door Lock server into buffer including the APS frame
1198 chip::System::PacketBufferHandle encodeDoorLockClusterGetLogRecordCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1203 * Encode an GetPin command for Door Lock server into buffer including the APS frame
1205 chip::System::PacketBufferHandle encodeDoorLockClusterGetPinCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1210 * Encode an GetRfid command for Door Lock server into buffer including the APS frame
1212 chip::System::PacketBufferHandle encodeDoorLockClusterGetRfidCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1217 * Encode an GetUserType command for Door Lock server into buffer including the APS frame
1219 chip::System::PacketBufferHandle encodeDoorLockClusterGetUserTypeCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1224 * Encode an GetWeekdaySchedule command for Door Lock server into buffer including the APS frame
1226 chip::System::PacketBufferHandle encodeDoorLockClusterGetWeekdayScheduleCommand(uint8_t seqNum,
1227 chip::EndpointId destinationEndpoint,
1228 uint8_t scheduleId, uint16_t userId);
1232 * Encode an GetYeardaySchedule command for Door Lock server into buffer including the APS frame
1234 chip::System::PacketBufferHandle encodeDoorLockClusterGetYeardayScheduleCommand(uint8_t seqNum,
1235 chip::EndpointId destinationEndpoint,
1236 uint8_t scheduleId, uint16_t userId);
1240 * Encode an LockDoor command for Door Lock server into buffer including the APS frame
1242 chip::System::PacketBufferHandle encodeDoorLockClusterLockDoorCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1243 chip::ByteSpan pin);
1247 * Encode an SetHolidaySchedule command for Door Lock server into buffer including the APS frame
1249 chip::System::PacketBufferHandle
1250 encodeDoorLockClusterSetHolidayScheduleCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t scheduleId,
1251 uint32_t localStartTime, uint32_t localEndTime, uint8_t operatingModeDuringHoliday);
1255 * Encode an SetPin command for Door Lock server into buffer including the APS frame
1257 chip::System::PacketBufferHandle encodeDoorLockClusterSetPinCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1258 uint16_t userId, uint8_t userStatus, uint8_t userType,
1259 chip::ByteSpan pin);
1263 * Encode an SetRfid command for Door Lock server into buffer including the APS frame
1265 chip::System::PacketBufferHandle encodeDoorLockClusterSetRfidCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1266 uint16_t userId, uint8_t userStatus, uint8_t userType,
1271 * Encode an SetUserType command for Door Lock server into buffer including the APS frame
1273 chip::System::PacketBufferHandle encodeDoorLockClusterSetUserTypeCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1274 uint16_t userId, uint8_t userType);
1278 * Encode an SetWeekdaySchedule command for Door Lock server into buffer including the APS frame
1280 chip::System::PacketBufferHandle
1281 encodeDoorLockClusterSetWeekdayScheduleCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint8_t scheduleId,
1282 uint16_t userId, uint8_t daysMask, uint8_t startHour, uint8_t startMinute,
1283 uint8_t endHour, uint8_t endMinute);
1287 * Encode an SetYeardaySchedule command for Door Lock server into buffer including the APS frame
1289 chip::System::PacketBufferHandle encodeDoorLockClusterSetYeardayScheduleCommand(uint8_t seqNum,
1290 chip::EndpointId destinationEndpoint,
1291 uint8_t scheduleId, uint16_t userId,
1292 uint32_t localStartTime, uint32_t localEndTime);
1296 * Encode an UnlockDoor command for Door Lock server into buffer including the APS frame
1298 chip::System::PacketBufferHandle encodeDoorLockClusterUnlockDoorCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1299 chip::ByteSpan pin);
1303 * Encode an UnlockWithTimeout command for Door Lock server into buffer including the APS frame
1305 chip::System::PacketBufferHandle encodeDoorLockClusterUnlockWithTimeoutCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1306 uint16_t timeoutInSeconds, chip::ByteSpan pin);
1310 * Encode a Door Lock server discover command into buffer including the APS frame
1312 chip::System::PacketBufferHandle encodeDoorLockClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1316 * Encode a Door Lock server read command for the lock state attribute into buffer including the APS frame
1318 chip::System::PacketBufferHandle encodeDoorLockClusterReadLockStateAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1322 * Encode a Door Lock server configure report command for the lock state attribute into buffer including the APS frame
1324 chip::System::PacketBufferHandle encodeDoorLockClusterConfigureLockStateAttribute(uint8_t seqNum,
1325 chip::EndpointId destinationEndpoint,
1326 uint16_t minInterval, uint16_t maxInterval);
1330 * Encode a Door Lock server read command for the lock type attribute into buffer including the APS frame
1332 chip::System::PacketBufferHandle encodeDoorLockClusterReadLockTypeAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1336 * Encode a Door Lock server read command for the actuator enabled attribute into buffer including the APS frame
1338 chip::System::PacketBufferHandle encodeDoorLockClusterReadActuatorEnabledAttribute(uint8_t seqNum,
1339 chip::EndpointId destinationEndpoint);
1343 * Encode a Door Lock server read command for the cluster revision attribute into buffer including the APS frame
1345 chip::System::PacketBufferHandle encodeDoorLockClusterReadClusterRevisionAttribute(uint8_t seqNum,
1346 chip::EndpointId destinationEndpoint);
1348 /*----------------------------------------------------------------------------*\
1349 | Cluster GeneralCommissioning | 0x0030 |
1350 |------------------------------------------------------------------------------|
1352 | * ArmFailSafe | 0x02 |
1353 | * CommissioningComplete | 0x06 |
1354 | * SetFabric | 0x00 |
1355 |------------------------------------------------------------------------------|
1357 | * FabricId | 0x0000 |
1358 | * Breadcrumb | 0x0001 |
1359 | * ClusterRevision | 0xFFFD |
1360 \*----------------------------------------------------------------------------*/
1364 * Encode an ArmFailSafe command for General Commissioning server into buffer including the APS frame
1366 chip::System::PacketBufferHandle encodeGeneralCommissioningClusterArmFailSafeCommand(uint8_t seqNum,
1367 chip::EndpointId destinationEndpoint,
1368 uint16_t expiryLengthSeconds,
1369 uint64_t breadcrumb, uint32_t timeoutMs);
1373 * Encode an CommissioningComplete command for General Commissioning server into buffer including the APS frame
1375 chip::System::PacketBufferHandle
1376 encodeGeneralCommissioningClusterCommissioningCompleteCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1380 * Encode an SetFabric command for General Commissioning server into buffer including the APS frame
1382 chip::System::PacketBufferHandle
1383 encodeGeneralCommissioningClusterSetFabricCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, chip::ByteSpan fabricId,
1384 chip::ByteSpan fabricSecret, uint64_t breadcrumb, uint32_t timeoutMs);
1388 * Encode a General Commissioning server discover command into buffer including the APS frame
1390 chip::System::PacketBufferHandle encodeGeneralCommissioningClusterDiscoverAttributes(uint8_t seqNum,
1391 chip::EndpointId destinationEndpoint);
1395 * Encode a General Commissioning server read command for the FabricId attribute into buffer including the APS frame
1397 chip::System::PacketBufferHandle encodeGeneralCommissioningClusterReadFabricIdAttribute(uint8_t seqNum,
1398 chip::EndpointId destinationEndpoint);
1402 * Encode a General Commissioning server read command for the Breadcrumb attribute into buffer including the APS frame
1404 chip::System::PacketBufferHandle encodeGeneralCommissioningClusterReadBreadcrumbAttribute(uint8_t seqNum,
1405 chip::EndpointId destinationEndpoint);
1409 * Encode a General Commissioning server write command for the Breadcrumb attribute into buffer including the APS frame
1411 chip::System::PacketBufferHandle encodeGeneralCommissioningClusterWriteBreadcrumbAttribute(uint8_t seqNum,
1412 chip::EndpointId destinationEndpoint,
1413 uint64_t breadcrumb);
1417 * Encode a General Commissioning server read command for the cluster revision attribute into buffer including the APS frame
1419 chip::System::PacketBufferHandle
1420 encodeGeneralCommissioningClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1422 /*----------------------------------------------------------------------------*\
1423 | Cluster Groups | 0x0004 |
1424 |------------------------------------------------------------------------------|
1426 | * AddGroup | 0x00 |
1427 | * AddGroupIfIdentifying | 0x05 |
1428 | * GetGroupMembership | 0x02 |
1429 | * RemoveAllGroups | 0x04 |
1430 | * RemoveGroup | 0x03 |
1431 | * ViewGroup | 0x01 |
1432 |------------------------------------------------------------------------------|
1434 | * NameSupport | 0x0000 |
1435 | * ClusterRevision | 0xFFFD |
1436 \*----------------------------------------------------------------------------*/
1440 * Encode an AddGroup command for Groups server into buffer including the APS frame
1442 chip::System::PacketBufferHandle encodeGroupsClusterAddGroupCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1443 uint16_t groupId, chip::ByteSpan groupName);
1447 * Encode an AddGroupIfIdentifying command for Groups server into buffer including the APS frame
1449 chip::System::PacketBufferHandle encodeGroupsClusterAddGroupIfIdentifyingCommand(uint8_t seqNum,
1450 chip::EndpointId destinationEndpoint,
1451 uint16_t groupId, chip::ByteSpan groupName);
1455 * Encode an GetGroupMembership command for Groups server into buffer including the APS frame
1457 chip::System::PacketBufferHandle encodeGroupsClusterGetGroupMembershipCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1458 uint8_t groupCount, uint16_t groupList);
1462 * Encode an RemoveAllGroups command for Groups server into buffer including the APS frame
1464 chip::System::PacketBufferHandle encodeGroupsClusterRemoveAllGroupsCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1468 * Encode an RemoveGroup command for Groups server into buffer including the APS frame
1470 chip::System::PacketBufferHandle encodeGroupsClusterRemoveGroupCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1475 * Encode an ViewGroup command for Groups server into buffer including the APS frame
1477 chip::System::PacketBufferHandle encodeGroupsClusterViewGroupCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1482 * Encode a Groups server discover command into buffer including the APS frame
1484 chip::System::PacketBufferHandle encodeGroupsClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1488 * Encode a Groups server read command for the name support attribute into buffer including the APS frame
1490 chip::System::PacketBufferHandle encodeGroupsClusterReadNameSupportAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1494 * Encode a Groups server read command for the cluster revision attribute into buffer including the APS frame
1496 chip::System::PacketBufferHandle encodeGroupsClusterReadClusterRevisionAttribute(uint8_t seqNum,
1497 chip::EndpointId destinationEndpoint);
1499 /*----------------------------------------------------------------------------*\
1500 | Cluster IasZone | 0x0500 |
1501 |------------------------------------------------------------------------------|
1503 |------------------------------------------------------------------------------|
1505 | * ZoneState | 0x0000 |
1506 | * ZoneType | 0x0001 |
1507 | * ZoneStatus | 0x0002 |
1508 | * IasCieAddress | 0x0010 |
1509 | * ZoneId | 0x0011 |
1510 | * ClusterRevision | 0xFFFD |
1511 \*----------------------------------------------------------------------------*/
1515 * Encode a IAS Zone server discover command into buffer including the APS frame
1517 chip::System::PacketBufferHandle encodeIasZoneClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1521 * Encode a IAS Zone server read command for the zone state attribute into buffer including the APS frame
1523 chip::System::PacketBufferHandle encodeIasZoneClusterReadZoneStateAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1527 * Encode a IAS Zone server read command for the zone type attribute into buffer including the APS frame
1529 chip::System::PacketBufferHandle encodeIasZoneClusterReadZoneTypeAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1533 * Encode a IAS Zone server read command for the zone status attribute into buffer including the APS frame
1535 chip::System::PacketBufferHandle encodeIasZoneClusterReadZoneStatusAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1539 * Encode a IAS Zone server read command for the IAS CIE address attribute into buffer including the APS frame
1541 chip::System::PacketBufferHandle encodeIasZoneClusterReadIasCieAddressAttribute(uint8_t seqNum,
1542 chip::EndpointId destinationEndpoint);
1546 * Encode a IAS Zone server write command for the IAS CIE address attribute into buffer including the APS frame
1548 chip::System::PacketBufferHandle
1549 encodeIasZoneClusterWriteIasCieAddressAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint64_t iasCieAddress);
1553 * Encode a IAS Zone server read command for the Zone ID attribute into buffer including the APS frame
1555 chip::System::PacketBufferHandle encodeIasZoneClusterReadZoneIdAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1559 * Encode a IAS Zone server read command for the cluster revision attribute into buffer including the APS frame
1561 chip::System::PacketBufferHandle encodeIasZoneClusterReadClusterRevisionAttribute(uint8_t seqNum,
1562 chip::EndpointId destinationEndpoint);
1564 /*----------------------------------------------------------------------------*\
1565 | Cluster Identify | 0x0003 |
1566 |------------------------------------------------------------------------------|
1568 | * Identify | 0x00 |
1569 | * IdentifyQuery | 0x01 |
1570 |------------------------------------------------------------------------------|
1572 | * IdentifyTime | 0x0000 |
1573 | * ClusterRevision | 0xFFFD |
1574 \*----------------------------------------------------------------------------*/
1578 * Encode an Identify command for Identify server into buffer including the APS frame
1580 chip::System::PacketBufferHandle encodeIdentifyClusterIdentifyCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1581 uint16_t identifyTime);
1585 * Encode an IdentifyQuery command for Identify server into buffer including the APS frame
1587 chip::System::PacketBufferHandle encodeIdentifyClusterIdentifyQueryCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1591 * Encode a Identify server discover command into buffer including the APS frame
1593 chip::System::PacketBufferHandle encodeIdentifyClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1597 * Encode a Identify server read command for the identify time attribute into buffer including the APS frame
1599 chip::System::PacketBufferHandle encodeIdentifyClusterReadIdentifyTimeAttribute(uint8_t seqNum,
1600 chip::EndpointId destinationEndpoint);
1604 * Encode a Identify server write command for the identify time attribute into buffer including the APS frame
1606 chip::System::PacketBufferHandle
1607 encodeIdentifyClusterWriteIdentifyTimeAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint, uint16_t identifyTime);
1611 * Encode a Identify server read command for the cluster revision attribute into buffer including the APS frame
1613 chip::System::PacketBufferHandle encodeIdentifyClusterReadClusterRevisionAttribute(uint8_t seqNum,
1614 chip::EndpointId destinationEndpoint);
1616 /*----------------------------------------------------------------------------*\
1617 | Cluster LevelControl | 0x0008 |
1618 |------------------------------------------------------------------------------|
1621 | * MoveToLevel | 0x00 |
1622 | * MoveToLevelWithOnOff | 0x04 |
1623 | * MoveWithOnOff | 0x05 |
1625 | * StepWithOnOff | 0x06 |
1627 | * StopWithOnOff | 0x07 |
1628 |------------------------------------------------------------------------------|
1630 | * CurrentLevel | 0x0000 |
1631 | * ClusterRevision | 0xFFFD |
1632 \*----------------------------------------------------------------------------*/
1636 * Encode an Move command for Level Control server into buffer including the APS frame
1638 chip::System::PacketBufferHandle encodeLevelControlClusterMoveCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1639 uint8_t moveMode, uint8_t rate, uint8_t optionMask,
1640 uint8_t optionOverride);
1644 * Encode an MoveToLevel command for Level Control server into buffer including the APS frame
1646 chip::System::PacketBufferHandle encodeLevelControlClusterMoveToLevelCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1647 uint8_t level, uint16_t transitionTime,
1648 uint8_t optionMask, uint8_t optionOverride);
1652 * Encode an MoveToLevelWithOnOff command for Level Control server into buffer including the APS frame
1654 chip::System::PacketBufferHandle encodeLevelControlClusterMoveToLevelWithOnOffCommand(uint8_t seqNum,
1655 chip::EndpointId destinationEndpoint,
1656 uint8_t level, uint16_t transitionTime);
1660 * Encode an MoveWithOnOff command for Level Control server into buffer including the APS frame
1662 chip::System::PacketBufferHandle encodeLevelControlClusterMoveWithOnOffCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1663 uint8_t moveMode, uint8_t rate);
1667 * Encode an Step command for Level Control server into buffer including the APS frame
1669 chip::System::PacketBufferHandle encodeLevelControlClusterStepCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1670 uint8_t stepMode, uint8_t stepSize, uint16_t transitionTime,
1671 uint8_t optionMask, uint8_t optionOverride);
1675 * Encode an StepWithOnOff command for Level Control server into buffer including the APS frame
1677 chip::System::PacketBufferHandle encodeLevelControlClusterStepWithOnOffCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1678 uint8_t stepMode, uint8_t stepSize,
1679 uint16_t transitionTime);
1683 * Encode an Stop command for Level Control server into buffer including the APS frame
1685 chip::System::PacketBufferHandle encodeLevelControlClusterStopCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1686 uint8_t optionMask, uint8_t optionOverride);
1690 * Encode an StopWithOnOff command for Level Control server into buffer including the APS frame
1692 chip::System::PacketBufferHandle encodeLevelControlClusterStopWithOnOffCommand(uint8_t seqNum,
1693 chip::EndpointId destinationEndpoint);
1697 * Encode a Level Control server discover command into buffer including the APS frame
1699 chip::System::PacketBufferHandle encodeLevelControlClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1703 * Encode a Level Control server read command for the current level attribute into buffer including the APS frame
1705 chip::System::PacketBufferHandle encodeLevelControlClusterReadCurrentLevelAttribute(uint8_t seqNum,
1706 chip::EndpointId destinationEndpoint);
1710 * Encode a Level Control server configure report command for the current level attribute into buffer including the APS frame
1712 chip::System::PacketBufferHandle encodeLevelControlClusterConfigureCurrentLevelAttribute(uint8_t seqNum,
1713 chip::EndpointId destinationEndpoint,
1714 uint16_t minInterval, uint16_t maxInterval,
1719 * Encode a Level Control server read command for the cluster revision attribute into buffer including the APS frame
1721 chip::System::PacketBufferHandle encodeLevelControlClusterReadClusterRevisionAttribute(uint8_t seqNum,
1722 chip::EndpointId destinationEndpoint);
1724 /*----------------------------------------------------------------------------*\
1725 | Cluster LowPower | 0x0508 |
1726 |------------------------------------------------------------------------------|
1729 |------------------------------------------------------------------------------|
1731 | * ClusterRevision | 0xFFFD |
1732 \*----------------------------------------------------------------------------*/
1736 * Encode an Sleep command for Low Power server into buffer including the APS frame
1738 chip::System::PacketBufferHandle encodeLowPowerClusterSleepCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1742 * Encode a Low Power server discover command into buffer including the APS frame
1744 chip::System::PacketBufferHandle encodeLowPowerClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1748 * Encode a Low Power server read command for the cluster revision attribute into buffer including the APS frame
1750 chip::System::PacketBufferHandle encodeLowPowerClusterReadClusterRevisionAttribute(uint8_t seqNum,
1751 chip::EndpointId destinationEndpoint);
1753 /*----------------------------------------------------------------------------*\
1754 | Cluster MediaPlayback | 0xF001 |
1755 |------------------------------------------------------------------------------|
1757 | * FastForwardRequest | 0x07 |
1758 | * NextRequest | 0x05 |
1759 | * PauseRequest | 0x01 |
1760 | * PlayRequest | 0x00 |
1761 | * PreviousRequest | 0x04 |
1762 | * RewindRequest | 0x06 |
1763 | * SkipBackwardRequest | 0x09 |
1764 | * SkipForwardRequest | 0x08 |
1765 | * StartOverRequest | 0x03 |
1766 | * StopRequest | 0x02 |
1767 |------------------------------------------------------------------------------|
1769 | * CurrentState | 0x0000 |
1770 | * ClusterRevision | 0xFFFD |
1771 \*----------------------------------------------------------------------------*/
1775 * Encode an FastForwardRequest command for Media Playback server into buffer including the APS frame
1777 chip::System::PacketBufferHandle encodeMediaPlaybackClusterFastForwardRequestCommand(uint8_t seqNum,
1778 chip::EndpointId destinationEndpoint);
1782 * Encode an NextRequest command for Media Playback server into buffer including the APS frame
1784 chip::System::PacketBufferHandle encodeMediaPlaybackClusterNextRequestCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1788 * Encode an PauseRequest command for Media Playback server into buffer including the APS frame
1790 chip::System::PacketBufferHandle encodeMediaPlaybackClusterPauseRequestCommand(uint8_t seqNum,
1791 chip::EndpointId destinationEndpoint);
1795 * Encode an PlayRequest command for Media Playback server into buffer including the APS frame
1797 chip::System::PacketBufferHandle encodeMediaPlaybackClusterPlayRequestCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1801 * Encode an PreviousRequest command for Media Playback server into buffer including the APS frame
1803 chip::System::PacketBufferHandle encodeMediaPlaybackClusterPreviousRequestCommand(uint8_t seqNum,
1804 chip::EndpointId destinationEndpoint);
1808 * Encode an RewindRequest command for Media Playback server into buffer including the APS frame
1810 chip::System::PacketBufferHandle encodeMediaPlaybackClusterRewindRequestCommand(uint8_t seqNum,
1811 chip::EndpointId destinationEndpoint);
1815 * Encode an SkipBackwardRequest command for Media Playback server into buffer including the APS frame
1817 chip::System::PacketBufferHandle encodeMediaPlaybackClusterSkipBackwardRequestCommand(uint8_t seqNum,
1818 chip::EndpointId destinationEndpoint);
1822 * Encode an SkipForwardRequest command for Media Playback server into buffer including the APS frame
1824 chip::System::PacketBufferHandle encodeMediaPlaybackClusterSkipForwardRequestCommand(uint8_t seqNum,
1825 chip::EndpointId destinationEndpoint);
1829 * Encode an StartOverRequest command for Media Playback server into buffer including the APS frame
1831 chip::System::PacketBufferHandle encodeMediaPlaybackClusterStartOverRequestCommand(uint8_t seqNum,
1832 chip::EndpointId destinationEndpoint);
1836 * Encode an StopRequest command for Media Playback server into buffer including the APS frame
1838 chip::System::PacketBufferHandle encodeMediaPlaybackClusterStopRequestCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1842 * Encode a Media Playback server discover command into buffer including the APS frame
1844 chip::System::PacketBufferHandle encodeMediaPlaybackClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1848 * Encode a Media Playback server read command for the current state attribute into buffer including the APS frame
1850 chip::System::PacketBufferHandle encodeMediaPlaybackClusterReadCurrentStateAttribute(uint8_t seqNum,
1851 chip::EndpointId destinationEndpoint);
1855 * Encode a Media Playback server read command for the cluster revision attribute into buffer including the APS frame
1857 chip::System::PacketBufferHandle encodeMediaPlaybackClusterReadClusterRevisionAttribute(uint8_t seqNum,
1858 chip::EndpointId destinationEndpoint);
1860 /*----------------------------------------------------------------------------*\
1861 | Cluster NetworkCommissioning | 0xAAAA |
1862 |------------------------------------------------------------------------------|
1864 | * AddThreadNetwork | 0x06 |
1865 | * AddWiFiNetwork | 0x02 |
1866 | * DisableNetwork | 0x0E |
1867 | * EnableNetwork | 0x0C |
1868 | * GetLastNetworkCommissioningResult | 0x10 |
1869 | * RemoveNetwork | 0x0A |
1870 | * ScanNetworks | 0x00 |
1871 | * UpdateThreadNetwork | 0x08 |
1872 | * UpdateWiFiNetwork | 0x04 |
1873 |------------------------------------------------------------------------------|
1875 | * ClusterRevision | 0xFFFD |
1876 \*----------------------------------------------------------------------------*/
1880 * Encode an AddThreadNetwork command for Network Commissioning server into buffer including the APS frame
1882 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterAddThreadNetworkCommand(uint8_t seqNum,
1883 chip::EndpointId destinationEndpoint,
1884 chip::ByteSpan operationalDataset,
1885 uint64_t breadcrumb, uint32_t timeoutMs);
1889 * Encode an AddWiFiNetwork command for Network Commissioning server into buffer including the APS frame
1891 chip::System::PacketBufferHandle
1892 encodeNetworkCommissioningClusterAddWiFiNetworkCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, chip::ByteSpan ssid,
1893 chip::ByteSpan credentials, uint64_t breadcrumb, uint32_t timeoutMs);
1897 * Encode an DisableNetwork command for Network Commissioning server into buffer including the APS frame
1899 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterDisableNetworkCommand(uint8_t seqNum,
1900 chip::EndpointId destinationEndpoint,
1901 chip::ByteSpan networkID,
1902 uint64_t breadcrumb, uint32_t timeoutMs);
1906 * Encode an EnableNetwork command for Network Commissioning server into buffer including the APS frame
1908 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterEnableNetworkCommand(uint8_t seqNum,
1909 chip::EndpointId destinationEndpoint,
1910 chip::ByteSpan networkID,
1911 uint64_t breadcrumb, uint32_t timeoutMs);
1915 * Encode an GetLastNetworkCommissioningResult command for Network Commissioning server into buffer including the APS frame
1917 chip::System::PacketBufferHandle
1918 encodeNetworkCommissioningClusterGetLastNetworkCommissioningResultCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
1919 uint32_t timeoutMs);
1923 * Encode an RemoveNetwork command for Network Commissioning server into buffer including the APS frame
1925 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterRemoveNetworkCommand(uint8_t seqNum,
1926 chip::EndpointId destinationEndpoint,
1927 chip::ByteSpan networkID,
1928 uint64_t breadcrumb, uint32_t timeoutMs);
1932 * Encode an ScanNetworks command for Network Commissioning server into buffer including the APS frame
1934 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterScanNetworksCommand(uint8_t seqNum,
1935 chip::EndpointId destinationEndpoint,
1936 chip::ByteSpan ssid, uint64_t breadcrumb,
1937 uint32_t timeoutMs);
1941 * Encode an UpdateThreadNetwork command for Network Commissioning server into buffer including the APS frame
1943 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterUpdateThreadNetworkCommand(uint8_t seqNum,
1944 chip::EndpointId destinationEndpoint,
1945 chip::ByteSpan operationalDataset,
1946 uint64_t breadcrumb,
1947 uint32_t timeoutMs);
1951 * Encode an UpdateWiFiNetwork command for Network Commissioning server into buffer including the APS frame
1953 chip::System::PacketBufferHandle
1954 encodeNetworkCommissioningClusterUpdateWiFiNetworkCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint, chip::ByteSpan ssid,
1955 chip::ByteSpan credentials, uint64_t breadcrumb, uint32_t timeoutMs);
1959 * Encode a Network Commissioning server discover command into buffer including the APS frame
1961 chip::System::PacketBufferHandle encodeNetworkCommissioningClusterDiscoverAttributes(uint8_t seqNum,
1962 chip::EndpointId destinationEndpoint);
1966 * Encode a Network Commissioning server read command for the cluster revision attribute into buffer including the APS frame
1968 chip::System::PacketBufferHandle
1969 encodeNetworkCommissioningClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1971 /*----------------------------------------------------------------------------*\
1972 | Cluster OnOff | 0x0006 |
1973 |------------------------------------------------------------------------------|
1978 |------------------------------------------------------------------------------|
1980 | * OnOff | 0x0000 |
1981 | * ClusterRevision | 0xFFFD |
1982 \*----------------------------------------------------------------------------*/
1986 * Encode an Off command for On/off server into buffer including the APS frame
1988 chip::System::PacketBufferHandle encodeOnOffClusterOffCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1992 * Encode an On command for On/off server into buffer including the APS frame
1994 chip::System::PacketBufferHandle encodeOnOffClusterOnCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
1998 * Encode an Toggle command for On/off server into buffer including the APS frame
2000 chip::System::PacketBufferHandle encodeOnOffClusterToggleCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2004 * Encode a On/off server discover command into buffer including the APS frame
2006 chip::System::PacketBufferHandle encodeOnOffClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2010 * Encode a On/off server read command for the on/off attribute into buffer including the APS frame
2012 chip::System::PacketBufferHandle encodeOnOffClusterReadOnOffAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2016 * Encode a On/off server configure report command for the on/off attribute into buffer including the APS frame
2018 chip::System::PacketBufferHandle encodeOnOffClusterConfigureOnOffAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2019 uint16_t minInterval, uint16_t maxInterval);
2023 * Encode a On/off server read command for the cluster revision attribute into buffer including the APS frame
2025 chip::System::PacketBufferHandle encodeOnOffClusterReadClusterRevisionAttribute(uint8_t seqNum,
2026 chip::EndpointId destinationEndpoint);
2028 /*----------------------------------------------------------------------------*\
2029 | Cluster Scenes | 0x0005 |
2030 |------------------------------------------------------------------------------|
2032 | * AddScene | 0x00 |
2033 | * GetSceneMembership | 0x06 |
2034 | * RecallScene | 0x05 |
2035 | * RemoveAllScenes | 0x03 |
2036 | * RemoveScene | 0x02 |
2037 | * StoreScene | 0x04 |
2038 | * ViewScene | 0x01 |
2039 |------------------------------------------------------------------------------|
2041 | * SceneCount | 0x0000 |
2042 | * CurrentScene | 0x0001 |
2043 | * CurrentGroup | 0x0002 |
2044 | * SceneValid | 0x0003 |
2045 | * NameSupport | 0x0004 |
2046 | * ClusterRevision | 0xFFFD |
2047 \*----------------------------------------------------------------------------*/
2051 * Encode an AddScene command for Scenes server into buffer including the APS frame
2053 chip::System::PacketBufferHandle encodeScenesClusterAddSceneCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2054 uint16_t groupId, uint8_t sceneId, uint16_t transitionTime,
2055 chip::ByteSpan sceneName, chip::ClusterId clusterId,
2056 uint8_t length, uint8_t value);
2060 * Encode an GetSceneMembership command for Scenes server into buffer including the APS frame
2062 chip::System::PacketBufferHandle encodeScenesClusterGetSceneMembershipCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2067 * Encode an RecallScene command for Scenes server into buffer including the APS frame
2069 chip::System::PacketBufferHandle encodeScenesClusterRecallSceneCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2070 uint16_t groupId, uint8_t sceneId, uint16_t transitionTime);
2074 * Encode an RemoveAllScenes command for Scenes server into buffer including the APS frame
2076 chip::System::PacketBufferHandle encodeScenesClusterRemoveAllScenesCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2081 * Encode an RemoveScene command for Scenes server into buffer including the APS frame
2083 chip::System::PacketBufferHandle encodeScenesClusterRemoveSceneCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2084 uint16_t groupId, uint8_t sceneId);
2088 * Encode an StoreScene command for Scenes server into buffer including the APS frame
2090 chip::System::PacketBufferHandle encodeScenesClusterStoreSceneCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2091 uint16_t groupId, uint8_t sceneId);
2095 * Encode an ViewScene command for Scenes server into buffer including the APS frame
2097 chip::System::PacketBufferHandle encodeScenesClusterViewSceneCommand(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2098 uint16_t groupId, uint8_t sceneId);
2102 * Encode a Scenes server discover command into buffer including the APS frame
2104 chip::System::PacketBufferHandle encodeScenesClusterDiscoverAttributes(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2108 * Encode a Scenes server read command for the scene count attribute into buffer including the APS frame
2110 chip::System::PacketBufferHandle encodeScenesClusterReadSceneCountAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2114 * Encode a Scenes server read command for the current scene attribute into buffer including the APS frame
2116 chip::System::PacketBufferHandle encodeScenesClusterReadCurrentSceneAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2120 * Encode a Scenes server read command for the current group attribute into buffer including the APS frame
2122 chip::System::PacketBufferHandle encodeScenesClusterReadCurrentGroupAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2126 * Encode a Scenes server read command for the scene valid attribute into buffer including the APS frame
2128 chip::System::PacketBufferHandle encodeScenesClusterReadSceneValidAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2132 * Encode a Scenes server read command for the name support attribute into buffer including the APS frame
2134 chip::System::PacketBufferHandle encodeScenesClusterReadNameSupportAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2138 * Encode a Scenes server read command for the cluster revision attribute into buffer including the APS frame
2140 chip::System::PacketBufferHandle encodeScenesClusterReadClusterRevisionAttribute(uint8_t seqNum,
2141 chip::EndpointId destinationEndpoint);
2143 /*----------------------------------------------------------------------------*\
2144 | Cluster TemperatureMeasurement | 0x0402 |
2145 |------------------------------------------------------------------------------|
2147 |------------------------------------------------------------------------------|
2149 | * MeasuredValue | 0x0000 |
2150 | * MinMeasuredValue | 0x0001 |
2151 | * MaxMeasuredValue | 0x0002 |
2152 | * ClusterRevision | 0xFFFD |
2153 \*----------------------------------------------------------------------------*/
2157 * Encode a Temperature Measurement server discover command into buffer including the APS frame
2159 chip::System::PacketBufferHandle encodeTemperatureMeasurementClusterDiscoverAttributes(uint8_t seqNum,
2160 chip::EndpointId destinationEndpoint);
2164 * Encode a Temperature Measurement server read command for the measured value attribute into buffer including the APS frame
2166 chip::System::PacketBufferHandle
2167 encodeTemperatureMeasurementClusterReadMeasuredValueAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2171 * Encode a Temperature Measurement server configure report command for the measured value attribute into buffer including the
2174 chip::System::PacketBufferHandle
2175 encodeTemperatureMeasurementClusterConfigureMeasuredValueAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint,
2176 uint16_t minInterval, uint16_t maxInterval, int16_t change);
2180 * Encode a Temperature Measurement server read command for the min measured value attribute into buffer including the APS frame
2182 chip::System::PacketBufferHandle
2183 encodeTemperatureMeasurementClusterReadMinMeasuredValueAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2187 * Encode a Temperature Measurement server read command for the max measured value attribute into buffer including the APS frame
2189 chip::System::PacketBufferHandle
2190 encodeTemperatureMeasurementClusterReadMaxMeasuredValueAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);
2194 * Encode a Temperature Measurement server read command for the cluster revision attribute into buffer including the APS frame
2196 chip::System::PacketBufferHandle
2197 encodeTemperatureMeasurementClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint);