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
21 #include "cluster-id.h"
23 #include <lib/support/Span.h>
27 // Cluster Init Functions
28 void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
32 case ZCL_APPLICATION_BASIC_CLUSTER_ID:
33 emberAfApplicationBasicClusterInitCallback(endpoint);
35 case ZCL_BARRIER_CONTROL_CLUSTER_ID:
36 emberAfBarrierControlClusterInitCallback(endpoint);
38 case ZCL_BASIC_CLUSTER_ID:
39 emberAfBasicClusterInitCallback(endpoint);
41 case ZCL_BINDING_CLUSTER_ID:
42 emberAfBindingClusterInitCallback(endpoint);
44 case ZCL_COLOR_CONTROL_CLUSTER_ID:
45 emberAfColorControlClusterInitCallback(endpoint);
47 case ZCL_DOOR_LOCK_CLUSTER_ID:
48 emberAfDoorLockClusterInitCallback(endpoint);
50 case ZCL_GENERAL_COMMISSIONING_CLUSTER_ID:
51 emberAfGeneralCommissioningClusterInitCallback(endpoint);
53 case ZCL_GROUP_KEY_MANAGEMENT_CLUSTER_ID:
54 emberAfGroupKeyManagementClusterInitCallback(endpoint);
56 case ZCL_GROUPS_CLUSTER_ID:
57 emberAfGroupsClusterInitCallback(endpoint);
59 case ZCL_IAS_ZONE_CLUSTER_ID:
60 emberAfIasZoneClusterInitCallback(endpoint);
62 case ZCL_IDENTIFY_CLUSTER_ID:
63 emberAfIdentifyClusterInitCallback(endpoint);
65 case ZCL_LEVEL_CONTROL_CLUSTER_ID:
66 emberAfLevelControlClusterInitCallback(endpoint);
68 case ZCL_LOW_POWER_CLUSTER_ID:
69 emberAfLowPowerClusterInitCallback(endpoint);
71 case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID:
72 emberAfNetworkCommissioningClusterInitCallback(endpoint);
74 case ZCL_ON_OFF_CLUSTER_ID:
75 emberAfOnOffClusterInitCallback(endpoint);
77 case ZCL_SCENES_CLUSTER_ID:
78 emberAfScenesClusterInitCallback(endpoint);
80 case ZCL_TEMP_MEASUREMENT_CLUSTER_ID:
81 emberAfTemperatureMeasurementClusterInitCallback(endpoint);
84 // Unrecognized cluster ID
89 void __attribute__((weak)) emberAfApplicationBasicClusterInitCallback(EndpointId endpoint)
94 void __attribute__((weak)) emberAfBarrierControlClusterInitCallback(EndpointId endpoint)
99 void __attribute__((weak)) emberAfBasicClusterInitCallback(EndpointId endpoint)
101 // To prevent warning
104 void __attribute__((weak)) emberAfBindingClusterInitCallback(EndpointId endpoint)
106 // To prevent warning
109 void __attribute__((weak)) emberAfColorControlClusterInitCallback(EndpointId endpoint)
111 // To prevent warning
114 void __attribute__((weak)) emberAfDoorLockClusterInitCallback(EndpointId endpoint)
116 // To prevent warning
119 void __attribute__((weak)) emberAfGeneralCommissioningClusterInitCallback(EndpointId endpoint)
121 // To prevent warning
124 void __attribute__((weak)) emberAfGroupKeyManagementClusterInitCallback(EndpointId endpoint)
126 // To prevent warning
129 void __attribute__((weak)) emberAfGroupsClusterInitCallback(EndpointId endpoint)
131 // To prevent warning
134 void __attribute__((weak)) emberAfIasZoneClusterInitCallback(EndpointId endpoint)
136 // To prevent warning
139 void __attribute__((weak)) emberAfIdentifyClusterInitCallback(EndpointId endpoint)
141 // To prevent warning
144 void __attribute__((weak)) emberAfLevelControlClusterInitCallback(EndpointId endpoint)
146 // To prevent warning
149 void __attribute__((weak)) emberAfLowPowerClusterInitCallback(EndpointId endpoint)
151 // To prevent warning
154 void __attribute__((weak)) emberAfNetworkCommissioningClusterInitCallback(EndpointId endpoint)
156 // To prevent warning
159 void __attribute__((weak)) emberAfOnOffClusterInitCallback(EndpointId endpoint)
161 // To prevent warning
164 void __attribute__((weak)) emberAfScenesClusterInitCallback(EndpointId endpoint)
166 // To prevent warning
169 void __attribute__((weak)) emberAfTemperatureMeasurementClusterInitCallback(EndpointId endpoint)
171 // To prevent warning
176 // Non-Cluster Related Callbacks
179 /** @brief Add To Current App Tasks
181 * This function is only useful to sleepy end devices. This function will note
182 * the passed item as part of a set of tasks the application has outstanding
183 * (e.g. message sent requiring APS acknwoledgement). This will affect how the
184 * application behaves with regard to sleeping and polling. Until the
185 * outstanding task is completed, the device may poll more frequently and sleep
188 * @param tasks Ver.: always
190 void __attribute__((weak)) emberAfAddToCurrentAppTasksCallback(EmberAfApplicationTask tasks) {}
192 /** @brief Remove From Current App Tasks
194 * This function is only useful to sleepy end devices. This function will
195 * remove the passed item from the set of tasks the application has outstanding
196 * (e.g. message sent requiring APS acknwoledgement). This will affect how the
197 * application behaves with regard to sleeping and polling. Removing the item
198 * from the list of outstanding tasks may allow the device to sleep longer and
199 * poll less frequently. If there are other outstanding tasks the system may
200 * still have to stay away and poll more often.
202 * @param tasks Ver.: always
204 void __attribute__((weak)) emberAfRemoveFromCurrentAppTasksCallback(EmberAfApplicationTask tasks) {}
206 /** @brief Allow Network Write Attribute
208 * This function is called by the application framework before it writes an
209 * attribute in response to a write attribute request from an external device.
210 * The value passed into this callback is the value to which the attribute is to
211 * be set by the framework.
212 Example: In mirroring simple metering data
213 * on an Energy Services Interface (ESI) (formerly called Energy Service Portal
214 * (ESP) in SE 1.0).), a mirrored simple meter needs to write read-only
215 * attributes on its mirror. The-meter-mirror sample application, located in
216 * app/framework/sample-apps, uses this callback to allow the mirrored device to
217 * write simple metering attributes on the mirror regardless of the fact that
218 * most simple metering attributes are defined as read-only by the ZigBee
220 Note: The ZCL specification does not (as of this
221 * writing) specify any permission-level security for writing writeable
222 * attributes. As far as the ZCL specification is concerned, if an attribute is
223 * writeable, any device that has a link key for the device should be able to
224 * write that attribute. Furthermore if an attribute is read only, it should not
225 * be written over the air. Thus, if you implement permissions for writing
226 * attributes as a feature, you MAY be operating outside the specification. This
227 * is unlikely to be a problem for writing read-only attributes, but it may be a
228 * problem for attributes that are writeable according to the specification but
229 * restricted by the application implementing this callback.
231 * @param endpoint Ver.: always
232 * @param clusterId Ver.: always
233 * @param attributeId Ver.: always
234 * @param mask Ver.: always
235 * @param manufacturerCode Ver.: always
236 * @param value Ver.: always
237 * @param type Ver.: always
239 EmberAfAttributeWritePermission __attribute__((weak))
240 emberAfAllowNetworkWriteAttributeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, uint8_t mask,
241 uint16_t manufacturerCode, uint8_t * value, uint8_t type)
243 return EMBER_ZCL_ATTRIBUTE_WRITE_PERMISSION_ALLOW_WRITE_NORMAL; // Default
246 /** @brief Attribute Read Access
248 * This function is called whenever the Application Framework needs to check
249 * access permission for an attribute read.
251 * @param endpoint Ver.: always
252 * @param clusterId Ver.: always
253 * @param manufacturerCode Ver.: always
254 * @param attributeId Ver.: always
256 bool __attribute__((weak))
257 emberAfAttributeReadAccessCallback(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode, AttributeId attributeId)
262 /** @brief Attribute Write Access
264 * This function is called whenever the Application Framework needs to check
265 * access permission for an attribute write.
267 * @param endpoint Ver.: always
268 * @param clusterId Ver.: always
269 * @param manufacturerCode Ver.: always
270 * @param attributeId Ver.: always
272 bool __attribute__((weak))
273 emberAfAttributeWriteAccessCallback(EndpointId endpoint, ClusterId clusterId, uint16_t manufacturerCode, AttributeId attributeId)
278 /** @brief Default Response
280 * This function is called by the application framework when a Default Response
281 * command is received from an external device. The application should return
282 * true if the message was processed or false if it was not.
284 * @param clusterId The cluster identifier of this response. Ver.: always
285 * @param commandId The command identifier to which this is a response. Ver.:
287 * @param status Specifies either SUCCESS or the nature of the error that was
288 * detected in the received command. Ver.: always
290 bool __attribute__((weak)) emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, EmberAfStatus status)
295 /** @brief Configure Reporting Response
297 * This function is called by the application framework when a Configure
298 * Reporting Response command is received from an external device. The
299 * application should return true if the message was processed or false if it
302 * @param clusterId The cluster identifier of this response. Ver.: always
303 * @param buffer Buffer containing the list of attribute status records. Ver.:
305 * @param bufLen The length in bytes of the list. Ver.: always
307 bool __attribute__((weak)) emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * buffer, uint16_t bufLen)
312 /** @brief Read Reporting Configuration Response
314 * This function is called by the application framework when a Read Reporting
315 * Configuration Response command is received from an external device. The
316 * application should return true if the message was processed or false if it
319 * @param clusterId The cluster identifier of this response. Ver.: always
320 * @param buffer Buffer containing the list of attribute reporting configuration
321 * records. Ver.: always
322 * @param bufLen The length in bytes of the list. Ver.: always
324 bool __attribute__((weak)) emberAfReadReportingConfigurationResponseCallback(ClusterId clusterId, uint8_t * buffer, uint16_t bufLen)
329 /** @brief Discover Attributes Response
331 * This function is called by the application framework when a Discover
332 * Attributes Response or Discover Attributes Extended Response command is
333 * received from an external device. The Discover Attributes Response command
334 * contains a bool indicating if discovery is complete and a list of zero or
335 * more attribute identifier/type records. The final argument indicates whether
336 * the response is in the extended format or not. The application should return
337 * true if the message was processed or false if it was not.
339 * @param clusterId The cluster identifier of this response. Ver.: always
340 * @param discoveryComplete Indicates whether there are more attributes to be
341 * discovered. true if there are no more attributes to be discovered. Ver.:
343 * @param buffer Buffer containing the list of attribute identifier/type
344 * records. Ver.: always
345 * @param bufLen The length in bytes of the list. Ver.: always
346 * @param extended Indicates whether the response is in the extended format or
349 bool __attribute__((weak)) emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discoveryComplete, uint8_t * buffer,
350 uint16_t bufLen, bool extended)
355 /** @brief Discover Commands Generated Response
357 * This function is called by the framework when Discover Commands Generated
358 * Response is received.
360 * @param clusterId The cluster identifier of this response. Ver.: always
361 * @param manufacturerCode Manufacturer code Ver.: always
362 * @param discoveryComplete Indicates whether there are more commands to be
363 * discovered. Ver.: always
364 * @param commandIds Buffer containing the list of command identifiers. Ver.:
366 * @param commandIdCount The length of bytes of the list, whish is the same as
367 * the number of identifiers. Ver.: always
369 bool __attribute__((weak))
370 emberAfDiscoverCommandsGeneratedResponseCallback(ClusterId clusterId, uint16_t manufacturerCode, bool discoveryComplete,
371 CommandId * commandIds, uint16_t commandIdCount)
376 /** @brief Discover Commands Received Response
378 * This function is called by the framework when Discover Commands Received
379 * Response is received.
381 * @param clusterId The cluster identifier of this response. Ver.: always
382 * @param manufacturerCode Manufacturer code Ver.: always
383 * @param discoveryComplete Indicates whether there are more commands to be
384 * discovered. Ver.: always
385 * @param commandIds Buffer containing the list of command identifiers. Ver.:
387 * @param commandIdCount The length of bytes of the list, whish is the same as
388 * the number of identifiers. Ver.: always
390 bool __attribute__((weak))
391 emberAfDiscoverCommandsReceivedResponseCallback(ClusterId clusterId, uint16_t manufacturerCode, bool discoveryComplete,
392 CommandId * commandIds, uint16_t commandIdCount)
397 /** @brief Pre Command Received
399 * This callback is the second in the Application Framework's message processing
400 * chain. At this point in the processing of incoming over-the-air messages, the
401 * application has determined that the incoming message is a ZCL command. It
402 * parses enough of the message to populate an EmberAfClusterCommand struct. The
403 * Application Framework defines this struct value in a local scope to the
404 * command processing but also makes it available through a global pointer
405 * called emberAfCurrentCommand, in app/framework/util/util.c. When command
406 * processing is complete, this pointer is cleared.
408 * @param cmd Ver.: always
410 bool __attribute__((weak)) emberAfPreCommandReceivedCallback(EmberAfClusterCommand * cmd)
415 /** @brief Pre Message Send
417 * This function is called by the framework when it is about to pass a message
418 * to the stack primitives for sending. This message may or may not be ZCL,
419 * ZDO, or some other protocol. This is called prior to
421 * fragmentation that may be done. If the function returns true it is assumed
422 * the callback has consumed and processed the message. The callback must also
423 * set the EmberStatus status code to be passed back to the caller. The
424 * framework will do no further processing on the message.
426 * function returns false then it is assumed that the callback has not processed
427 * the mesasge and the framework will continue to process accordingly.
429 * @param messageStruct The structure containing the parameters of the APS
430 * message to be sent. Ver.: always
431 * @param status A pointer to the status code value that will be returned to the
432 * caller. Ver.: always
434 bool __attribute__((weak)) emberAfPreMessageSendCallback(EmberAfMessageStruct * messageStruct, EmberStatus * status)
439 /** @brief Message Sent
441 * This function is called by the application framework from the message sent
442 * handler, when it is informed by the stack regarding the message sent status.
443 * All of the values passed to the emberMessageSentHandler are passed on to this
444 * callback. This provides an opportunity for the application to verify that its
445 * message has been sent successfully and take the appropriate action. This
446 * callback should return a bool value of true or false. A value of true
447 * indicates that the message sent notification has been handled and should not
448 * be handled by the application framework.
450 * @param type Ver.: always
451 * @param indexOrDestination Ver.: always
452 * @param apsFrame Ver.: always
453 * @param msgLen Ver.: always
454 * @param message Ver.: always
455 * @param status Ver.: always
457 bool __attribute__((weak))
458 emberAfMessageSentCallback(EmberOutgoingMessageType type, uint64_t indexOrDestination, EmberApsFrame * apsFrame, uint16_t msgLen,
459 uint8_t * message, EmberStatus status)
464 /** @brief Pre Attribute Change
466 * This function is called by the application framework before it changes an
467 * attribute value. The value passed into this callback is the value to which
468 * the attribute is to be set by the framework. The application should return
469 * ::EMBER_ZCL_STATUS_SUCCESS to permit the change or any other ::EmberAfStatus
472 * @param endpoint Ver.: always
473 * @param clusterId Ver.: always
474 * @param attributeId Ver.: always
475 * @param mask Ver.: always
476 * @param manufacturerCode Ver.: always
477 * @param type Ver.: always
478 * @param size Ver.: always
479 * @param value Ver.: always
481 EmberAfStatus __attribute__((weak))
482 emberAfPreAttributeChangeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, uint8_t mask,
483 uint16_t manufacturerCode, uint8_t type, uint8_t size, uint8_t * value)
485 return EMBER_ZCL_STATUS_SUCCESS;
488 /** @brief Post Attribute Change
490 * This function is called by the application framework after it changes an
491 * attribute value. The value passed into this callback is the value to which
492 * the attribute was set by the framework.
494 * @param endpoint Ver.: always
495 * @param clusterId Ver.: always
496 * @param attributeId Ver.: always
497 * @param mask Ver.: always
498 * @param manufacturerCode Ver.: always
499 * @param type Ver.: always
500 * @param size Ver.: always
501 * @param value Ver.: always
503 void __attribute__((weak))
504 emberAfPostAttributeChangeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, uint8_t mask,
505 uint16_t manufacturerCode, uint8_t type, uint8_t size, uint8_t * value)
508 /** @brief Read Attributes Response
510 * This function is called by the application framework when a Read Attributes
511 * Response command is received from an external device. The application should
512 * return true if the message was processed or false if it was not.
514 * @param clusterId The cluster identifier of this response. Ver.: always
515 * @param buffer Buffer containing the list of read attribute status records.
517 * @param bufLen The length in bytes of the list. Ver.: always
519 bool __attribute__((weak)) emberAfReadAttributesResponseCallback(ClusterId clusterId, uint8_t * buffer, uint16_t bufLen)
524 /** @brief External Attribute Read
526 * Like emberAfExternalAttributeWriteCallback above, this function is called
527 * when the framework needs to read an attribute that is not stored within the
528 * Application Framework's data structures.
530 * information about the attribute itself is passed as a pointer to an
531 * EmberAfAttributeMetadata struct, which is stored within the application and
532 * used to manage the attribute. A complete description of the
533 * EmberAfAttributeMetadata struct is provided in
534 * app/framework/include/af-types.h
535 This function assumes that the
536 * application is able to read the attribute, write it into the passed buffer,
537 * and return immediately. Any attributes that require a state machine for
538 * reading and writing are not really candidates for externalization at the
539 * present time. The Application Framework does not currently include a state
540 * machine for reading or writing attributes that must take place across a
541 * series of application ticks. Attributes that cannot be read in a timely
542 * manner should be stored within the Application Framework and updated
543 * occasionally by the application code from within the
544 * emberAfMainTickCallback.
545 If the application was successfully able to
546 * read the attribute and write it into the passed buffer, it should return a
547 * value of EMBER_ZCL_STATUS_SUCCESS. Ensure that the size of the externally
548 * managed attribute value is smaller than what the buffer can hold. In the case
549 * of a buffer overflow throw an appropriate error such as
550 * EMBER_ZCL_STATUS_INSUFFICIENT_SPACE. Any other return value indicates the
551 * application was not able to read the attribute.
553 * @param endpoint Ver.: always
554 * @param clusterId Ver.: always
555 * @param attributeMetadata Ver.: always
556 * @param manufacturerCode Ver.: always
557 * @param buffer Ver.: always
558 * @param maxReadLength Ver.: always
560 EmberAfStatus __attribute__((weak))
561 emberAfExternalAttributeReadCallback(EndpointId endpoint, ClusterId clusterId, EmberAfAttributeMetadata * attributeMetadata,
562 uint16_t manufacturerCode, uint8_t * buffer, uint16_t maxReadLength)
564 return EMBER_ZCL_STATUS_FAILURE;
567 /** @brief Write Attributes Response
569 * This function is called by the application framework when a Write Attributes
570 * Response command is received from an external device. The application should
571 * return true if the message was processed or false if it was not.
573 * @param clusterId The cluster identifier of this response. Ver.: always
574 * @param buffer Buffer containing the list of write attribute status records.
576 * @param bufLen The length in bytes of the list. Ver.: always
578 bool __attribute__((weak)) emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * buffer, uint16_t bufLen)
583 /** @brief External Attribute Write
585 * This function is called whenever the Application Framework needs to write an
586 * attribute which is not stored within the data structures of the Application
587 * Framework itself. One of the new features in Version 2 is the ability to
588 * store attributes outside the Framework. This is particularly useful for
589 * attributes that do not need to be stored because they can be read off the
590 * hardware when they are needed, or are stored in some central location used by
591 * many modules within the system. In this case, you can indicate that the
592 * attribute is stored externally. When the framework needs to write an external
593 * attribute, it makes a call to this callback.
594 This callback is very
595 * useful for host micros which need to store attributes in persistent memory.
596 * Because each host micro (used with an Ember NCP) has its own type of
597 * persistent memory storage, the Application Framework does not include the
598 * ability to mark attributes as stored in flash the way that it does for Ember
599 * SoCs like the EM35x. On a host micro, any attributes that need to be stored
600 * in persistent memory should be marked as external and accessed through the
601 * external read and write callbacks. Any host code associated with the
602 * persistent storage should be implemented within this callback.
604 * the important information about the attribute itself is passed as a pointer
605 * to an EmberAfAttributeMetadata struct, which is stored within the application
606 * and used to manage the attribute. A complete description of the
607 * EmberAfAttributeMetadata struct is provided in
608 * app/framework/include/af-types.h.
609 This function assumes that the
610 * application is able to write the attribute and return immediately. Any
611 * attributes that require a state machine for reading and writing are not
612 * candidates for externalization at the present time. The Application Framework
613 * does not currently include a state machine for reading or writing attributes
614 * that must take place across a series of application ticks. Attributes that
615 * cannot be written immediately should be stored within the Application
616 * Framework and updated occasionally by the application code from within the
617 * emberAfMainTickCallback.
618 If the application was successfully able to
619 * write the attribute, it returns a value of EMBER_ZCL_STATUS_SUCCESS. Any
620 * other return value indicates the application was not able to write the
623 * @param endpoint Ver.: always
624 * @param clusterId Ver.: always
625 * @param attributeMetadata Ver.: always
626 * @param manufacturerCode Ver.: always
627 * @param buffer Ver.: always
629 EmberAfStatus __attribute__((weak))
630 emberAfExternalAttributeWriteCallback(EndpointId endpoint, ClusterId clusterId, EmberAfAttributeMetadata * attributeMetadata,
631 uint16_t manufacturerCode, uint8_t * buffer)
633 return EMBER_ZCL_STATUS_FAILURE;
636 /** @brief Report Attributes
638 * This function is called by the application framework when a Report Attributes
639 * command is received from an external device. The application should return
640 * true if the message was processed or false if it was not.
642 * @param clusterId The cluster identifier of this command. Ver.: always
643 * @param buffer Buffer containing the list of attribute report records. Ver.:
645 * @param bufLen The length in bytes of the list. Ver.: always
647 bool __attribute__((weak)) emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * buffer, uint16_t bufLen)
652 /** @brief Get Current Time
654 * This callback is called when device attempts to get current time from the
655 * hardware. If this device has means to retrieve exact time, then this method
656 * should implement it. If the callback can't provide the exact time it should
657 * return 0 to indicate failure. Default action is to return 0, which indicates
658 * that device does not have access to real time.
661 uint32_t __attribute__((weak)) emberAfGetCurrentTimeCallback()
666 /** @brief Get Endpoint Info
668 * This function is a callback to an application implemented endpoint that
669 * operates outside the normal application framework. When the framework wishes
670 * to perform operations with that endpoint it uses this callback to retrieve
671 * the endpoint's information. If the endpoint exists and the application can
672 * provide data then true shall be returned. Otherwise the callback must return
675 * @param endpoint The endpoint to retrieve data for. Ver.: always
676 * @param returnNetworkIndex The index corresponding to the ZigBee network the
677 * endpoint belongs to. If not using a multi-network device, 0 must be
678 * returned. Otherwise on a multi-network device the stack will switch to this
679 * network before sending the message. Ver.: always
680 * @param returnEndpointInfo A pointer to a data struct that will be written
681 * with information about the endpoint. Ver.: always
683 bool __attribute__((weak))
684 emberAfGetEndpointInfoCallback(EndpointId endpoint, uint8_t * returnNetworkIndex, EmberAfEndpointInfoStruct * returnEndpointInfo)
689 /** @brief Get Source Route Overhead
691 * This function is called by the framework to determine the overhead required
692 * in the network frame for source routing to a particular destination.
694 * @param destination The node id of the destination Ver.: always
696 uint8_t __attribute__((weak)) emberAfGetSourceRouteOverheadCallback(chip::NodeId destination)
701 /** @brief Registration Abort
703 * This callback is called when the device should abort the registration
707 void __attribute__((weak)) emberAfRegistrationAbortCallback() {}
709 /** @brief Interpan Send Message
711 * This function will send a raw MAC message with interpan frame format using
712 * the passed parameters.
714 * @param header Interpan header info Ver.: always
715 * @param messageLength The length of the message received or to send Ver.:
717 * @param message The message data received or to send. Ver.: always
719 EmberStatus __attribute__((weak))
720 emberAfInterpanSendMessageCallback(EmberAfInterpanHeader * header, uint16_t messageLength, uint8_t * message)
722 return EMBER_LIBRARY_NOT_PRESENT;
725 /** @brief Start Move
727 * This function is called to initiate the process for a device to move (rejoin)
731 bool __attribute__((weak)) emberAfStartMoveCallback()