Stack Callbacks#
Functions#
A callback invoked when receiving a message.
A callback that allows marking application buffers.
incomingMfgTestMessageHandler
Allow the application to decide if it wants to append a source route to packet header itself.
A callback invoked when the status of the stack changes. If the status parameter equals EMBER_NETWORK_UP, then the getNetworkParameters command can be called to obtain the new network parameters. If any of the parameters are being stored in nonvolatile memory by the Host, the stored values should be updated.
A callback that allows the app to redirect the packet.
Reports the result of an energy scan for a single channel. The scan is not complete until the scanCompleteHandler callback is called.
Reports that a network was found as a result of a prior call to startScan. Gives the network parameters useful for deciding which network to join.
Returns the status of the current scan of type EMBER_ENERGY_SCAN or EMBER_ACTIVE_SCAN. EMBER_SUCCESS signals that the scan has completed. Other error conditions signify a failure to scan on the channel specified.
This function returns an unused panID and channel pair found via the find unused panId scan procedure.
Indicates that a child has joined or left.
Callback fires when the duty cycle state has changed.
The NCP used the external binding modification policy to decide how to handle a remote set binding request. The Host cannot change the current decision, but it can change the policy for future decisions using the setPolicy command.
The NCP used the external binding modification policy to decide how to handle a remote delete binding request. The Host cannot change the current decision, but it can change the policy for future decisions using the setPolicy command.
Indicates the result of a data poll to the parent of the local node.
Indicates that the local node received a data poll from a child.
debugHandler
A callback indicating that a many-to-one route to the concentrator with the given short and long ID is available for use.
A callback invoked when a route error message is received. The error indicates that a problem routing to or from the target node was encountered.
A callback invoked when a network status/route error message is received. The error indicates that there was a problem sending/receiving messages from the target node.
Reports the arrival of a route record command frame.
A callback invoked by the EmberZNet stack when an id conflict is discovered, that is, two different nodes in the network were found to be using the same short id. The stack automatically removes the conflicting short id from its internal tables (address, binding, route, neighbor, and child tables). The application should discontinue any other use of the id.
A callback invoked by the EmberZNet stack when a MAC passthrough message is received.
A callback invoked to inform the application that a stack token has changed.
A callback from the timer.
This call is fired when a counter exceeds its threshold.
A callback invoked by the EmberZNet stack when the MAC has finished transmitting a raw message.
A callback to inform the application that the Network Key has been updated and the node has been switched over to use the new key. The actual key being used is not passed up, but the sequence number is.
This is a callback that indicates the success or failure of an attempt to establish a key with a partner device.
A callback by the Crypto Engine indicating that a new ephemeral public/private key pair has been generated. The public/private key pair is stored on the NCP, but only the associated public key is returned to the host. The node's associated certificate is also returned.
A callback to indicate that the NCP has finished calculating the Secure Message Authentication Codes (SMAC) for both the initiator and responder. The associated link key is kept in temporary storage until the host tells the NCP to store or discard the key via emberClearTemporaryDataMaybeStoreLinkKey().
The handler that returns the results of the signing operation. On success, the signature will be appended to the original message (including the signature type indicator that replaced the startIndex field for the signing) and both are returned via this callback.
This callback is executed by the stack when the DSA verification has completed and has a result. If the result is EMBER_SUCCESS, the signature is valid. If the result is EMBER_SIGNATURE_VERIFY_FAILURE then the signature is invalid. If the result is anything else then the signature verify operation failed and the validity is unknown.
A callback invoked by the EmberZNet stack when a bootload message is received.
A callback invoked by the EmberZNet stack when the MAC has finished transmitting a bootload message.
This callback is invoked when a ZLL network scan finds a ZLL network.
This callback is invoked when a ZLL network scan is complete.
This callback is invoked when network and group addresses are assigned to a remote mode in a network start or network join request.
This callback is invoked when the device is a target of a touch link.
A callback invoked by the EmberZNet stack when a raw MAC message that has matched one of the application's configured MAC filters.
A callback to the GP endpoint to indicate the result of the GPDF transmission.
This handler is called by the stack to report the number of conflict reports exceeds EMBER_PAN_ID_CONFLICT_REPORT_THRESHOLD within a period of 1 minute )
Inform the application that an orphan notification has been received. This is generally not useful for applications. It could be useful in testing and is included for this purpose.
This handler is called when the value of a counter has changed.
This handler is called for messages that need to be matched against mac passthrough filter.
A callback by the Crypto Engine indicating that a new ephemeral public/private key pair has been generated. The public/private key pair is stored on the NCP, but only the associated public key is returned to the host. The node's associated certificate is also returned.
A callback to indicate that the NCP has finished calculating the Secure Message Authentication Codes (SMAC) for both the initiator and responder. The associated link key is kept in temporary storage until the host tells the NCP to store or discard the key via emberClearTemporaryDataMaybeStoreLinkKey().
A callback invoked by the ZigBee GP stack when a GPDF is received.
Rtos Stack Wakeup Isr Handler.
RadioNeedsCalibratingHandler.
scanErrorHandler
A callback invoked when receiving a message. Used when AF Support component is enabled on NCP. User can use apsFrame to filter for which ZCL messages they want to process on NCP. If this function returns true then the message is being processed on NCP, otherwise it will be forwarded to the Host.
Function Documentation#
emberAfIncomingMessageCallback#
void emberAfIncomingMessageCallback (EmberIncomingMessageType type, EmberApsFrame * apsFrame, EmberMessageBuffer message)
A callback invoked when receiving a message.
N/A | type | Incoming message type |
N/A | apsFrame | The aps Frame |
N/A | message | message |
33
of file app/framework/common/zigbee_app_framework_callback.h
emberAfMarkBuffersCallback#
void emberAfMarkBuffersCallback (void )
A callback that allows marking application buffers.
N/A |
44
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingMfgTestMessageCallback#
void emberAfIncomingMfgTestMessageCallback (uint8_t messageType, uint8_t dataLength, uint8_t * data)
incomingMfgTestMessageHandler
N/A | messageType | |
N/A | dataLength | |
N/A | data |
49
of file app/framework/common/zigbee_app_framework_callback.h
emberAfOverrideAppendSourceRouteCallback#
uint8_t emberAfOverrideAppendSourceRouteCallback (EmberNodeId destination, EmberMessageBuffer * header, bool * consumed)
Allow the application to decide if it wants to append a source route to packet header itself.
N/A | destination | |
N/A | header | |
N/A | consumed |
Returns
Added bytes
61
of file app/framework/common/zigbee_app_framework_callback.h
emberAfStackStatusCallback#
void emberAfStackStatusCallback (EmberStatus status)
A callback invoked when the status of the stack changes. If the status parameter equals EMBER_NETWORK_UP, then the getNetworkParameters command can be called to obtain the new network parameters. If any of the parameters are being stored in nonvolatile memory by the Host, the stored values should be updated.
N/A | status | Stack status |
76
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRedirectOutgoingMessageCallback#
void emberAfRedirectOutgoingMessageCallback (uint8_t mac_index, EmberMessageBuffer header, uint8_t priority)
A callback that allows the app to redirect the packet.
N/A | mac_index | The mac index used to redirect messages |
N/A | header | Packet buffer header |
N/A | priority | Transmit priority |
86
of file app/framework/common/zigbee_app_framework_callback.h
emberAfEnergyScanResultCallback#
void emberAfEnergyScanResultCallback (uint8_t channel, int8_t maxRssiValue)
Reports the result of an energy scan for a single channel. The scan is not complete until the scanCompleteHandler callback is called.
N/A | channel | The 802.15.4 channel number that was scanned. |
N/A | maxRssiValue | The maximum RSSI value found on the channel. |
100
of file app/framework/common/zigbee_app_framework_callback.h
emberAfNetworkFoundCallback#
void emberAfNetworkFoundCallback (EmberZigbeeNetwork * networkFound, uint8_t lqi, int8_t rssi)
Reports that a network was found as a result of a prior call to startScan. Gives the network parameters useful for deciding which network to join.
N/A | networkFound | The parameters associated with the network found. |
N/A | lqi | The link quality indication of the network found. |
N/A | rssi | The received signal strength indication of the network found. |
113
of file app/framework/common/zigbee_app_framework_callback.h
emberAfScanCompleteCallback#
void emberAfScanCompleteCallback (uint8_t channel, EmberStatus status)
Returns the status of the current scan of type EMBER_ENERGY_SCAN or EMBER_ACTIVE_SCAN. EMBER_SUCCESS signals that the scan has completed. Other error conditions signify a failure to scan on the channel specified.
N/A | channel | The channel on which the current error occurred. Undefined for the case of EMBER_SUCCESS. |
N/A | status | The error condition that occurred on the current channel. Value will be EMBER_SUCCESS when the scan has completed. |
130
of file app/framework/common/zigbee_app_framework_callback.h
emberAfUnusedPanIdFoundCallback#
void emberAfUnusedPanIdFoundCallback (EmberPanId panId, uint8_t channel)
This function returns an unused panID and channel pair found via the find unused panId scan procedure.
N/A | panId | The unused panID which has been found. |
N/A | channel | The channel that the unused panID was found on. |
144
of file app/framework/common/zigbee_app_framework_callback.h
emberAfChildJoinCallback#
void emberAfChildJoinCallback (uint8_t index, bool joining)
Indicates that a child has joined or left.
N/A | index | The index of the child of interest. |
N/A | joining | True if the child is joining. False the child is leaving. |
155
of file app/framework/common/zigbee_app_framework_callback.h
emberAfDutyCycleCallback#
void emberAfDutyCycleCallback (uint8_t channelPage, uint8_t channel, EmberDutyCycleState state)
Callback fires when the duty cycle state has changed.
N/A | channelPage | The channel page whose duty cycle state has changed. |
N/A | channel | The channel number whose duty cycle state has changed. |
N/A | state | The current duty cycle state. |
167
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRemoteSetBindingCallback#
void emberAfRemoteSetBindingCallback (EmberBindingTableEntry * entry, EmberZdoStatus status)
The NCP used the external binding modification policy to decide how to handle a remote set binding request. The Host cannot change the current decision, but it can change the policy for future decisions using the setPolicy command.
N/A | entry | The contents of the binding entry. |
N/A | status | ZDO status. |
182
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRemoteDeleteBindingCallback#
void emberAfRemoteDeleteBindingCallback (uint8_t index, EmberZdoStatus status)
The NCP used the external binding modification policy to decide how to handle a remote delete binding request. The Host cannot change the current decision, but it can change the policy for future decisions using the setPolicy command.
N/A | index | The index of the binding whose deletion was requested. |
N/A | status | ZDO status |
195
of file app/framework/common/zigbee_app_framework_callback.h
emberAfPollCompleteCallback#
void emberAfPollCompleteCallback (EmberStatus status)
Indicates the result of a data poll to the parent of the local node.
N/A | status | An EmberStatus value: EMBER_SUCCESS - Data was received in response to the poll. EMBER_MAC_NO_DATA - No data was pending. EMBER_DELIVERY_FAILED - The poll message could not be sent. EMBER_MAC_NO_ACK_RECEIVED - The poll message was sent but not acknowledged by the parent. |
209
of file app/framework/common/zigbee_app_framework_callback.h
emberAfPollCallback#
void emberAfPollCallback (EmberNodeId childId, bool transmitExpected)
Indicates that the local node received a data poll from a child.
N/A | childId | The node ID of the child that is requesting data. |
N/A | transmitExpected | True if transmit expected, false otherwise. |
222
of file app/framework/common/zigbee_app_framework_callback.h
emberAfDebugCallback#
void emberAfDebugCallback (uint8_t messageLength, uint8_t * messageContents)
debugHandler
N/A | messageLength | debug message length |
N/A | messageContents | debug message |
233
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingManyToOneRouteRequestCallback#
void emberAfIncomingManyToOneRouteRequestCallback (EmberNodeId source, EmberEUI64 longId, uint8_t cost)
A callback indicating that a many-to-one route to the concentrator with the given short and long ID is available for use.
N/A | source | The short id of the concentrator. |
N/A | longId | The EUI64 of the concentrator. |
N/A | cost | The path cost to the concentrator. The cost may decrease as additional route request packets for this discovery arrive, but the callback is made only once. |
248
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingRouteErrorCallback#
void emberAfIncomingRouteErrorCallback (EmberStatus status, EmberNodeId target)
A callback invoked when a route error message is received. The error indicates that a problem routing to or from the target node was encountered.
N/A | status | EMBER_SOURCE_ROUTE_FAILURE or EMBER_MANY_TO_ONE_ROUTE_FAILURE. |
N/A | target | The short id of the remote node. |
264
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingNetworkStatusCallback#
void emberAfIncomingNetworkStatusCallback (uint8_t errorCode, EmberNodeId target)
A callback invoked when a network status/route error message is received. The error indicates that there was a problem sending/receiving messages from the target node.
N/A | errorCode | One byte over-the-air error code from network status message |
N/A | target | The short ID of the remote node |
277
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingRouteRecordCallback#
void emberAfIncomingRouteRecordCallback (EmberNodeId source, EmberEUI64 sourceEui, uint8_t relayCount, EmberMessageBuffer header, uint8_t relayListIndex)
Reports the arrival of a route record command frame.
N/A | source | The source of the route record. |
N/A | sourceEui | The EUI64 of the source. |
N/A | relayCount | The number of relays in relayList. |
N/A | header | Header. |
N/A | relayListIndex | The relay List Index. |
291
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIdConflictCallback#
void emberAfIdConflictCallback (EmberNodeId conflictingId)
A callback invoked by the EmberZNet stack when an id conflict is discovered, that is, two different nodes in the network were found to be using the same short id. The stack automatically removes the conflicting short id from its internal tables (address, binding, route, neighbor, and child tables). The application should discontinue any other use of the id.
N/A | conflictingId | The short id for which a conflict was detected |
311
of file app/framework/common/zigbee_app_framework_callback.h
emberAfMacPassthroughMessageCallback#
void emberAfMacPassthroughMessageCallback (EmberMacPassthroughType messageType, uint8_t lastHopLqi, int8_t lastHopRssi, uint8_t messageLength, uint8_t * messageContents)
A callback invoked by the EmberZNet stack when a MAC passthrough message is received.
N/A | messageType | The type of MAC passthrough message received. |
N/A | lastHopLqi | last hop LQI. |
N/A | lastHopRssi | last hop RSSI. |
N/A | messageLength | message length. |
N/A | messageContents | The raw message that was received. |
324
of file app/framework/common/zigbee_app_framework_callback.h
emberAfStackTokenChangedCallback#
void emberAfStackTokenChangedCallback (uint16_t tokenAddress)
A callback invoked to inform the application that a stack token has changed.
N/A | tokenAddress | The address of the stack token that has changed. |
340
of file app/framework/common/zigbee_app_framework_callback.h
emberAfTimerCallback#
void emberAfTimerCallback (uint8_t timerId)
A callback from the timer.
N/A | timerId | Which timer generated the callback (0 or 1). |
348
of file app/framework/common/zigbee_app_framework_callback.h
emberAfCounterRolloverCallback#
void emberAfCounterRolloverCallback (EmberCounterType type)
This call is fired when a counter exceeds its threshold.
N/A | type | Type of Counter |
356
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRawTransmitCompleteCallback#
void emberAfRawTransmitCompleteCallback (EmberMessageBuffer message, EmberStatus status)
A callback invoked by the EmberZNet stack when the MAC has finished transmitting a raw message.
N/A | message | message, message always returns EMBER_NULL_MESSAGE_BUFFER on host |
N/A | status | EMBER_SUCCESS if the transmission was successful, or EMBER_DELIVERY_FAILED if not |
368
of file app/framework/common/zigbee_app_framework_callback.h
emberAfSwitchNetworkKeyCallback#
void emberAfSwitchNetworkKeyCallback (uint8_t sequenceNumber)
A callback to inform the application that the Network Key has been updated and the node has been switched over to use the new key. The actual key being used is not passed up, but the sequence number is.
N/A | sequenceNumber | The sequence number of the new network key. |
381
of file app/framework/common/zigbee_app_framework_callback.h
emberAfZigbeeKeyEstablishmentCallback#
void emberAfZigbeeKeyEstablishmentCallback (EmberEUI64 partner, EmberKeyStatus status)
This is a callback that indicates the success or failure of an attempt to establish a key with a partner device.
N/A | partner | This is the IEEE address of the partner that the device successfully established a key with. This value is all zeros on a failure. |
N/A | status | This is the status indicating what was established or why the key establishment failed. |
393
of file app/framework/common/zigbee_app_framework_callback.h
emberAfGenerateCbkeKeysCallback#
void emberAfGenerateCbkeKeysCallback (EmberStatus status, EmberPublicKeyData * ephemeralPublicKey)
A callback by the Crypto Engine indicating that a new ephemeral public/private key pair has been generated. The public/private key pair is stored on the NCP, but only the associated public key is returned to the host. The node's associated certificate is also returned.
N/A | status | The result of the CBKE operation. |
N/A | ephemeralPublicKey |
Returns
ephemeralPublicKey The generated ephemeral public key.
409
of file app/framework/common/zigbee_app_framework_callback.h
emberAfCalculateSmacsCallback#
void emberAfCalculateSmacsCallback (EmberStatus status, EmberSmacData * initiatorSmac, EmberSmacData * responderSmac)
A callback to indicate that the NCP has finished calculating the Secure Message Authentication Codes (SMAC) for both the initiator and responder. The associated link key is kept in temporary storage until the host tells the NCP to store or discard the key via emberClearTemporaryDataMaybeStoreLinkKey().
N/A | status | The Result of the CBKE operation. |
N/A | initiatorSmac | |
N/A | responderSmac |
Returns
initiatorSmac The calculated value of the initiator's SMAC
responderSmac The calculated value of the responder's SMAC
424
of file app/framework/common/zigbee_app_framework_callback.h
emberAfDsaSignCallback#
void emberAfDsaSignCallback (EmberStatus status, uint8_t messageLength, uint8_t * messageContents)
The handler that returns the results of the signing operation. On success, the signature will be appended to the original message (including the signature type indicator that replaced the startIndex field for the signing) and both are returned via this callback.
N/A | status | The result of the DSA signing operation. |
N/A | messageLength | The length of message. |
N/A | messageContents | The message and attached which includes the original message and the appended signature. |
442
of file app/framework/common/zigbee_app_framework_callback.h
emberAfDsaVerifyCallback#
void emberAfDsaVerifyCallback (EmberStatus status)
This callback is executed by the stack when the DSA verification has completed and has a result. If the result is EMBER_SUCCESS, the signature is valid. If the result is EMBER_SIGNATURE_VERIFY_FAILURE then the signature is invalid. If the result is anything else then the signature verify operation failed and the validity is unknown.
N/A | status | The result of the DSA verification operation. |
459
of file app/framework/common/zigbee_app_framework_callback.h
emberAfIncomingBootloadMessageCallback#
void emberAfIncomingBootloadMessageCallback (EmberEUI64 longId, uint8_t lastHopLqi, int8_t lastHopRssi, uint8_t messageLength, uint8_t * messageContents)
A callback invoked by the EmberZNet stack when a bootload message is received.
N/A | longId | The EUI64 of the sending node. |
N/A | lastHopLqi | last hop LQI. |
N/A | lastHopRssi | last hop RSSI. |
N/A | messageLength | message length. |
N/A | messageContents | The bootload message that was sent. |
471
of file app/framework/common/zigbee_app_framework_callback.h
emberAfBootloadTransmitCompleteCallback#
void emberAfBootloadTransmitCompleteCallback (EmberStatus status, uint8_t messageLength, uint8_t * messageContents)
A callback invoked by the EmberZNet stack when the MAC has finished transmitting a bootload message.
N/A | status | An EmberStatus value of EMBER_SUCCESS if an ACK was received from the destination or EMBER_DELIVERY_FAILED if no ACK was received. |
N/A | messageLength | message length. |
N/A | messageContents | The bootload message that was sent. |
491
of file app/framework/common/zigbee_app_framework_callback.h
emberAfZllNetworkFoundCallback#
void emberAfZllNetworkFoundCallback (bool isDeviceInfoNull, uint8_t lastHopLqi, int8_t lastHopRssi, const EmberZllNetwork * networkInfo, const EmberZllDeviceInfoRecord * deviceInfo)
This callback is invoked when a ZLL network scan finds a ZLL network.
N/A | isDeviceInfoNull | Used to interpret deviceInfo field. |
N/A | lastHopLqi | The link quality from the node that last relayed the message. |
N/A | lastHopRssi | The energy level (in units of dBm) observed during reception. |
N/A | networkInfo | |
N/A | deviceInfo |
Returns
networkInfo Information about the network.
deviceInfo Device specific information.
510
of file app/framework/common/zigbee_app_framework_callback.h
emberAfZllScanCompleteCallback#
void emberAfZllScanCompleteCallback (EmberStatus status)
This callback is invoked when a ZLL network scan is complete.
N/A | status | Status of the operation. |
526
of file app/framework/common/zigbee_app_framework_callback.h
emberAfZllAddressAssignmentCallback#
void emberAfZllAddressAssignmentCallback (uint8_t lastHopLqi, int8_t lastHopRssi, const EmberZllAddressAssignment * addressInfo)
This callback is invoked when network and group addresses are assigned to a remote mode in a network start or network join request.
N/A | lastHopLqi | The link quality from the node that last relayed the message. |
N/A | lastHopRssi | The energy level (in units of dBm) observed during reception. |
N/A | addressInfo |
Returns
addressInfo Address assignment information.
539
of file app/framework/common/zigbee_app_framework_callback.h
emberAfZllTouchLinkTargetCallback#
void emberAfZllTouchLinkTargetCallback (const EmberZllNetwork * networkInfo)
This callback is invoked when the device is a target of a touch link.
N/A | networkInfo |
Returns
networkInfo Information about the network.
551
of file app/framework/common/zigbee_app_framework_callback.h
emberAfMacFilterMatchMessageCallback#
void emberAfMacFilterMatchMessageCallback (uint8_t filterIndexMatch, EmberMacPassthroughType messageType, uint8_t lastHopLqi, int8_t lastHopRssi, uint8_t messageLength, uint8_t * messageContents)
A callback invoked by the EmberZNet stack when a raw MAC message that has matched one of the application's configured MAC filters.
N/A | filterIndexMatch | filter index match. |
N/A | messageType | message type. |
N/A | lastHopLqi | last hop LQI. |
N/A | lastHopRssi | last hop RSSI. |
N/A | messageLength | message length. |
N/A | messageContents | message contents. |
565
of file app/framework/common/zigbee_app_framework_callback.h
emberAfDGpSentCallback#
void emberAfDGpSentCallback (EmberStatus status, uint8_t gpepHandle)
A callback to the GP endpoint to indicate the result of the GPDF transmission.
N/A | status | An EmberStatus value indicating success or the reason for failure. |
N/A | gpepHandle | The handle of the GPDF. |
585
of file app/framework/common/zigbee_app_framework_callback.h
emberAfPanIdConflictCallback#
EmberStatus emberAfPanIdConflictCallback (int8_t conflictCount)
This handler is called by the stack to report the number of conflict reports exceeds EMBER_PAN_ID_CONFLICT_REPORT_THRESHOLD within a period of 1 minute )
N/A | conflictCount |
Returns
An EmberStatus value indicating success or the reason for failure.
597
of file app/framework/common/zigbee_app_framework_callback.h
emberAfOrphanNotificationCallback#
void emberAfOrphanNotificationCallback (EmberEUI64 longId)
Inform the application that an orphan notification has been received. This is generally not useful for applications. It could be useful in testing and is included for this purpose.
N/A | longId | The 8 byte EUI64 of the sender. |
607
of file app/framework/common/zigbee_app_framework_callback.h
emberAfCounterCallback#
void emberAfCounterCallback (EmberCounterType type, EmberCounterInfo Info)
This handler is called when the value of a counter has changed.
N/A | type | Type of Counter |
N/A | Info | Counter Info and value |
616
of file app/framework/common/zigbee_app_framework_callback.h
emberAfMacPassthroughFilterCallback#
bool emberAfMacPassthroughFilterCallback (uint8_t * macHeader)
This handler is called for messages that need to be matched against mac passthrough filter.
N/A | macHeader |
Returns
True if mac passthrough filter was matched. False otherwise.
628
of file app/framework/common/zigbee_app_framework_callback.h
emberAfGenerateCbkeKeysHandler283k1Callback#
void emberAfGenerateCbkeKeysHandler283k1Callback (EmberStatus status, EmberPublicKey283k1Data * ephemeralPublicKey)
A callback by the Crypto Engine indicating that a new ephemeral public/private key pair has been generated. The public/private key pair is stored on the NCP, but only the associated public key is returned to the host. The node's associated certificate is also returned.
N/A | status | The result of the CBKE operation. |
N/A | ephemeralPublicKey |
Returns
ephemeralPublicKey The generated ephemeral public key.
640
of file app/framework/common/zigbee_app_framework_callback.h
emberAfCalculateSmacsHandler283k1Callback#
void emberAfCalculateSmacsHandler283k1Callback (EmberStatus status, EmberSmacData * initiatorSmac, EmberSmacData * responderSmac)
A callback to indicate that the NCP has finished calculating the Secure Message Authentication Codes (SMAC) for both the initiator and responder. The associated link key is kept in temporary storage until the host tells the NCP to store or discard the key via emberClearTemporaryDataMaybeStoreLinkKey().
N/A | status | The Result of the CBKE operation. |
N/A | initiatorSmac | |
N/A | responderSmac |
Returns
initiatorSmac The calculated value of the initiator's SMAC
responderSmac The calculated value of the responder's SMAC
655
of file app/framework/common/zigbee_app_framework_callback.h
emberAfGpepIncomingMessageCallback#
void emberAfGpepIncomingMessageCallback (EmberStatus status, uint8_t gpdLink, uint8_t sequenceNumber, EmberGpAddress * addr, EmberGpSecurityLevel gpdfSecurityLevel, EmberGpKeyType gpdfSecurityKeyType, bool autoCommissioning, uint8_t bidirectionalInfo, uint32_t gpdSecurityFrameCounter, uint8_t gpdCommandId, uint32_t mic, uint8_t proxyTableIndex, uint8_t gpdCommandPayloadLength, uint8_t * gpdCommandPayload)
A callback invoked by the ZigBee GP stack when a GPDF is received.
N/A | status | The status of the GPDF receive. |
N/A | gpdLink | The gpdLink value of the received GPDF. |
N/A | sequenceNumber | The GPDF sequence number. |
N/A | addr | The address of the source GPD. |
N/A | gpdfSecurityLevel | The security level of the received GPDF. |
N/A | gpdfSecurityKeyType | The securityKeyType used to decrypt/authenticate the incoming GPDF. |
N/A | autoCommissioning | Whether the incoming GPDF had the auto-commissioning bit set. |
N/A | bidirectionalInfo | Bidirectional information represented in bitfields, where bit0 holds the rxAfterTx of incoming gpdf and bit1 holds if tx queue is available for outgoing gpdf. |
N/A | gpdSecurityFrameCounter | The security frame counter of the incoming GDPF. |
N/A | gpdCommandId | The gpdCommandId of the incoming GPDF. |
N/A | mic | The received MIC of the GPDF. |
N/A | proxyTableIndex | The proxy table index of the corresponding proxy table entry to the incoming GPDF. |
N/A | gpdCommandPayloadLength | The length of the GPD command payload. |
N/A | gpdCommandPayload | The GPD command payload. |
686
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRtosStackWakeupIsrCallback#
void emberAfRtosStackWakeupIsrCallback (void )
Rtos Stack Wakeup Isr Handler.
N/A |
722
of file app/framework/common/zigbee_app_framework_callback.h
emberAfRadioNeedsCalibratingCallback#
void emberAfRadioNeedsCalibratingCallback (void )
RadioNeedsCalibratingHandler.
N/A |
727
of file app/framework/common/zigbee_app_framework_callback.h
emberAfScanErrorCallback#
void emberAfScanErrorCallback (EmberStatus status)
scanErrorHandler
N/A | status | The error status of a scan |
733
of file app/framework/common/zigbee_app_framework_callback.h
emberAfSupportIncomingMessageCallback#
bool emberAfSupportIncomingMessageCallback (EmberApsFrame * apsFrame)
A callback invoked when receiving a message. Used when AF Support component is enabled on NCP. User can use apsFrame to filter for which ZCL messages they want to process on NCP. If this function returns true then the message is being processed on NCP, otherwise it will be forwarded to the Host.
N/A | apsFrame | The aps Frame |
745
of file app/framework/common/zigbee_app_framework_callback.h