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 "af-structs.h"
25 #include "basic-types.h"
27 /** @brief Cluster Init
29 * This function is called when a specific cluster is initialized. It gives the
30 * application an opportunity to take care of cluster initialization procedures.
31 * It is called exactly once for each endpoint where cluster is present.
33 * @param endpoint Ver.: always
34 * @param clusterId Ver.: always
36 void emberAfClusterInitCallback(chip::EndpointId endpoint, chip::ClusterId clusterId);
38 // Cluster Init Functions
40 /** @brief Application Basic Cluster Init
44 * @param endpoint Endpoint that is being initialized
46 void emberAfApplicationBasicClusterInitCallback(chip::EndpointId endpoint);
48 /** @brief Barrier Control Cluster Init
52 * @param endpoint Endpoint that is being initialized
54 void emberAfBarrierControlClusterInitCallback(chip::EndpointId endpoint);
56 /** @brief Basic Cluster Init
60 * @param endpoint Endpoint that is being initialized
62 void emberAfBasicClusterInitCallback(chip::EndpointId endpoint);
64 /** @brief Binding Cluster Init
68 * @param endpoint Endpoint that is being initialized
70 void emberAfBindingClusterInitCallback(chip::EndpointId endpoint);
72 /** @brief Color Control Cluster Init
76 * @param endpoint Endpoint that is being initialized
78 void emberAfColorControlClusterInitCallback(chip::EndpointId endpoint);
80 /** @brief Content Launch Cluster Init
84 * @param endpoint Endpoint that is being initialized
86 void emberAfContentLaunchClusterInitCallback(chip::EndpointId endpoint);
88 /** @brief Door Lock Cluster Init
92 * @param endpoint Endpoint that is being initialized
94 void emberAfDoorLockClusterInitCallback(chip::EndpointId endpoint);
96 /** @brief General Commissioning Cluster Init
100 * @param endpoint Endpoint that is being initialized
102 void emberAfGeneralCommissioningClusterInitCallback(chip::EndpointId endpoint);
104 /** @brief Groups Cluster Init
108 * @param endpoint Endpoint that is being initialized
110 void emberAfGroupsClusterInitCallback(chip::EndpointId endpoint);
112 /** @brief IAS Zone Cluster Init
116 * @param endpoint Endpoint that is being initialized
118 void emberAfIasZoneClusterInitCallback(chip::EndpointId endpoint);
120 /** @brief Identify Cluster Init
124 * @param endpoint Endpoint that is being initialized
126 void emberAfIdentifyClusterInitCallback(chip::EndpointId endpoint);
128 /** @brief Level Control Cluster Init
132 * @param endpoint Endpoint that is being initialized
134 void emberAfLevelControlClusterInitCallback(chip::EndpointId endpoint);
136 /** @brief Low Power Cluster Init
140 * @param endpoint Endpoint that is being initialized
142 void emberAfLowPowerClusterInitCallback(chip::EndpointId endpoint);
144 /** @brief Media Playback Cluster Init
148 * @param endpoint Endpoint that is being initialized
150 void emberAfMediaPlaybackClusterInitCallback(chip::EndpointId endpoint);
152 /** @brief On/off Cluster Init
156 * @param endpoint Endpoint that is being initialized
158 void emberAfOnOffClusterInitCallback(chip::EndpointId endpoint);
160 /** @brief Scenes Cluster Init
164 * @param endpoint Endpoint that is being initialized
166 void emberAfScenesClusterInitCallback(chip::EndpointId endpoint);
168 /** @brief Temperature Measurement Cluster Init
172 * @param endpoint Endpoint that is being initialized
174 void emberAfTemperatureMeasurementClusterInitCallback(chip::EndpointId endpoint);
176 // Cluster Server/Client Init Functions
179 // Application Basic Cluster server
182 /** @brief Application Basic Cluster Server Init
186 * @param endpoint Endpoint that is being initialized
188 void emberAfApplicationBasicClusterServerInitCallback(chip::EndpointId endpoint);
190 /** @brief Application Basic Cluster Server Attribute Changed
192 * Server Attribute Changed
194 * @param endpoint Endpoint that is being initialized
195 * @param attributeId Attribute that changed
197 void emberAfApplicationBasicClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
199 /** @brief Application Basic Cluster Server Manufacturer Specific Attribute Changed
201 * Server Manufacturer Specific Attribute Changed
203 * @param endpoint Endpoint that is being initialized
204 * @param attributeId Attribute that changed
205 * @param manufacturerCode Manufacturer Code of the attribute that changed
207 void emberAfApplicationBasicClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
208 chip::AttributeId attributeId,
209 uint16_t manufacturerCode);
211 /** @brief Application Basic Cluster Server Message Sent
213 * Server Message Sent
215 * @param type The type of message sent
216 * @param indexOrDestination The destination or address to which the message was sent
217 * @param apsFrame The APS frame for the message
218 * @param msgLen The length of the message
219 * @param message The message that was sent
220 * @param status The status of the sent message
222 void emberAfApplicationBasicClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
223 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
226 /** @brief Application Basic Cluster Server Pre Attribute Changed
228 * server Pre Attribute Changed
230 * @param endpoint Endpoint that is being initialized
231 * @param attributeId Attribute to be changed
232 * @param attributeType Attribute type
233 * @param size Attribute size
234 * @param value Attribute value
236 EmberAfStatus emberAfApplicationBasicClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint,
237 chip::AttributeId attributeId,
238 EmberAfAttributeType attributeType, uint8_t size,
241 /** @brief Application Basic Cluster Server Tick
245 * @param endpoint Endpoint that is being served
247 void emberAfApplicationBasicClusterServerTickCallback(chip::EndpointId endpoint);
250 // Barrier Control Cluster server
253 /** @brief Barrier Control Cluster Server Init
257 * @param endpoint Endpoint that is being initialized
259 void emberAfBarrierControlClusterServerInitCallback(chip::EndpointId endpoint);
261 /** @brief Barrier Control Cluster Server Attribute Changed
263 * Server Attribute Changed
265 * @param endpoint Endpoint that is being initialized
266 * @param attributeId Attribute that changed
268 void emberAfBarrierControlClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
270 /** @brief Barrier Control Cluster Server Manufacturer Specific Attribute Changed
272 * Server Manufacturer Specific Attribute Changed
274 * @param endpoint Endpoint that is being initialized
275 * @param attributeId Attribute that changed
276 * @param manufacturerCode Manufacturer Code of the attribute that changed
278 void emberAfBarrierControlClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
279 chip::AttributeId attributeId,
280 uint16_t manufacturerCode);
282 /** @brief Barrier Control Cluster Server Message Sent
284 * Server Message Sent
286 * @param type The type of message sent
287 * @param indexOrDestination The destination or address to which the message was sent
288 * @param apsFrame The APS frame for the message
289 * @param msgLen The length of the message
290 * @param message The message that was sent
291 * @param status The status of the sent message
293 void emberAfBarrierControlClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
294 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
297 /** @brief Barrier Control Cluster Server Pre Attribute Changed
299 * server Pre Attribute Changed
301 * @param endpoint Endpoint that is being initialized
302 * @param attributeId Attribute to be changed
303 * @param attributeType Attribute type
304 * @param size Attribute size
305 * @param value Attribute value
307 EmberAfStatus emberAfBarrierControlClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint,
308 chip::AttributeId attributeId,
309 EmberAfAttributeType attributeType, uint8_t size,
312 /** @brief Barrier Control Cluster Server Tick
316 * @param endpoint Endpoint that is being served
318 void emberAfBarrierControlClusterServerTickCallback(chip::EndpointId endpoint);
321 // Basic Cluster server
324 /** @brief Basic Cluster Server Init
328 * @param endpoint Endpoint that is being initialized
330 void emberAfBasicClusterServerInitCallback(chip::EndpointId endpoint);
332 /** @brief Basic Cluster Server Attribute Changed
334 * Server Attribute Changed
336 * @param endpoint Endpoint that is being initialized
337 * @param attributeId Attribute that changed
339 void emberAfBasicClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
341 /** @brief Basic Cluster Server Manufacturer Specific Attribute Changed
343 * Server Manufacturer Specific Attribute Changed
345 * @param endpoint Endpoint that is being initialized
346 * @param attributeId Attribute that changed
347 * @param manufacturerCode Manufacturer Code of the attribute that changed
349 void emberAfBasicClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
350 uint16_t manufacturerCode);
352 /** @brief Basic Cluster Server Message Sent
354 * Server Message Sent
356 * @param type The type of message sent
357 * @param indexOrDestination The destination or address to which the message was sent
358 * @param apsFrame The APS frame for the message
359 * @param msgLen The length of the message
360 * @param message The message that was sent
361 * @param status The status of the sent message
363 void emberAfBasicClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
364 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, EmberStatus status);
366 /** @brief Basic Cluster Server Pre Attribute Changed
368 * server Pre Attribute Changed
370 * @param endpoint Endpoint that is being initialized
371 * @param attributeId Attribute to be changed
372 * @param attributeType Attribute type
373 * @param size Attribute size
374 * @param value Attribute value
376 EmberAfStatus emberAfBasicClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
377 EmberAfAttributeType attributeType, uint8_t size,
380 /** @brief Basic Cluster Server Tick
384 * @param endpoint Endpoint that is being served
386 void emberAfBasicClusterServerTickCallback(chip::EndpointId endpoint);
389 // Binding Cluster server
392 /** @brief Binding Cluster Server Init
396 * @param endpoint Endpoint that is being initialized
398 void emberAfBindingClusterServerInitCallback(chip::EndpointId endpoint);
400 /** @brief Binding Cluster Server Attribute Changed
402 * Server Attribute Changed
404 * @param endpoint Endpoint that is being initialized
405 * @param attributeId Attribute that changed
407 void emberAfBindingClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
409 /** @brief Binding Cluster Server Manufacturer Specific Attribute Changed
411 * Server Manufacturer Specific Attribute Changed
413 * @param endpoint Endpoint that is being initialized
414 * @param attributeId Attribute that changed
415 * @param manufacturerCode Manufacturer Code of the attribute that changed
417 void emberAfBindingClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
418 chip::AttributeId attributeId,
419 uint16_t manufacturerCode);
421 /** @brief Binding Cluster Server Message Sent
423 * Server Message Sent
425 * @param type The type of message sent
426 * @param indexOrDestination The destination or address to which the message was sent
427 * @param apsFrame The APS frame for the message
428 * @param msgLen The length of the message
429 * @param message The message that was sent
430 * @param status The status of the sent message
432 void emberAfBindingClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
433 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
436 /** @brief Binding Cluster Server Pre Attribute Changed
438 * server Pre Attribute Changed
440 * @param endpoint Endpoint that is being initialized
441 * @param attributeId Attribute to be changed
442 * @param attributeType Attribute type
443 * @param size Attribute size
444 * @param value Attribute value
446 EmberAfStatus emberAfBindingClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
447 EmberAfAttributeType attributeType, uint8_t size,
450 /** @brief Binding Cluster Server Tick
454 * @param endpoint Endpoint that is being served
456 void emberAfBindingClusterServerTickCallback(chip::EndpointId endpoint);
459 // Color Control Cluster server
462 /** @brief Color Control Cluster Server Init
466 * @param endpoint Endpoint that is being initialized
468 void emberAfColorControlClusterServerInitCallback(chip::EndpointId endpoint);
470 /** @brief Color Control Cluster Server Attribute Changed
472 * Server Attribute Changed
474 * @param endpoint Endpoint that is being initialized
475 * @param attributeId Attribute that changed
477 void emberAfColorControlClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
479 /** @brief Color Control Cluster Server Manufacturer Specific Attribute Changed
481 * Server Manufacturer Specific Attribute Changed
483 * @param endpoint Endpoint that is being initialized
484 * @param attributeId Attribute that changed
485 * @param manufacturerCode Manufacturer Code of the attribute that changed
487 void emberAfColorControlClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
488 chip::AttributeId attributeId,
489 uint16_t manufacturerCode);
491 /** @brief Color Control Cluster Server Message Sent
493 * Server Message Sent
495 * @param type The type of message sent
496 * @param indexOrDestination The destination or address to which the message was sent
497 * @param apsFrame The APS frame for the message
498 * @param msgLen The length of the message
499 * @param message The message that was sent
500 * @param status The status of the sent message
502 void emberAfColorControlClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
503 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
506 /** @brief Color Control Cluster Server Pre Attribute Changed
508 * server Pre Attribute Changed
510 * @param endpoint Endpoint that is being initialized
511 * @param attributeId Attribute to be changed
512 * @param attributeType Attribute type
513 * @param size Attribute size
514 * @param value Attribute value
516 EmberAfStatus emberAfColorControlClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
517 EmberAfAttributeType attributeType, uint8_t size,
520 /** @brief Color Control Cluster Server Tick
524 * @param endpoint Endpoint that is being served
526 void emberAfColorControlClusterServerTickCallback(chip::EndpointId endpoint);
529 // Content Launch Cluster server
532 /** @brief Content Launch Cluster Server Init
536 * @param endpoint Endpoint that is being initialized
538 void emberAfContentLaunchClusterServerInitCallback(chip::EndpointId endpoint);
540 /** @brief Content Launch Cluster Server Attribute Changed
542 * Server Attribute Changed
544 * @param endpoint Endpoint that is being initialized
545 * @param attributeId Attribute that changed
547 void emberAfContentLaunchClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
549 /** @brief Content Launch Cluster Server Manufacturer Specific Attribute Changed
551 * Server Manufacturer Specific Attribute Changed
553 * @param endpoint Endpoint that is being initialized
554 * @param attributeId Attribute that changed
555 * @param manufacturerCode Manufacturer Code of the attribute that changed
557 void emberAfContentLaunchClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
558 chip::AttributeId attributeId,
559 uint16_t manufacturerCode);
561 /** @brief Content Launch Cluster Server Message Sent
563 * Server Message Sent
565 * @param type The type of message sent
566 * @param indexOrDestination The destination or address to which the message was sent
567 * @param apsFrame The APS frame for the message
568 * @param msgLen The length of the message
569 * @param message The message that was sent
570 * @param status The status of the sent message
572 void emberAfContentLaunchClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
573 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
576 /** @brief Content Launch Cluster Server Pre Attribute Changed
578 * server Pre Attribute Changed
580 * @param endpoint Endpoint that is being initialized
581 * @param attributeId Attribute to be changed
582 * @param attributeType Attribute type
583 * @param size Attribute size
584 * @param value Attribute value
586 EmberAfStatus emberAfContentLaunchClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
587 EmberAfAttributeType attributeType, uint8_t size,
590 /** @brief Content Launch Cluster Server Tick
594 * @param endpoint Endpoint that is being served
596 void emberAfContentLaunchClusterServerTickCallback(chip::EndpointId endpoint);
599 // Door Lock Cluster server
602 /** @brief Door Lock Cluster Server Init
606 * @param endpoint Endpoint that is being initialized
608 void emberAfDoorLockClusterServerInitCallback(chip::EndpointId endpoint);
610 /** @brief Door Lock Cluster Server Attribute Changed
612 * Server Attribute Changed
614 * @param endpoint Endpoint that is being initialized
615 * @param attributeId Attribute that changed
617 void emberAfDoorLockClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
619 /** @brief Door Lock Cluster Server Manufacturer Specific Attribute Changed
621 * Server Manufacturer Specific Attribute Changed
623 * @param endpoint Endpoint that is being initialized
624 * @param attributeId Attribute that changed
625 * @param manufacturerCode Manufacturer Code of the attribute that changed
627 void emberAfDoorLockClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
628 chip::AttributeId attributeId,
629 uint16_t manufacturerCode);
631 /** @brief Door Lock Cluster Server Message Sent
633 * Server Message Sent
635 * @param type The type of message sent
636 * @param indexOrDestination The destination or address to which the message was sent
637 * @param apsFrame The APS frame for the message
638 * @param msgLen The length of the message
639 * @param message The message that was sent
640 * @param status The status of the sent message
642 void emberAfDoorLockClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
643 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
646 /** @brief Door Lock Cluster Server Pre Attribute Changed
648 * server Pre Attribute Changed
650 * @param endpoint Endpoint that is being initialized
651 * @param attributeId Attribute to be changed
652 * @param attributeType Attribute type
653 * @param size Attribute size
654 * @param value Attribute value
656 EmberAfStatus emberAfDoorLockClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
657 EmberAfAttributeType attributeType, uint8_t size,
660 /** @brief Door Lock Cluster Server Tick
664 * @param endpoint Endpoint that is being served
666 void emberAfDoorLockClusterServerTickCallback(chip::EndpointId endpoint);
669 // General Commissioning Cluster server
672 /** @brief General Commissioning Cluster Server Init
676 * @param endpoint Endpoint that is being initialized
678 void emberAfGeneralCommissioningClusterServerInitCallback(chip::EndpointId endpoint);
680 /** @brief General Commissioning Cluster Server Attribute Changed
682 * Server Attribute Changed
684 * @param endpoint Endpoint that is being initialized
685 * @param attributeId Attribute that changed
687 void emberAfGeneralCommissioningClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
689 /** @brief General Commissioning Cluster Server Manufacturer Specific Attribute Changed
691 * Server Manufacturer Specific Attribute Changed
693 * @param endpoint Endpoint that is being initialized
694 * @param attributeId Attribute that changed
695 * @param manufacturerCode Manufacturer Code of the attribute that changed
697 void emberAfGeneralCommissioningClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
698 chip::AttributeId attributeId,
699 uint16_t manufacturerCode);
701 /** @brief General Commissioning Cluster Server Message Sent
703 * Server Message Sent
705 * @param type The type of message sent
706 * @param indexOrDestination The destination or address to which the message was sent
707 * @param apsFrame The APS frame for the message
708 * @param msgLen The length of the message
709 * @param message The message that was sent
710 * @param status The status of the sent message
712 void emberAfGeneralCommissioningClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
713 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
716 /** @brief General Commissioning Cluster Server Pre Attribute Changed
718 * server Pre Attribute Changed
720 * @param endpoint Endpoint that is being initialized
721 * @param attributeId Attribute to be changed
722 * @param attributeType Attribute type
723 * @param size Attribute size
724 * @param value Attribute value
726 EmberAfStatus emberAfGeneralCommissioningClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint,
727 chip::AttributeId attributeId,
728 EmberAfAttributeType attributeType, uint8_t size,
731 /** @brief General Commissioning Cluster Server Tick
735 * @param endpoint Endpoint that is being served
737 void emberAfGeneralCommissioningClusterServerTickCallback(chip::EndpointId endpoint);
740 // Groups Cluster server
743 /** @brief Groups Cluster Server Init
747 * @param endpoint Endpoint that is being initialized
749 void emberAfGroupsClusterServerInitCallback(chip::EndpointId endpoint);
751 /** @brief Groups Cluster Server Attribute Changed
753 * Server Attribute Changed
755 * @param endpoint Endpoint that is being initialized
756 * @param attributeId Attribute that changed
758 void emberAfGroupsClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
760 /** @brief Groups Cluster Server Manufacturer Specific Attribute Changed
762 * Server Manufacturer Specific Attribute Changed
764 * @param endpoint Endpoint that is being initialized
765 * @param attributeId Attribute that changed
766 * @param manufacturerCode Manufacturer Code of the attribute that changed
768 void emberAfGroupsClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
769 chip::AttributeId attributeId,
770 uint16_t manufacturerCode);
772 /** @brief Groups Cluster Server Message Sent
774 * Server Message Sent
776 * @param type The type of message sent
777 * @param indexOrDestination The destination or address to which the message was sent
778 * @param apsFrame The APS frame for the message
779 * @param msgLen The length of the message
780 * @param message The message that was sent
781 * @param status The status of the sent message
783 void emberAfGroupsClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
784 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
787 /** @brief Groups Cluster Server Pre Attribute Changed
789 * server Pre Attribute Changed
791 * @param endpoint Endpoint that is being initialized
792 * @param attributeId Attribute to be changed
793 * @param attributeType Attribute type
794 * @param size Attribute size
795 * @param value Attribute value
797 EmberAfStatus emberAfGroupsClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
798 EmberAfAttributeType attributeType, uint8_t size,
801 /** @brief Groups Cluster Server Tick
805 * @param endpoint Endpoint that is being served
807 void emberAfGroupsClusterServerTickCallback(chip::EndpointId endpoint);
810 // IAS Zone Cluster server
813 /** @brief IAS Zone Cluster Server Init
817 * @param endpoint Endpoint that is being initialized
819 void emberAfIasZoneClusterServerInitCallback(chip::EndpointId endpoint);
821 /** @brief IAS Zone Cluster Server Attribute Changed
823 * Server Attribute Changed
825 * @param endpoint Endpoint that is being initialized
826 * @param attributeId Attribute that changed
828 void emberAfIasZoneClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
830 /** @brief IAS Zone Cluster Server Manufacturer Specific Attribute Changed
832 * Server Manufacturer Specific Attribute Changed
834 * @param endpoint Endpoint that is being initialized
835 * @param attributeId Attribute that changed
836 * @param manufacturerCode Manufacturer Code of the attribute that changed
838 void emberAfIasZoneClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
839 chip::AttributeId attributeId,
840 uint16_t manufacturerCode);
842 /** @brief IAS Zone Cluster Server Message Sent
844 * Server Message Sent
846 * @param type The type of message sent
847 * @param indexOrDestination The destination or address to which the message was sent
848 * @param apsFrame The APS frame for the message
849 * @param msgLen The length of the message
850 * @param message The message that was sent
851 * @param status The status of the sent message
853 void emberAfIasZoneClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
854 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
857 /** @brief IAS Zone Cluster Server Pre Attribute Changed
859 * server Pre Attribute Changed
861 * @param endpoint Endpoint that is being initialized
862 * @param attributeId Attribute to be changed
863 * @param attributeType Attribute type
864 * @param size Attribute size
865 * @param value Attribute value
867 EmberAfStatus emberAfIasZoneClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
868 EmberAfAttributeType attributeType, uint8_t size,
871 /** @brief IAS Zone Cluster Server Tick
875 * @param endpoint Endpoint that is being served
877 void emberAfIasZoneClusterServerTickCallback(chip::EndpointId endpoint);
880 // Identify Cluster server
883 /** @brief Identify Cluster Server Init
887 * @param endpoint Endpoint that is being initialized
889 void emberAfIdentifyClusterServerInitCallback(chip::EndpointId endpoint);
891 /** @brief Identify Cluster Server Attribute Changed
893 * Server Attribute Changed
895 * @param endpoint Endpoint that is being initialized
896 * @param attributeId Attribute that changed
898 void emberAfIdentifyClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
900 /** @brief Identify Cluster Server Manufacturer Specific Attribute Changed
902 * Server Manufacturer Specific Attribute Changed
904 * @param endpoint Endpoint that is being initialized
905 * @param attributeId Attribute that changed
906 * @param manufacturerCode Manufacturer Code of the attribute that changed
908 void emberAfIdentifyClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
909 chip::AttributeId attributeId,
910 uint16_t manufacturerCode);
912 /** @brief Identify Cluster Server Message Sent
914 * Server Message Sent
916 * @param type The type of message sent
917 * @param indexOrDestination The destination or address to which the message was sent
918 * @param apsFrame The APS frame for the message
919 * @param msgLen The length of the message
920 * @param message The message that was sent
921 * @param status The status of the sent message
923 void emberAfIdentifyClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
924 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
927 /** @brief Identify Cluster Server Pre Attribute Changed
929 * server Pre Attribute Changed
931 * @param endpoint Endpoint that is being initialized
932 * @param attributeId Attribute to be changed
933 * @param attributeType Attribute type
934 * @param size Attribute size
935 * @param value Attribute value
937 EmberAfStatus emberAfIdentifyClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
938 EmberAfAttributeType attributeType, uint8_t size,
941 /** @brief Identify Cluster Server Tick
945 * @param endpoint Endpoint that is being served
947 void emberAfIdentifyClusterServerTickCallback(chip::EndpointId endpoint);
950 // Level Control Cluster server
953 /** @brief Level Control Cluster Server Init
957 * @param endpoint Endpoint that is being initialized
959 void emberAfLevelControlClusterServerInitCallback(chip::EndpointId endpoint);
961 /** @brief Level Control Cluster Server Attribute Changed
963 * Server Attribute Changed
965 * @param endpoint Endpoint that is being initialized
966 * @param attributeId Attribute that changed
968 void emberAfLevelControlClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
970 /** @brief Level Control Cluster Server Manufacturer Specific Attribute Changed
972 * Server Manufacturer Specific Attribute Changed
974 * @param endpoint Endpoint that is being initialized
975 * @param attributeId Attribute that changed
976 * @param manufacturerCode Manufacturer Code of the attribute that changed
978 void emberAfLevelControlClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
979 chip::AttributeId attributeId,
980 uint16_t manufacturerCode);
982 /** @brief Level Control Cluster Server Message Sent
984 * Server Message Sent
986 * @param type The type of message sent
987 * @param indexOrDestination The destination or address to which the message was sent
988 * @param apsFrame The APS frame for the message
989 * @param msgLen The length of the message
990 * @param message The message that was sent
991 * @param status The status of the sent message
993 void emberAfLevelControlClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
994 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
997 /** @brief Level Control Cluster Server Pre Attribute Changed
999 * server Pre Attribute Changed
1001 * @param endpoint Endpoint that is being initialized
1002 * @param attributeId Attribute to be changed
1003 * @param attributeType Attribute type
1004 * @param size Attribute size
1005 * @param value Attribute value
1007 EmberAfStatus emberAfLevelControlClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1008 EmberAfAttributeType attributeType, uint8_t size,
1011 /** @brief Level Control Cluster Server Tick
1015 * @param endpoint Endpoint that is being served
1017 void emberAfLevelControlClusterServerTickCallback(chip::EndpointId endpoint);
1020 // Low Power Cluster server
1023 /** @brief Low Power Cluster Server Init
1027 * @param endpoint Endpoint that is being initialized
1029 void emberAfLowPowerClusterServerInitCallback(chip::EndpointId endpoint);
1031 /** @brief Low Power Cluster Server Attribute Changed
1033 * Server Attribute Changed
1035 * @param endpoint Endpoint that is being initialized
1036 * @param attributeId Attribute that changed
1038 void emberAfLowPowerClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
1040 /** @brief Low Power Cluster Server Manufacturer Specific Attribute Changed
1042 * Server Manufacturer Specific Attribute Changed
1044 * @param endpoint Endpoint that is being initialized
1045 * @param attributeId Attribute that changed
1046 * @param manufacturerCode Manufacturer Code of the attribute that changed
1048 void emberAfLowPowerClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
1049 chip::AttributeId attributeId,
1050 uint16_t manufacturerCode);
1052 /** @brief Low Power Cluster Server Message Sent
1054 * Server Message Sent
1056 * @param type The type of message sent
1057 * @param indexOrDestination The destination or address to which the message was sent
1058 * @param apsFrame The APS frame for the message
1059 * @param msgLen The length of the message
1060 * @param message The message that was sent
1061 * @param status The status of the sent message
1063 void emberAfLowPowerClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
1064 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
1065 EmberStatus status);
1067 /** @brief Low Power Cluster Server Pre Attribute Changed
1069 * server Pre Attribute Changed
1071 * @param endpoint Endpoint that is being initialized
1072 * @param attributeId Attribute to be changed
1073 * @param attributeType Attribute type
1074 * @param size Attribute size
1075 * @param value Attribute value
1077 EmberAfStatus emberAfLowPowerClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1078 EmberAfAttributeType attributeType, uint8_t size,
1081 /** @brief Low Power Cluster Server Tick
1085 * @param endpoint Endpoint that is being served
1087 void emberAfLowPowerClusterServerTickCallback(chip::EndpointId endpoint);
1090 // Media Playback Cluster server
1093 /** @brief Media Playback Cluster Server Init
1097 * @param endpoint Endpoint that is being initialized
1099 void emberAfMediaPlaybackClusterServerInitCallback(chip::EndpointId endpoint);
1101 /** @brief Media Playback Cluster Server Attribute Changed
1103 * Server Attribute Changed
1105 * @param endpoint Endpoint that is being initialized
1106 * @param attributeId Attribute that changed
1108 void emberAfMediaPlaybackClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
1110 /** @brief Media Playback Cluster Server Manufacturer Specific Attribute Changed
1112 * Server Manufacturer Specific Attribute Changed
1114 * @param endpoint Endpoint that is being initialized
1115 * @param attributeId Attribute that changed
1116 * @param manufacturerCode Manufacturer Code of the attribute that changed
1118 void emberAfMediaPlaybackClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
1119 chip::AttributeId attributeId,
1120 uint16_t manufacturerCode);
1122 /** @brief Media Playback Cluster Server Message Sent
1124 * Server Message Sent
1126 * @param type The type of message sent
1127 * @param indexOrDestination The destination or address to which the message was sent
1128 * @param apsFrame The APS frame for the message
1129 * @param msgLen The length of the message
1130 * @param message The message that was sent
1131 * @param status The status of the sent message
1133 void emberAfMediaPlaybackClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
1134 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
1135 EmberStatus status);
1137 /** @brief Media Playback Cluster Server Pre Attribute Changed
1139 * server Pre Attribute Changed
1141 * @param endpoint Endpoint that is being initialized
1142 * @param attributeId Attribute to be changed
1143 * @param attributeType Attribute type
1144 * @param size Attribute size
1145 * @param value Attribute value
1147 EmberAfStatus emberAfMediaPlaybackClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1148 EmberAfAttributeType attributeType, uint8_t size,
1151 /** @brief Media Playback Cluster Server Tick
1155 * @param endpoint Endpoint that is being served
1157 void emberAfMediaPlaybackClusterServerTickCallback(chip::EndpointId endpoint);
1160 // On/off Cluster server
1163 /** @brief On/off Cluster Server Init
1167 * @param endpoint Endpoint that is being initialized
1169 void emberAfOnOffClusterServerInitCallback(chip::EndpointId endpoint);
1171 /** @brief On/off Cluster Server Attribute Changed
1173 * Server Attribute Changed
1175 * @param endpoint Endpoint that is being initialized
1176 * @param attributeId Attribute that changed
1178 void emberAfOnOffClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
1180 /** @brief On/off Cluster Server Manufacturer Specific Attribute Changed
1182 * Server Manufacturer Specific Attribute Changed
1184 * @param endpoint Endpoint that is being initialized
1185 * @param attributeId Attribute that changed
1186 * @param manufacturerCode Manufacturer Code of the attribute that changed
1188 void emberAfOnOffClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1189 uint16_t manufacturerCode);
1191 /** @brief On/off Cluster Server Message Sent
1193 * Server Message Sent
1195 * @param type The type of message sent
1196 * @param indexOrDestination The destination or address to which the message was sent
1197 * @param apsFrame The APS frame for the message
1198 * @param msgLen The length of the message
1199 * @param message The message that was sent
1200 * @param status The status of the sent message
1202 void emberAfOnOffClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
1203 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, EmberStatus status);
1205 /** @brief On/off Cluster Server Pre Attribute Changed
1207 * server Pre Attribute Changed
1209 * @param endpoint Endpoint that is being initialized
1210 * @param attributeId Attribute to be changed
1211 * @param attributeType Attribute type
1212 * @param size Attribute size
1213 * @param value Attribute value
1215 EmberAfStatus emberAfOnOffClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1216 EmberAfAttributeType attributeType, uint8_t size,
1219 /** @brief On/off Cluster Server Tick
1223 * @param endpoint Endpoint that is being served
1225 void emberAfOnOffClusterServerTickCallback(chip::EndpointId endpoint);
1228 // Scenes Cluster server
1231 /** @brief Scenes Cluster Server Init
1235 * @param endpoint Endpoint that is being initialized
1237 void emberAfScenesClusterServerInitCallback(chip::EndpointId endpoint);
1239 /** @brief Scenes Cluster Server Attribute Changed
1241 * Server Attribute Changed
1243 * @param endpoint Endpoint that is being initialized
1244 * @param attributeId Attribute that changed
1246 void emberAfScenesClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
1248 /** @brief Scenes Cluster Server Manufacturer Specific Attribute Changed
1250 * Server Manufacturer Specific Attribute Changed
1252 * @param endpoint Endpoint that is being initialized
1253 * @param attributeId Attribute that changed
1254 * @param manufacturerCode Manufacturer Code of the attribute that changed
1256 void emberAfScenesClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
1257 chip::AttributeId attributeId,
1258 uint16_t manufacturerCode);
1260 /** @brief Scenes Cluster Server Message Sent
1262 * Server Message Sent
1264 * @param type The type of message sent
1265 * @param indexOrDestination The destination or address to which the message was sent
1266 * @param apsFrame The APS frame for the message
1267 * @param msgLen The length of the message
1268 * @param message The message that was sent
1269 * @param status The status of the sent message
1271 void emberAfScenesClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
1272 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
1273 EmberStatus status);
1275 /** @brief Scenes Cluster Server Pre Attribute Changed
1277 * server Pre Attribute Changed
1279 * @param endpoint Endpoint that is being initialized
1280 * @param attributeId Attribute to be changed
1281 * @param attributeType Attribute type
1282 * @param size Attribute size
1283 * @param value Attribute value
1285 EmberAfStatus emberAfScenesClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId,
1286 EmberAfAttributeType attributeType, uint8_t size,
1289 /** @brief Scenes Cluster Server Tick
1293 * @param endpoint Endpoint that is being served
1295 void emberAfScenesClusterServerTickCallback(chip::EndpointId endpoint);
1298 // Temperature Measurement Cluster server
1301 /** @brief Temperature Measurement Cluster Server Init
1305 * @param endpoint Endpoint that is being initialized
1307 void emberAfTemperatureMeasurementClusterServerInitCallback(chip::EndpointId endpoint);
1309 /** @brief Temperature Measurement Cluster Server Attribute Changed
1311 * Server Attribute Changed
1313 * @param endpoint Endpoint that is being initialized
1314 * @param attributeId Attribute that changed
1316 void emberAfTemperatureMeasurementClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);
1318 /** @brief Temperature Measurement Cluster Server Manufacturer Specific Attribute Changed
1320 * Server Manufacturer Specific Attribute Changed
1322 * @param endpoint Endpoint that is being initialized
1323 * @param attributeId Attribute that changed
1324 * @param manufacturerCode Manufacturer Code of the attribute that changed
1326 void emberAfTemperatureMeasurementClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
1327 chip::AttributeId attributeId,
1328 uint16_t manufacturerCode);
1330 /** @brief Temperature Measurement Cluster Server Message Sent
1332 * Server Message Sent
1334 * @param type The type of message sent
1335 * @param indexOrDestination The destination or address to which the message was sent
1336 * @param apsFrame The APS frame for the message
1337 * @param msgLen The length of the message
1338 * @param message The message that was sent
1339 * @param status The status of the sent message
1341 void emberAfTemperatureMeasurementClusterServerMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination,
1342 EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message,
1343 EmberStatus status);
1345 /** @brief Temperature Measurement Cluster Server Pre Attribute Changed
1347 * server Pre Attribute Changed
1349 * @param endpoint Endpoint that is being initialized
1350 * @param attributeId Attribute to be changed
1351 * @param attributeType Attribute type
1352 * @param size Attribute size
1353 * @param value Attribute value
1355 EmberAfStatus emberAfTemperatureMeasurementClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint,
1356 chip::AttributeId attributeId,
1357 EmberAfAttributeType attributeType,
1358 uint8_t size, uint8_t * value);
1360 /** @brief Temperature Measurement Cluster Server Tick
1364 * @param endpoint Endpoint that is being served
1366 void emberAfTemperatureMeasurementClusterServerTickCallback(chip::EndpointId endpoint);
1368 // Cluster Commands Callback
1371 * @brief Barrier Control Cluster BarrierControlGoToPercent Command callback
1372 * @param percentOpen
1375 bool emberAfBarrierControlClusterBarrierControlGoToPercentCallback(uint8_t percentOpen);
1378 * @brief Barrier Control Cluster BarrierControlStop Command callback
1381 bool emberAfBarrierControlClusterBarrierControlStopCallback();
1384 * @brief Basic Cluster MfgSpecificPing Command callback
1387 bool emberAfBasicClusterMfgSpecificPingCallback();
1390 * @brief Basic Cluster ResetToFactoryDefaults Command callback
1393 bool emberAfBasicClusterResetToFactoryDefaultsCallback();
1396 * @brief Binding Cluster Bind Command callback
1403 bool emberAfBindingClusterBindCallback(chip::NodeId nodeId, chip::GroupId groupId, chip::EndpointId endpointId,
1404 chip::ClusterId clusterId);
1407 * @brief Binding Cluster Unbind Command callback
1414 bool emberAfBindingClusterUnbindCallback(chip::NodeId nodeId, chip::GroupId groupId, chip::EndpointId endpointId,
1415 chip::ClusterId clusterId);
1418 * @brief Color Control Cluster MoveColor Command callback
1421 * @param optionsMask
1422 * @param optionsOverride
1425 bool emberAfColorControlClusterMoveColorCallback(int16_t rateX, int16_t rateY, uint8_t optionsMask, uint8_t optionsOverride);
1428 * @brief Color Control Cluster MoveColorTemperature Command callback
1431 * @param colorTemperatureMinimum
1432 * @param colorTemperatureMaximum
1433 * @param optionsMask
1434 * @param optionsOverride
1437 bool emberAfColorControlClusterMoveColorTemperatureCallback(uint8_t moveMode, uint16_t rate, uint16_t colorTemperatureMinimum,
1438 uint16_t colorTemperatureMaximum, uint8_t optionsMask,
1439 uint8_t optionsOverride);
1442 * @brief Color Control Cluster MoveHue Command callback
1445 * @param optionsMask
1446 * @param optionsOverride
1449 bool emberAfColorControlClusterMoveHueCallback(uint8_t moveMode, uint8_t rate, uint8_t optionsMask, uint8_t optionsOverride);
1452 * @brief Color Control Cluster MoveSaturation Command callback
1455 * @param optionsMask
1456 * @param optionsOverride
1459 bool emberAfColorControlClusterMoveSaturationCallback(uint8_t moveMode, uint8_t rate, uint8_t optionsMask, uint8_t optionsOverride);
1462 * @brief Color Control Cluster MoveToColor Command callback
1465 * @param transitionTime
1466 * @param optionsMask
1467 * @param optionsOverride
1470 bool emberAfColorControlClusterMoveToColorCallback(uint16_t colorX, uint16_t colorY, uint16_t transitionTime, uint8_t optionsMask,
1471 uint8_t optionsOverride);
1474 * @brief Color Control Cluster MoveToColorTemperature Command callback
1475 * @param colorTemperature
1476 * @param transitionTime
1477 * @param optionsMask
1478 * @param optionsOverride
1481 bool emberAfColorControlClusterMoveToColorTemperatureCallback(uint16_t colorTemperature, uint16_t transitionTime,
1482 uint8_t optionsMask, uint8_t optionsOverride);
1485 * @brief Color Control Cluster MoveToHue Command callback
1488 * @param transitionTime
1489 * @param optionsMask
1490 * @param optionsOverride
1493 bool emberAfColorControlClusterMoveToHueCallback(uint8_t hue, uint8_t direction, uint16_t transitionTime, uint8_t optionsMask,
1494 uint8_t optionsOverride);
1497 * @brief Color Control Cluster MoveToHueAndSaturation Command callback
1500 * @param transitionTime
1501 * @param optionsMask
1502 * @param optionsOverride
1505 bool emberAfColorControlClusterMoveToHueAndSaturationCallback(uint8_t hue, uint8_t saturation, uint16_t transitionTime,
1506 uint8_t optionsMask, uint8_t optionsOverride);
1509 * @brief Color Control Cluster MoveToSaturation Command callback
1511 * @param transitionTime
1512 * @param optionsMask
1513 * @param optionsOverride
1516 bool emberAfColorControlClusterMoveToSaturationCallback(uint8_t saturation, uint16_t transitionTime, uint8_t optionsMask,
1517 uint8_t optionsOverride);
1520 * @brief Color Control Cluster StepColor Command callback
1523 * @param transitionTime
1524 * @param optionsMask
1525 * @param optionsOverride
1528 bool emberAfColorControlClusterStepColorCallback(int16_t stepX, int16_t stepY, uint16_t transitionTime, uint8_t optionsMask,
1529 uint8_t optionsOverride);
1532 * @brief Color Control Cluster StepColorTemperature Command callback
1535 * @param transitionTime
1536 * @param colorTemperatureMinimum
1537 * @param colorTemperatureMaximum
1538 * @param optionsMask
1539 * @param optionsOverride
1542 bool emberAfColorControlClusterStepColorTemperatureCallback(uint8_t stepMode, uint16_t stepSize, uint16_t transitionTime,
1543 uint16_t colorTemperatureMinimum, uint16_t colorTemperatureMaximum,
1544 uint8_t optionsMask, uint8_t optionsOverride);
1547 * @brief Color Control Cluster StepHue Command callback
1550 * @param transitionTime
1551 * @param optionsMask
1552 * @param optionsOverride
1555 bool emberAfColorControlClusterStepHueCallback(uint8_t stepMode, uint8_t stepSize, uint8_t transitionTime, uint8_t optionsMask,
1556 uint8_t optionsOverride);
1559 * @brief Color Control Cluster StepSaturation Command callback
1562 * @param transitionTime
1563 * @param optionsMask
1564 * @param optionsOverride
1567 bool emberAfColorControlClusterStepSaturationCallback(uint8_t stepMode, uint8_t stepSize, uint8_t transitionTime,
1568 uint8_t optionsMask, uint8_t optionsOverride);
1571 * @brief Color Control Cluster StopMoveStep Command callback
1572 * @param optionsMask
1573 * @param optionsOverride
1576 bool emberAfColorControlClusterStopMoveStepCallback(uint8_t optionsMask, uint8_t optionsOverride);
1579 * @brief Content Launch Cluster LaunchContent Command callback
1582 bool emberAfContentLaunchClusterLaunchContentCallback();
1585 * @brief Content Launch Cluster LaunchURL Command callback
1588 bool emberAfContentLaunchClusterLaunchURLCallback();
1591 * @brief Door Lock Cluster ClearAllPins Command callback
1594 bool emberAfDoorLockClusterClearAllPinsCallback();
1597 * @brief Door Lock Cluster ClearAllRfids Command callback
1600 bool emberAfDoorLockClusterClearAllRfidsCallback();
1603 * @brief Door Lock Cluster ClearHolidaySchedule Command callback
1607 bool emberAfDoorLockClusterClearHolidayScheduleCallback(uint8_t scheduleId);
1610 * @brief Door Lock Cluster ClearPin Command callback
1614 bool emberAfDoorLockClusterClearPinCallback(uint16_t userId);
1617 * @brief Door Lock Cluster ClearRfid Command callback
1621 bool emberAfDoorLockClusterClearRfidCallback(uint16_t userId);
1624 * @brief Door Lock Cluster ClearWeekdaySchedule Command callback
1629 bool emberAfDoorLockClusterClearWeekdayScheduleCallback(uint8_t scheduleId, uint16_t userId);
1632 * @brief Door Lock Cluster ClearYeardaySchedule Command callback
1637 bool emberAfDoorLockClusterClearYeardayScheduleCallback(uint8_t scheduleId, uint16_t userId);
1640 * @brief Door Lock Cluster GetHolidaySchedule Command callback
1644 bool emberAfDoorLockClusterGetHolidayScheduleCallback(uint8_t scheduleId);
1647 * @brief Door Lock Cluster GetLogRecord Command callback
1651 bool emberAfDoorLockClusterGetLogRecordCallback(uint16_t logIndex);
1654 * @brief Door Lock Cluster GetPin Command callback
1658 bool emberAfDoorLockClusterGetPinCallback(uint16_t userId);
1661 * @brief Door Lock Cluster GetRfid Command callback
1665 bool emberAfDoorLockClusterGetRfidCallback(uint16_t userId);
1668 * @brief Door Lock Cluster GetUserType Command callback
1672 bool emberAfDoorLockClusterGetUserTypeCallback(uint16_t userId);
1675 * @brief Door Lock Cluster GetWeekdaySchedule Command callback
1680 bool emberAfDoorLockClusterGetWeekdayScheduleCallback(uint8_t scheduleId, uint16_t userId);
1683 * @brief Door Lock Cluster GetYeardaySchedule Command callback
1688 bool emberAfDoorLockClusterGetYeardayScheduleCallback(uint8_t scheduleId, uint16_t userId);
1691 * @brief Door Lock Cluster LockDoor Command callback
1695 bool emberAfDoorLockClusterLockDoorCallback(uint8_t * PIN);
1698 * @brief Door Lock Cluster SetHolidaySchedule Command callback
1700 * @param localStartTime
1701 * @param localEndTime
1702 * @param operatingModeDuringHoliday
1705 bool emberAfDoorLockClusterSetHolidayScheduleCallback(uint8_t scheduleId, uint32_t localStartTime, uint32_t localEndTime,
1706 uint8_t operatingModeDuringHoliday);
1709 * @brief Door Lock Cluster SetPin Command callback
1716 bool emberAfDoorLockClusterSetPinCallback(uint16_t userId, uint8_t userStatus, uint8_t userType, uint8_t * pin);
1719 * @brief Door Lock Cluster SetRfid Command callback
1726 bool emberAfDoorLockClusterSetRfidCallback(uint16_t userId, uint8_t userStatus, uint8_t userType, uint8_t * id);
1729 * @brief Door Lock Cluster SetUserType Command callback
1734 bool emberAfDoorLockClusterSetUserTypeCallback(uint16_t userId, uint8_t userType);
1737 * @brief Door Lock Cluster SetWeekdaySchedule Command callback
1742 * @param startMinute
1747 bool emberAfDoorLockClusterSetWeekdayScheduleCallback(uint8_t scheduleId, uint16_t userId, uint8_t daysMask, uint8_t startHour,
1748 uint8_t startMinute, uint8_t endHour, uint8_t endMinute);
1751 * @brief Door Lock Cluster SetYeardaySchedule Command callback
1754 * @param localStartTime
1755 * @param localEndTime
1758 bool emberAfDoorLockClusterSetYeardayScheduleCallback(uint8_t scheduleId, uint16_t userId, uint32_t localStartTime,
1759 uint32_t localEndTime);
1762 * @brief Door Lock Cluster UnlockDoor Command callback
1766 bool emberAfDoorLockClusterUnlockDoorCallback(uint8_t * PIN);
1769 * @brief Door Lock Cluster UnlockWithTimeout Command callback
1770 * @param timeoutInSeconds
1774 bool emberAfDoorLockClusterUnlockWithTimeoutCallback(uint16_t timeoutInSeconds, uint8_t * pin);
1777 * @brief General Commissioning Cluster ArmFailSafe Command callback
1778 * @param expiryLengthSeconds
1783 bool emberAfGeneralCommissioningClusterArmFailSafeCallback(uint16_t expiryLengthSeconds, uint64_t breadcrumb, uint32_t timeoutMs);
1786 * @brief General Commissioning Cluster CommissioningComplete Command callback
1789 bool emberAfGeneralCommissioningClusterCommissioningCompleteCallback();
1792 * @brief General Commissioning Cluster SetFabric Command callback
1794 * @param fabricSecret
1799 bool emberAfGeneralCommissioningClusterSetFabricCallback(uint8_t * fabricId, uint8_t * fabricSecret, uint64_t breadcrumb,
1800 uint32_t timeoutMs);
1803 * @brief Groups Cluster AddGroup Command callback
1808 bool emberAfGroupsClusterAddGroupCallback(uint16_t groupId, uint8_t * groupName);
1811 * @brief Groups Cluster AddGroupIfIdentifying Command callback
1816 bool emberAfGroupsClusterAddGroupIfIdentifyingCallback(uint16_t groupId, uint8_t * groupName);
1819 * @brief Groups Cluster GetGroupMembership Command callback
1824 bool emberAfGroupsClusterGetGroupMembershipCallback(uint8_t groupCount,
1825 /* TYPE WARNING: array array defaults to */ uint8_t * groupList);
1828 * @brief Groups Cluster RemoveAllGroups Command callback
1831 bool emberAfGroupsClusterRemoveAllGroupsCallback();
1834 * @brief Groups Cluster RemoveGroup Command callback
1838 bool emberAfGroupsClusterRemoveGroupCallback(uint16_t groupId);
1841 * @brief Groups Cluster ViewGroup Command callback
1845 bool emberAfGroupsClusterViewGroupCallback(uint16_t groupId);
1848 * @brief IAS Zone Cluster ZoneEnrollResponse Command callback
1849 * @param enrollResponseCode
1853 bool emberAfIasZoneClusterZoneEnrollResponseCallback(uint8_t enrollResponseCode, uint8_t zoneId);
1856 * @brief Identify Cluster Identify Command callback
1857 * @param identifyTime
1860 bool emberAfIdentifyClusterIdentifyCallback(uint16_t identifyTime);
1863 * @brief Identify Cluster IdentifyQuery Command callback
1866 bool emberAfIdentifyClusterIdentifyQueryCallback();
1869 * @brief Level Control Cluster Move Command callback
1873 * @param optionOverride
1876 bool emberAfLevelControlClusterMoveCallback(uint8_t moveMode, uint8_t rate, uint8_t optionMask, uint8_t optionOverride);
1879 * @brief Level Control Cluster MoveToLevel Command callback
1881 * @param transitionTime
1883 * @param optionOverride
1886 bool emberAfLevelControlClusterMoveToLevelCallback(uint8_t level, uint16_t transitionTime, uint8_t optionMask,
1887 uint8_t optionOverride);
1890 * @brief Level Control Cluster MoveToLevelWithOnOff Command callback
1892 * @param transitionTime
1895 bool emberAfLevelControlClusterMoveToLevelWithOnOffCallback(uint8_t level, uint16_t transitionTime);
1898 * @brief Level Control Cluster MoveWithOnOff Command callback
1903 bool emberAfLevelControlClusterMoveWithOnOffCallback(uint8_t moveMode, uint8_t rate);
1906 * @brief Level Control Cluster Step Command callback
1909 * @param transitionTime
1911 * @param optionOverride
1914 bool emberAfLevelControlClusterStepCallback(uint8_t stepMode, uint8_t stepSize, uint16_t transitionTime, uint8_t optionMask,
1915 uint8_t optionOverride);
1918 * @brief Level Control Cluster StepWithOnOff Command callback
1921 * @param transitionTime
1924 bool emberAfLevelControlClusterStepWithOnOffCallback(uint8_t stepMode, uint8_t stepSize, uint16_t transitionTime);
1927 * @brief Level Control Cluster Stop Command callback
1929 * @param optionOverride
1932 bool emberAfLevelControlClusterStopCallback(uint8_t optionMask, uint8_t optionOverride);
1935 * @brief Level Control Cluster StopWithOnOff Command callback
1938 bool emberAfLevelControlClusterStopWithOnOffCallback();
1941 * @brief Low Power Cluster Sleep Command callback
1944 bool emberAfLowPowerClusterSleepCallback();
1947 * @brief Media Playback Cluster FastForwardRequest Command callback
1950 bool emberAfMediaPlaybackClusterFastForwardRequestCallback();
1953 * @brief Media Playback Cluster NextRequest Command callback
1956 bool emberAfMediaPlaybackClusterNextRequestCallback();
1959 * @brief Media Playback Cluster PauseRequest Command callback
1962 bool emberAfMediaPlaybackClusterPauseRequestCallback();
1965 * @brief Media Playback Cluster PlayRequest Command callback
1968 bool emberAfMediaPlaybackClusterPlayRequestCallback();
1971 * @brief Media Playback Cluster PreviousRequest Command callback
1974 bool emberAfMediaPlaybackClusterPreviousRequestCallback();
1977 * @brief Media Playback Cluster RewindRequest Command callback
1980 bool emberAfMediaPlaybackClusterRewindRequestCallback();
1983 * @brief Media Playback Cluster SkipBackwardRequest Command callback
1986 bool emberAfMediaPlaybackClusterSkipBackwardRequestCallback();
1989 * @brief Media Playback Cluster SkipForwardRequest Command callback
1992 bool emberAfMediaPlaybackClusterSkipForwardRequestCallback();
1995 * @brief Media Playback Cluster StartOverRequest Command callback
1998 bool emberAfMediaPlaybackClusterStartOverRequestCallback();
2001 * @brief Media Playback Cluster StopRequest Command callback
2004 bool emberAfMediaPlaybackClusterStopRequestCallback();
2007 * @brief On/off Cluster Off Command callback
2010 bool emberAfOnOffClusterOffCallback();
2013 * @brief On/off Cluster On Command callback
2016 bool emberAfOnOffClusterOnCallback();
2019 * @brief On/off Cluster Toggle Command callback
2022 bool emberAfOnOffClusterToggleCallback();
2025 * @brief Scenes Cluster AddScene Command callback
2028 * @param transitionTime
2030 * @param extensionFieldSets
2033 bool emberAfScenesClusterAddSceneCallback(uint16_t groupId, uint8_t sceneId, uint16_t transitionTime, uint8_t * sceneName,
2034 /* TYPE WARNING: array array defaults to */ uint8_t * extensionFieldSets);
2037 * @brief Scenes Cluster GetSceneMembership Command callback
2041 bool emberAfScenesClusterGetSceneMembershipCallback(uint16_t groupId);
2044 * @brief Scenes Cluster RecallScene Command callback
2047 * @param transitionTime
2050 bool emberAfScenesClusterRecallSceneCallback(uint16_t groupId, uint8_t sceneId, uint16_t transitionTime);
2053 * @brief Scenes Cluster RemoveAllScenes Command callback
2057 bool emberAfScenesClusterRemoveAllScenesCallback(uint16_t groupId);
2060 * @brief Scenes Cluster RemoveScene Command callback
2065 bool emberAfScenesClusterRemoveSceneCallback(uint16_t groupId, uint8_t sceneId);
2068 * @brief Scenes Cluster StoreScene Command callback
2073 bool emberAfScenesClusterStoreSceneCallback(uint16_t groupId, uint8_t sceneId);
2076 * @brief Scenes Cluster ViewScene Command callback
2081 bool emberAfScenesClusterViewSceneCallback(uint16_t groupId, uint8_t sceneId);
2084 // Non-Cluster Related Callbacks
2087 /** @brief Add To Current App Tasks
2089 * This function is only useful to sleepy end devices. This function will note
2090 * the passed item as part of a set of tasks the application has outstanding
2091 * (e.g. message sent requiring APS acknwoledgement). This will affect how the
2092 * application behaves with regard to sleeping and polling. Until the
2093 * outstanding task is completed, the device may poll more frequently and sleep
2096 * @param tasks Ver.: always
2098 void emberAfAddToCurrentAppTasksCallback(EmberAfApplicationTask tasks);
2100 /** @brief Remove From Current App Tasks
2102 * This function is only useful to sleepy end devices. This function will
2103 * remove the passed item from the set of tasks the application has outstanding
2104 * (e.g. message sent requiring APS acknwoledgement). This will affect how the
2105 * application behaves with regard to sleeping and polling. Removing the item
2106 * from the list of outstanding tasks may allow the device to sleep longer and
2107 * poll less frequently. If there are other outstanding tasks the system may
2108 * still have to stay away and poll more often.
2110 * @param tasks Ver.: always
2112 void emberAfRemoveFromCurrentAppTasksCallback(EmberAfApplicationTask tasks);
2114 /** @brief Allow Network Write Attribute
2116 * This function is called by the application framework before it writes an
2117 * attribute in response to a write attribute request from an external device.
2118 * The value passed into this callback is the value to which the attribute is to
2119 * be set by the framework.
2120 Example: In mirroring simple metering data
2121 * on an Energy Services Interface (ESI) (formerly called Energy Service Portal
2122 * (ESP) in SE 1.0).), a mirrored simple meter needs to write read-only
2123 * attributes on its mirror. The-meter-mirror sample application, located in
2124 * app/framework/sample-apps, uses this callback to allow the mirrored device to
2125 * write simple metering attributes on the mirror regardless of the fact that
2126 * most simple metering attributes are defined as read-only by the ZigBee
2128 Note: The ZCL specification does not (as of this
2129 * writing) specify any permission-level security for writing writeable
2130 * attributes. As far as the ZCL specification is concerned, if an attribute is
2131 * writeable, any device that has a link key for the device should be able to
2132 * write that attribute. Furthermore if an attribute is read only, it should not
2133 * be written over the air. Thus, if you implement permissions for writing
2134 * attributes as a feature, you MAY be operating outside the specification. This
2135 * is unlikely to be a problem for writing read-only attributes, but it may be a
2136 * problem for attributes that are writeable according to the specification but
2137 * restricted by the application implementing this callback.
2139 * @param endpoint Ver.: always
2140 * @param clusterId Ver.: always
2141 * @param attributeId Ver.: always
2142 * @param mask Ver.: always
2143 * @param manufacturerCode Ver.: always
2144 * @param value Ver.: always
2145 * @param type Ver.: always
2147 EmberAfAttributeWritePermission emberAfAllowNetworkWriteAttributeCallback(chip::EndpointId endpoint, chip::ClusterId clusterId,
2148 chip::AttributeId attributeId, uint8_t mask,
2149 uint16_t manufacturerCode, uint8_t * value, uint8_t type);
2151 /** @brief Attribute Read Access
2153 * This function is called whenever the Application Framework needs to check
2154 * access permission for an attribute read.
2156 * @param endpoint Ver.: always
2157 * @param clusterId Ver.: always
2158 * @param manufacturerCode Ver.: always
2159 * @param attributeId Ver.: always
2161 bool emberAfAttributeReadAccessCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, uint16_t manufacturerCode,
2162 chip::AttributeId attributeId);
2164 /** @brief Attribute Write Access
2166 * This function is called whenever the Application Framework needs to check
2167 * access permission for an attribute write.
2169 * @param endpoint Ver.: always
2170 * @param clusterId Ver.: always
2171 * @param manufacturerCode Ver.: always
2172 * @param attributeId Ver.: always
2174 bool emberAfAttributeWriteAccessCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, uint16_t manufacturerCode,
2175 chip::AttributeId attributeId);
2177 /** @brief Default Response
2179 * This function is called by the application framework when a Default Response
2180 * command is received from an external device. The application should return
2181 * true if the message was processed or false if it was not.
2183 * @param clusterId The cluster identifier of this response. Ver.: always
2184 * @param commandId The command identifier to which this is a response. Ver.:
2186 * @param status Specifies either SUCCESS or the nature of the error that was
2187 * detected in the received command. Ver.: always
2189 bool emberAfDefaultResponseCallback(chip::ClusterId clusterId, chip::CommandId commandId, EmberAfStatus status);
2191 /** @brief Configure Reporting Response
2193 * This function is called by the application framework when a Configure
2194 * Reporting Response command is received from an external device. The
2195 * application should return true if the message was processed or false if it
2198 * @param clusterId The cluster identifier of this response. Ver.: always
2199 * @param buffer Buffer containing the list of attribute status records. Ver.:
2201 * @param bufLen The length in bytes of the list. Ver.: always
2203 bool emberAfConfigureReportingResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
2205 /** @brief Read Reporting Configuration Response
2207 * This function is called by the application framework when a Read Reporting
2208 * Configuration Response command is received from an external device. The
2209 * application should return true if the message was processed or false if it
2212 * @param clusterId The cluster identifier of this response. Ver.: always
2213 * @param buffer Buffer containing the list of attribute reporting configuration
2214 * records. Ver.: always
2215 * @param bufLen The length in bytes of the list. Ver.: always
2217 bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
2219 /** @brief Discover Attributes Response
2221 * This function is called by the application framework when a Discover
2222 * Attributes Response or Discover Attributes Extended Response command is
2223 * received from an external device. The Discover Attributes Response command
2224 * contains a bool indicating if discovery is complete and a list of zero or
2225 * more attribute identifier/type records. The final argument indicates whether
2226 * the response is in the extended format or not. The application should return
2227 * true if the message was processed or false if it was not.
2229 * @param clusterId The cluster identifier of this response. Ver.: always
2230 * @param discoveryComplete Indicates whether there are more attributes to be
2231 * discovered. true if there are no more attributes to be discovered. Ver.:
2233 * @param buffer Buffer containing the list of attribute identifier/type
2234 * records. Ver.: always
2235 * @param bufLen The length in bytes of the list. Ver.: always
2236 * @param extended Indicates whether the response is in the extended format or
2239 bool emberAfDiscoverAttributesResponseCallback(chip::ClusterId clusterId, bool discoveryComplete, uint8_t * buffer, uint16_t bufLen,
2242 /** @brief Discover Commands Generated Response
2244 * This function is called by the framework when Discover Commands Generated
2245 * Response is received.
2247 * @param clusterId The cluster identifier of this response. Ver.: always
2248 * @param manufacturerCode Manufacturer code Ver.: always
2249 * @param discoveryComplete Indicates whether there are more commands to be
2250 * discovered. Ver.: always
2251 * @param commandIds Buffer containing the list of command identifiers. Ver.:
2253 * @param commandIdCount The length of bytes of the list, whish is the same as
2254 * the number of identifiers. Ver.: always
2256 bool emberAfDiscoverCommandsGeneratedResponseCallback(chip::ClusterId clusterId, uint16_t manufacturerCode, bool discoveryComplete,
2257 chip::CommandId * commandIds, uint16_t commandIdCount);
2259 /** @brief Discover Commands Received Response
2261 * This function is called by the framework when Discover Commands Received
2262 * Response is received.
2264 * @param clusterId The cluster identifier of this response. Ver.: always
2265 * @param manufacturerCode Manufacturer code Ver.: always
2266 * @param discoveryComplete Indicates whether there are more commands to be
2267 * discovered. Ver.: always
2268 * @param commandIds Buffer containing the list of command identifiers. Ver.:
2270 * @param commandIdCount The length of bytes of the list, whish is the same as
2271 * the number of identifiers. Ver.: always
2273 bool emberAfDiscoverCommandsReceivedResponseCallback(chip::ClusterId clusterId, uint16_t manufacturerCode, bool discoveryComplete,
2274 chip::CommandId * commandIds, uint16_t commandIdCount);
2276 /** @brief Pre Command Received
2278 * This callback is the second in the Application Framework's message processing
2279 * chain. At this point in the processing of incoming over-the-air messages, the
2280 * application has determined that the incoming message is a ZCL command. It
2281 * parses enough of the message to populate an EmberAfClusterCommand struct. The
2282 * Application Framework defines this struct value in a local scope to the
2283 * command processing but also makes it available through a global pointer
2284 * called emberAfCurrentCommand, in app/framework/util/util.c. When command
2285 * processing is complete, this pointer is cleared.
2287 * @param cmd Ver.: always
2289 bool emberAfPreCommandReceivedCallback(EmberAfClusterCommand * cmd);
2291 /** @brief Pre Message Send
2293 * This function is called by the framework when it is about to pass a message
2294 * to the stack primitives for sending. This message may or may not be ZCL,
2295 * ZDO, or some other protocol. This is called prior to
2297 * fragmentation that may be done. If the function returns true it is assumed
2298 * the callback has consumed and processed the message. The callback must also
2299 * set the EmberStatus status code to be passed back to the caller. The
2300 * framework will do no further processing on the message.
2302 * function returns false then it is assumed that the callback has not processed
2303 * the mesasge and the framework will continue to process accordingly.
2305 * @param messageStruct The structure containing the parameters of the APS
2306 * message to be sent. Ver.: always
2307 * @param status A pointer to the status code value that will be returned to the
2308 * caller. Ver.: always
2310 bool emberAfPreMessageSendCallback(EmberAfMessageStruct * messageStruct, EmberStatus * status);
2312 /** @brief Message Sent
2314 * This function is called by the application framework from the message sent
2315 * handler, when it is informed by the stack regarding the message sent status.
2316 * All of the values passed to the emberMessageSentHandler are passed on to this
2317 * callback. This provides an opportunity for the application to verify that its
2318 * message has been sent successfully and take the appropriate action. This
2319 * callback should return a bool value of true or false. A value of true
2320 * indicates that the message sent notification has been handled and should not
2321 * be handled by the application framework.
2323 * @param type Ver.: always
2324 * @param indexOrDestination Ver.: always
2325 * @param apsFrame Ver.: always
2326 * @param msgLen Ver.: always
2327 * @param message Ver.: always
2328 * @param status Ver.: always
2330 bool emberAfMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination, EmberApsFrame * apsFrame,
2331 uint16_t msgLen, uint8_t * message, EmberStatus status);
2333 /** @brief Pre Attribute Change
2335 * This function is called by the application framework before it changes an
2336 * attribute value. The value passed into this callback is the value to which
2337 * the attribute is to be set by the framework. The application should return
2338 * ::EMBER_ZCL_STATUS_SUCCESS to permit the change or any other ::EmberAfStatus
2341 * @param endpoint Ver.: always
2342 * @param clusterId Ver.: always
2343 * @param attributeId Ver.: always
2344 * @param mask Ver.: always
2345 * @param manufacturerCode Ver.: always
2346 * @param type Ver.: always
2347 * @param size Ver.: always
2348 * @param value Ver.: always
2350 EmberAfStatus emberAfPreAttributeChangeCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::AttributeId attributeId,
2351 uint8_t mask, uint16_t manufacturerCode, uint8_t type, uint8_t size,
2354 /** @brief Post Attribute Change
2356 * This function is called by the application framework after it changes an
2357 * attribute value. The value passed into this callback is the value to which
2358 * the attribute was set by the framework.
2360 * @param endpoint Ver.: always
2361 * @param clusterId Ver.: always
2362 * @param attributeId Ver.: always
2363 * @param mask Ver.: always
2364 * @param manufacturerCode Ver.: always
2365 * @param type Ver.: always
2366 * @param size Ver.: always
2367 * @param value Ver.: always
2369 void emberAfPostAttributeChangeCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::AttributeId attributeId,
2370 uint8_t mask, uint16_t manufacturerCode, uint8_t type, uint8_t size, uint8_t * value);
2372 /** @brief Read Attributes Response
2374 * This function is called by the application framework when a Read Attributes
2375 * Response command is received from an external device. The application should
2376 * return true if the message was processed or false if it was not.
2378 * @param clusterId The cluster identifier of this response. Ver.: always
2379 * @param buffer Buffer containing the list of read attribute status records.
2381 * @param bufLen The length in bytes of the list. Ver.: always
2383 bool emberAfReadAttributesResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
2385 /** @brief External Attribute Read
2387 * Like emberAfExternalAttributeWriteCallback above, this function is called
2388 * when the framework needs to read an attribute that is not stored within the
2389 * Application Framework's data structures.
2390 All of the important
2391 * information about the attribute itself is passed as a pointer to an
2392 * EmberAfAttributeMetadata struct, which is stored within the application and
2393 * used to manage the attribute. A complete description of the
2394 * EmberAfAttributeMetadata struct is provided in
2395 * app/framework/include/af-types.h
2396 This function assumes that the
2397 * application is able to read the attribute, write it into the passed buffer,
2398 * and return immediately. Any attributes that require a state machine for
2399 * reading and writing are not really candidates for externalization at the
2400 * present time. The Application Framework does not currently include a state
2401 * machine for reading or writing attributes that must take place across a
2402 * series of application ticks. Attributes that cannot be read in a timely
2403 * manner should be stored within the Application Framework and updated
2404 * occasionally by the application code from within the
2405 * emberAfMainTickCallback.
2406 If the application was successfully able to
2407 * read the attribute and write it into the passed buffer, it should return a
2408 * value of EMBER_ZCL_STATUS_SUCCESS. Ensure that the size of the externally
2409 * managed attribute value is smaller than what the buffer can hold. In the case
2410 * of a buffer overflow throw an appropriate error such as
2411 * EMBER_ZCL_STATUS_INSUFFICIENT_SPACE. Any other return value indicates the
2412 * application was not able to read the attribute.
2414 * @param endpoint Ver.: always
2415 * @param clusterId Ver.: always
2416 * @param attributeMetadata Ver.: always
2417 * @param manufacturerCode Ver.: always
2418 * @param buffer Ver.: always
2419 * @param maxReadLength Ver.: always
2421 EmberAfStatus emberAfExternalAttributeReadCallback(chip::EndpointId endpoint, chip::ClusterId clusterId,
2422 EmberAfAttributeMetadata * attributeMetadata, uint16_t manufacturerCode,
2423 uint8_t * buffer, uint16_t maxReadLength);
2425 /** @brief Write Attributes Response
2427 * This function is called by the application framework when a Write Attributes
2428 * Response command is received from an external device. The application should
2429 * return true if the message was processed or false if it was not.
2431 * @param clusterId The cluster identifier of this response. Ver.: always
2432 * @param buffer Buffer containing the list of write attribute status records.
2434 * @param bufLen The length in bytes of the list. Ver.: always
2436 bool emberAfWriteAttributesResponseCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
2438 /** @brief External Attribute Write
2440 * This function is called whenever the Application Framework needs to write an
2441 * attribute which is not stored within the data structures of the Application
2442 * Framework itself. One of the new features in Version 2 is the ability to
2443 * store attributes outside the Framework. This is particularly useful for
2444 * attributes that do not need to be stored because they can be read off the
2445 * hardware when they are needed, or are stored in some central location used by
2446 * many modules within the system. In this case, you can indicate that the
2447 * attribute is stored externally. When the framework needs to write an external
2448 * attribute, it makes a call to this callback.
2449 This callback is very
2450 * useful for host micros which need to store attributes in persistent memory.
2451 * Because each host micro (used with an Ember NCP) has its own type of
2452 * persistent memory storage, the Application Framework does not include the
2453 * ability to mark attributes as stored in flash the way that it does for Ember
2454 * SoCs like the EM35x. On a host micro, any attributes that need to be stored
2455 * in persistent memory should be marked as external and accessed through the
2456 * external read and write callbacks. Any host code associated with the
2457 * persistent storage should be implemented within this callback.
2459 * the important information about the attribute itself is passed as a pointer
2460 * to an EmberAfAttributeMetadata struct, which is stored within the application
2461 * and used to manage the attribute. A complete description of the
2462 * EmberAfAttributeMetadata struct is provided in
2463 * app/framework/include/af-types.h.
2464 This function assumes that the
2465 * application is able to write the attribute and return immediately. Any
2466 * attributes that require a state machine for reading and writing are not
2467 * candidates for externalization at the present time. The Application Framework
2468 * does not currently include a state machine for reading or writing attributes
2469 * that must take place across a series of application ticks. Attributes that
2470 * cannot be written immediately should be stored within the Application
2471 * Framework and updated occasionally by the application code from within the
2472 * emberAfMainTickCallback.
2473 If the application was successfully able to
2474 * write the attribute, it returns a value of EMBER_ZCL_STATUS_SUCCESS. Any
2475 * other return value indicates the application was not able to write the
2478 * @param endpoint Ver.: always
2479 * @param clusterId Ver.: always
2480 * @param attributeMetadata Ver.: always
2481 * @param manufacturerCode Ver.: always
2482 * @param buffer Ver.: always
2484 EmberAfStatus emberAfExternalAttributeWriteCallback(chip::EndpointId endpoint, chip::ClusterId clusterId,
2485 EmberAfAttributeMetadata * attributeMetadata, uint16_t manufacturerCode,
2488 /** @brief Report Attributes
2490 * This function is called by the application framework when a Report Attributes
2491 * command is received from an external device. The application should return
2492 * true if the message was processed or false if it was not.
2494 * @param clusterId The cluster identifier of this command. Ver.: always
2495 * @param buffer Buffer containing the list of attribute report records. Ver.:
2497 * @param bufLen The length in bytes of the list. Ver.: always
2499 bool emberAfReportAttributesCallback(chip::ClusterId clusterId, uint8_t * buffer, uint16_t bufLen);
2501 /** @brief Get Current Time
2503 * This callback is called when device attempts to get current time from the
2504 * hardware. If this device has means to retrieve exact time, then this method
2505 * should implement it. If the callback can't provide the exact time it should
2506 * return 0 to indicate failure. Default action is to return 0, which indicates
2507 * that device does not have access to real time.
2510 uint32_t emberAfGetCurrentTimeCallback();
2512 /** @brief Get Endpoint Info
2514 * This function is a callback to an application implemented endpoint that
2515 * operates outside the normal application framework. When the framework wishes
2516 * to perform operations with that endpoint it uses this callback to retrieve
2517 * the endpoint's information. If the endpoint exists and the application can
2518 * provide data then true shall be returned. Otherwise the callback must return
2521 * @param endpoint The endpoint to retrieve data for. Ver.: always
2522 * @param returnNetworkIndex The index corresponding to the ZigBee network the
2523 * endpoint belongs to. If not using a multi-network device, 0 must be
2524 * returned. Otherwise on a multi-network device the stack will switch to this
2525 * network before sending the message. Ver.: always
2526 * @param returnEndpointInfo A pointer to a data struct that will be written
2527 * with information about the endpoint. Ver.: always
2529 bool emberAfGetEndpointInfoCallback(chip::EndpointId endpoint, uint8_t * returnNetworkIndex,
2530 EmberAfEndpointInfoStruct * returnEndpointInfo);
2532 /** @brief Get Source Route Overhead
2534 * This function is called by the framework to determine the overhead required
2535 * in the network frame for source routing to a particular destination.
2537 * @param destination The node id of the destination Ver.: always
2539 uint8_t emberAfGetSourceRouteOverheadCallback(chip::NodeId destination);
2541 /** @brief Registration Abort
2543 * This callback is called when the device should abort the registration
2547 void emberAfRegistrationAbortCallback();
2549 /** @brief Interpan Send Message
2551 * This function will send a raw MAC message with interpan frame format using
2552 * the passed parameters.
2554 * @param header Interpan header info Ver.: always
2555 * @param messageLength The length of the message received or to send Ver.:
2557 * @param message The message data received or to send. Ver.: always
2559 EmberStatus emberAfInterpanSendMessageCallback(EmberAfInterpanHeader * header, uint16_t messageLength, uint8_t * message);
2561 /** @brief Start Move
2563 * This function is called to initiate the process for a device to move (rejoin)
2567 bool emberAfStartMoveCallback();