Application Framework API Reference#

This documentation describes the application programming interface (API) for the Zigbee Application Framework. The file af.h is the master include file for the Zigbee Application Framework modules.

Attribute Storage#

enum
@0 {
EMBER_AF_IMAGE_BLOCK_REQUEST_OPTIONS_NONE = 0x00
EMBER_AF_IMAGE_BLOCK_REQUEST_MIN_BLOCK_REQUEST_SUPPORTED_BY_CLIENT = 0x01
EMBER_AF_IMAGE_BLOCK_REQUEST_MIN_BLOCK_REQUEST_SUPPORTED_BY_SERVER = 0x02
EMBER_AF_IMAGE_BLOCK_REQUEST_SIMULATED_FROM_PAGE_REQUEST = 0x04
EMBER_AF_DATA_TYPE_ANALOG = 0
EMBER_AF_DATA_TYPE_DISCRETE = 1
EMBER_AF_DATA_TYPE_NONE = 2
PRIORITIZE_BEACONS_BASED_ON_PARENT_CLASSIFICATION = 0x0001
PRIORITIZE_BEACONS_BASED_ON_TC_CONNECTVITY = 0x0002
TC_CONNECTIVITY = 0x0010
LONG_UPTIME = 0x0020
BAD_PARENT_CONNECTIVITY = 0x0040
}
emberAfLocateAttributeMetadata(uint8_t endpoint, EmberAfClusterId clusterId, EmberAfAttributeId attributeId, uint8_t mask, uint16_t manufacturerCode)

locate attribute metadata

bool
emberAfContainsAttribute(uint8_t endpoint, EmberAfClusterId clusterId, EmberAfAttributeId attributeId, uint8_t mask, uint16_t manufacturerCode)

Returns true if the attribute exists.

bool
emberAfContainsClusterWithMfgCode(uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint contains a cluster, checking for mfg code.

bool
emberAfContainsCluster(uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL cluster with specified id.

bool
emberAfContainsServerWithMfgCode(uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint has cluster server, checking for mfg code.

bool
emberAfContainsServer(uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL server with specified id.

bool
emberAfContainsClientWithMfgCode(uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint contains cluster client.

bool
emberAfContainsClient(uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL client with specified id.

emberAfWriteAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint8_t *dataPtr, EmberAfAttributeType dataType)

write an attribute, performing all the checks.

emberAfWriteServerAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t *dataPtr, EmberAfAttributeType dataType)

write a cluster server attribute.

emberAfWriteClientAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t *dataPtr, EmberAfAttributeType dataType)

write a cluster client attribute.

emberAfWriteManufacturerSpecificServerAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t *dataPtr, EmberAfAttributeType dataType)

write a manufacturer specific server attribute.

emberAfWriteManufacturerSpecificClientAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t *dataPtr, EmberAfAttributeType dataType)

write a manufacturer specific client attribute.

emberAfVerifyAttributeWrite(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint16_t manufacturerCode, uint8_t *dataPtr, EmberAfAttributeType dataType)

Function that test the success of attribute write.

emberAfReadAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint8_t *dataPtr, uint8_t readLength, EmberAfAttributeType *dataType)

Read the attribute value, performing all the checks.

emberAfReadServerAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t *dataPtr, uint8_t readLength)

Read the server attribute value, performing all the checks.

emberAfReadClientAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t *dataPtr, uint8_t readLength)

Read the client attribute value, performing all the checks.

emberAfReadManufacturerSpecificServerAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t *dataPtr, uint8_t readLength)

Read the manufacturer-specific server attribute value, performing all checks.

emberAfReadManufacturerSpecificClientAttribute(uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t *dataPtr, uint8_t readLength)

Read the manufacturer-specific client attribute value, performing all checks.

uint8_t
emberAfGetDataSize(uint8_t dataType)

this function returns the size of the ZCL data in bytes.

uint8_t

this function returns the number of seconds the network will remain open.

uint8_t

Macro that takes index of endpoint, and returns Zigbee endpoint.

uint8_t
emberAfIndexFromEndpoint(uint8_t endpoint)
uint8_t
emberAfFindClusterClientEndpointIndex(uint8_t endpoint, EmberAfClusterId clusterId)
uint8_t
emberAfFindClusterServerEndpointIndex(uint8_t endpoint, EmberAfClusterId clusterId)
uint8_t

Returns the network index of a given endpoint.

uint8_t

Returns the total number of endpoints (dynamic and pre-compiled).

uint8_t

Returns the number of pre-compiled endpoints.

uint8_t

Returns the type of the attribute, either ANALOG, DISCRETE or NONE.

bool
emberAfIsTypeSigned(EmberAfAttributeType dataType)

Returns true if type is signed, false otherwise.

uint32_t
emberAfGetInt32u(const uint8_t *message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 32-bit integer from the message buffer.

uint32_t
emberAfGetInt24u(const uint8_t *message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 24-bit integer from the message buffer.

uint16_t
emberAfGetInt16u(const uint8_t *message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 16-bit integer from the message buffer.

uint8_t *
emberAfGetString(uint8_t *message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a ZCL string from the message buffer.

uint8_t *
emberAfGetLongString(uint8_t *message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a ZCL long string from the message buffer.

uint8_t
emberAfGetDate(uint8_t *message, uint16_t currentIndex, uint16_t msgLen, EmberAfDate *destination)

macro that returns true if the cluster is in the manufacturer specific range

void
emberAfCopyInt16u(uint8_t *data, uint16_t index, uint16_t x)

function that copies a uint16_t value into a buffer

void
emberAfCopyInt24u(uint8_t *data, uint16_t index, uint32_t x)

function that copies a uint24_t value into a buffer

void
emberAfCopyInt32u(uint8_t *data, uint16_t index, uint32_t x)

function that copies a uint32_t value into a buffer

void
emberAfCopyString(uint8_t *dest, uint8_t *src, uint8_t size)

macro that returns true if the cluster is in the manufacturer specific range

void
emberAfCopyLongString(uint8_t *dest, uint8_t *src, uint16_t size)

macro that returns true if the cluster is in the manufacturer specific range

uint8_t
emberAfStringLength(const uint8_t *buffer)

macro that returns true if the cluster is in the manufacturer specific range

uint16_t
emberAfLongStringLength(const uint8_t *buffer)

macro that returns true if the cluster is in the manufacturer specific range

uint16_t
emberAfAttributeValueSize(EmberAfAttributeType dataType, const uint8_t *buffer, const uint16_t bufferSize)

macro that returns true if the cluster is in the manufacturer specific range

#define

macro that returns true if the cluster is in the manufacturer specific range

#define

macro that returns true if attribute is read only.

#define

macro that returns true if client attribute, and false if server.

#define

macro that returns true if attribute is saved to token.

#define

macro that returns true if attribute is saved in external storage.

#define

macro that returns true if attribute is a singleton

#define

macro that returns true if attribute is manufacturer specific

#define

macro that returns size of attribute in bytes.

#define

Macro that takes index of endpoint, and returns profile Id for it.

#define

Macro that takes index of endpoint, and returns device Id for it.

#define

Macro that takes index of endpoint, and returns device version for it.

#define

Macro that takes index of endpoint, and returns network index for it.

#define

Macro that returns primary profile ID.

#define

Macro that returns the primary endpoint.

#define
emberAfGetInt8u (message, currentIndex, msgLen)

Macro for consistency, that extracts single byte out of the message.

#define
emberAfCopyInt8u (data, index, x)

Macro for consistency that copies a uint8_t from variable into buffer.

Device Control#

bool
emberAfIsDeviceEnabled(uint8_t endpoint)

Function that checks if endpoint is enabled.

bool
emberAfIsDeviceIdentifying(uint8_t endpoint)

Function that checks if endpoint is identifying.

void
emberAfSetDeviceEnabled(uint8_t endpoint, bool enabled)

Function that enables or disables an endpoint.

Miscellaneous#

This variable defines an invalid image id. It is used to determine if a returned EmberAfOtaImageId is valid or not. This is done by passing the data to the function emberAfIsOtaImageIdValid().

bool
emberAfEndpointEnableDisable(uint8_t endpoint, bool enable)

Enable/disable endpoints.

bool

Determine if an endpoint at the specified index is enabled or disabled.

bool
emberAfIsThisDataTypeAStringType(EmberAfAttributeType dataType)

Returns true if a given ZCL data type is a string type.

bool
emberAfIsStringAttributeType(EmberAfAttributeType attributeType)

Returns true if the given attribute type is a string.

bool
emberAfIsLongStringAttributeType(EmberAfAttributeType attributeType)

Returns true if the given attribute type is a long string.

uint8_t

Increments the ZCL sequence number and returns the value.

uint8_t

Retrieves the last sequence number that was used.

int8_t
emberAfCompareValues(uint8_t *val1, uint8_t *val2, uint8_t len, bool signedNumber)

Simple integer comparison function. Compares two values of a known length as integers. Signed integer comparison are supported for numbers with length of 4 (bytes) or less. The integers are in native endianness.

void
emberAfGetEui64(EmberEUI64 returnEui64)

populates the passed EUI64 with the local EUI64 MAC address.

EmberNodeId

Returns the node ID of the local node.

emberAfGenerateRandomKey(EmberKeyData *result)

Generates a random key (link, network, or master).

EmberPanId

Returns the PAN ID of the local node.

uint8_t

Returns the radioChannel of the current network.

uint8_t

This indicates a new image verification is taking place.

uint8_t

This indicates a new image verification is taking place.

Returns the current network state. This call caches the results on the host to prevent frequent EZSP transactions.

emberAfGetNetworkParameters(EmberNodeType *nodeType, EmberNetworkParameters *parameters)

Returns the current network parameters.

emberAfGetNodeType(EmberNodeType *nodeType)

Returns the current node type.

emberAfPermitJoin(uint8_t duration, bool broadcastMgmtPermitJoin)

Enables local permit join and optionally broadcasts the ZDO Mgmt_Permit_Join_req message. This API can be called from any device type and still return EMBER_SUCCESS. If the API is called from an end device, the permit association bit will just be left off.

emberAfBroadcastPermitJoin(uint8_t duration)

Enables local permit join and broadcasts the ZDO Mgmt_Permit_Join_req message. This API can be called from any device type and still return EMBER_SUCCESS. If the API is called from an end device, the permit association bit will just be left off.

#define

This indicates a new image verification is taking place.

#define

This indicates the continuation of an image verification already in progress.

#define

The mask applied by emberAfNextSequence when generating ZCL sequence numbers.

#define

The mask applied to generated message tags used by the framework when sending messages via EZSP. Customers who call ezspSend functions directly must use message tags outside this mask.

#define

This indicates a new image verification is taking place.

#define

This indicates a new image verification is taking place.

#define

This indicates a new image verification is taking place.

#define

This indicates a new image verification is taking place.

#define
EMBER_AF_REJOIN_FIRST_REASON EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE

This indicates a new image verification is taking place.

#define
EMBER_AF_REJOIN_LAST_REASON EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE

This indicates a new image verification is taking place.

Sleep Control#

void

a function used to run the application framework's event mechanism. This function passes the application framework's event tables to the ember stack's event processing code.

emberAfScheduleTickExtended(uint8_t endpoint, EmberAfClusterId clusterId, bool isClient, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

This function is used to schedule a cluster-related event inside the application framework's event mechanism. This function provides a wrapper for the Ember stack event mechanism which allows the cluster code to access its events by their endpoint, cluster id, and client/server identity. The passed poll and sleep controls allow the cluster to indicate whether it needs to long or short poll and whether it needs to stay awake or if it can sleep.

emberAfScheduleClusterTick(uint8_t endpoint, EmberAfClusterId clusterId, bool isClient, uint32_t delayMs, EmberAfEventSleepControl sleepControl)

This function is used to schedule a cluster-related event inside the This function is a wrapper for emberAfScheduleTickExtended. The cluster on the given endpoint will be set to long poll if sleepControl is set to EMBER_AF_OK_TO_HIBERNATE or will be set to short poll otherwise. It will stay awake if sleepControl is EMBER_AF_STAY_AWAKE and will sleep otherwise.

emberAfScheduleClientTickExtended(uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

A function used to schedule a cluster client event. This function is a wrapper for emberAfScheduleTickExtended.

emberAfScheduleClientTick(uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs)

A function used to schedule a cluster client event. This function is a wrapper for emberAfScheduleClientTickExtended. It indicates that the cluster client on the given endpoint can long poll and can sleep.

emberAfScheduleServerTickExtended(uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

A function used to schedule a cluster server event. This function is a wrapper for emberAfScheduleTickExtended.

emberAfScheduleServerTick(uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs)

A function used to schedule a cluster server event. This function is a wrapper for emberAfScheduleServerTickExtended. It indicates that the cluster server on the given endpoint can long poll and can sleep.

emberAfDeactivateClusterTick(uint8_t endpoint, EmberAfClusterId clusterId, bool isClient)

A function used to deactivate a cluster-related event. This function provides a wrapper for the Ember stack's event mechanism which allows an event to be accessed by its endpoint, cluster id, and client/server identity.

emberAfDeactivateClientTick(uint8_t endpoint, EmberAfClusterId clusterId)

A function used to deactivate a cluster client event. This function is a wrapper for emberAfDeactivateClusterTick.

emberAfDeactivateServerTick(uint8_t endpoint, EmberAfClusterId clusterId)

A function used to deactivate a cluster server event. This function is a wrapper for emberAfDeactivateClusterTick.

emberAfEventControlSetDelayMS(EmberEventControl *control, uint32_t delayMs)

Sets the EmberEventControl to run "delayMs" milliseconds in the future. This function first verifies that the delay is within the acceptable range before scheduling the event.

emberAfEventControlSetDelay(EmberEventControl *eventControl, uint32_t delayMs)

Sets the EmberEventControl to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

emberAfEventControlSetDelayQS(EmberEventControl *control, uint32_t delayQs)

Sets the EmberEventControl to run "delayQs" quarter seconds in the future. The 'quarter seconds' are actually 256 milliseconds long. This function first verifies that the delay is within the acceptable range before scheduling the event.

emberAfEventControlSetDelayMinutes(EmberEventControl *control, uint16_t delayM)

Sets the EmberEventControl to run "delayM" minutes in the future. The 'minutes' are actually 65536 (0x10000) milliseconds long. This function first verifies that the delay is within the acceptable range before scheduling the event.

void
emberAfNetworkEventControlSetInactive(EmberEventControl *controls)

Sets the EmberEventControl for the current network, and only the current network, as inactive. See ::emberEventControlSetInactive.

bool
emberAfNetworkEventControlGetActive(EmberEventControl *controls)

Returns true if the event for the current network, and only the current network, is active. See ::emberEventControlGetActive.

void
emberAfNetworkEventControlSetActive(EmberEventControl *controls)

Sets the EmberEventControl for the current network, and only current network, to run at the next available opportunity. See ::emberEventControlSetActive.

emberAfNetworkEventControlSetDelayMS(EmberEventControl *controls, uint32_t delayMs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

emberAfNetworkEventControlSetDelay(EmberEventControl *controls, uint32_t delayMs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

emberAfNetworkEventControlSetDelayQS(EmberEventControl *controls, uint32_t delayQs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayQs" quarter seconds in the future. See emberAfEventControlSetDelayQS.

emberAfNetworkEventControlSetDelayMinutes(EmberEventControl *controls, uint16_t delayM)

Sets the EmberEventControl for the current network, and only the current network, to run "delayM" minutes in the future. See emberAfEventControlSetDelayMinutes.

emberAfEndpointEventControlSetInactive(EmberEventControl *controls, uint8_t endpoint)

Sets the EmberEventControl for the specified endpoint as inactive. See ::emberEventControlSetInactive.

bool
emberAfEndpointEventControlGetActive(EmberEventControl *controls, uint8_t endpoint)

Returns true if the event for the current number is active. See ::emberEventControlGetActive.

emberAfEndpointEventControlSetActive(EmberEventControl *controls, uint8_t endpoint)

Sets the EmberEventControl for the specified endpoint to run at the next available opportunity. See ::emberEventControlSetActive.

emberAfEndpointEventControlSetDelayMS(EmberEventControl *controls, uint8_t endpoint, uint32_t delayMs)

Sets the EmberEventControl for the specified endpoint to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

emberAfEndpointEventControlSetDelay(EmberEventControl *controls, uint8_t endpoint, uint32_t delayMs)

Sets the EmberEventControl for the specified endpoint to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

emberAfEndpointEventControlSetDelayQS(EmberEventControl *controls, uint8_t endpoint, uint32_t delayQs)

Sets the EmberEventControl for the specified endpoint to run "delayQs" quarter seconds in the future. See emberAfEventControlSetDelayQS.

emberAfEndpointEventControlSetDelayMinutes(EmberEventControl *controls, uint8_t endpoint, uint16_t delayM)

Sets the EmberEventControl for the specified endpoint to run "delayM" minutes in the future. See emberAfEventControlSetDelayMinutes.

uint32_t
emberAfMsToNextEvent(uint32_t maxMs)

A function used to retrieve the number of milliseconds until the next event scheduled in the application framework's event mechanism.

uint32_t
emberAfMsToNextEventExtended(uint32_t maxMs, uint8_t *returnIndex)

This is the same as the function emberAfMsToNextEvent() with the following addition. If returnIndex is non-NULL it returns the index of the event that is ready to fire next.

#define

A function used to add a task to the task register.

#define

A function used to remove a task from the task register.

#define

A macro used to retrieve the bitmask of all application frameowrk tasks currently in progress. This can be useful for debugging if some task is holding the device out of hibernation.

#define

Friendly define for use in the scheduling or canceling client events with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().

#define

Friendly define for use in the scheduling or canceling server events with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().

#define

A function used to retrieve the number of quarter seconds until the next event scheduled in the application framework's event mechanism. This function will round down and will return 0 if the next event must fire within a quarter second.

#define

A function for retrieving the most restrictive sleep control value for all scheduled events. This function is used by emberAfOkToNap and emberAfOkToHibernate to makes sure that there are no events scheduled which will keep the device from hibernating or napping.

#define

A function for setting the default sleep control value against which all scheduled event sleep control values will be evaluated. This can be used to keep a device awake for an extended period of time by setting the default to EMBER_AF_STAY_AWAKE and then resetting the value to EMBER_AF_OK_TO_HIBERNATE once the wake period is complete.

#define

A function used to retrieve the default sleep control against which all event sleep control values are evaluated. The default sleep control value is initialized to EMBER_AF_OK_TO_HIBERNATE but can be changed by the application at any time using the emberAfSetDefaultSleepControl() function.

Messaging#

This function sends a ZCL response, based on the information that is currently in the outgoing buffer. It is expected that a complete ZCL message is present, including header. The application may use this method directly from within the message handling function and associated callbacks. However this will result in the response being sent before the APS Ack is sent which is not ideal.

emberAfSendResponseWithCallback(EmberAfMessageSentFunction callback)

Send ZCL response with attached message sent callback.

emberAfSendMulticast(EmberMulticastId multicastId, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message)

Sends multicast.

emberAfSendMulticastToBindings(EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message)

Multicasts the message to the group in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic. Care should be taken when considering the effects of broadcasts in a network.

emberAfSendMulticastWithAliasWithCallback(EmberMulticastId multicastId, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

Sends Multicast with alias with attached message sent callback.

emberAfSendMulticastWithCallback(EmberMulticastId multicastId, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberAfMessageSentFunction callback)

Sends multicast with attached message sent callback.

emberAfSendBroadcast(EmberNodeId destination, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message)

Sends broadcast.

emberAfSendBroadcastWithCallback(EmberNodeId destination, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberAfMessageSentFunction callback)

Sends broadcast with attached message sent callback.

emberAfSendBroadcastWithAliasWithCallback(EmberNodeId destination, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

Sends broadcast with alias with attached message sent callback.

emberAfSendUnicast(EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message)

Sends unicast.

emberAfSendUnicastWithCallback(EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberAfMessageSentFunction callback)

Sends unicast with attached message sent callback.

emberAfSendUnicastToBindings(EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message)

Unicasts the message to each remote node in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic.

emberAfSendUnicastToBindingsWithCallback(EmberApsFrame *apsFrame, uint16_t messageLength, uint8_t *message, EmberAfMessageSentFunction callback)

emberAfSendUnicastToBindings with attached message sent callback.

emberAfSendInterPan(EmberPanId panId, const EmberEUI64 destinationLongId, EmberNodeId destinationShortId, EmberMulticastId multicastId, EmberAfClusterId clusterId, EmberAfProfileId profileId, uint16_t messageLength, uint8_t *messageBytes)

Sends interpan message.

emberAfSendEndDeviceBind(uint8_t endpoint)

Sends end device binding request.

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandUnicastToBindingsWithCallback(EmberAfMessageSentFunction callback)

emberAfSendCommandUnicastToBindings with attached message sent callback.

emberAfSendCommandMulticast(EmberMulticastId multicastId)

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandMulticastWithAlias(EmberMulticastId multicastId, EmberNodeId alias, uint8_t sequence)

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandMulticastWithCallback(EmberMulticastId multicastId, EmberAfMessageSentFunction callback)

emberAfSendCommandMulticast with attached message sent callback.

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandUnicast(EmberOutgoingMessageType type, uint16_t indexOrDestination)

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandUnicastWithCallback(EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberAfMessageSentFunction callback)

emberAfSendCommandUnicast with attached message sent callback.

emberAfSendCommandBroadcast(EmberNodeId destination)

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandBroadcastWithCallback(EmberNodeId destination, EmberAfMessageSentFunction callback)

emberAfSendCommandBroadcast with attached message sent callback.

emberAfSendCommandBroadcastWithAliasWithCallback(EmberNodeId destination, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

emberAfSendCommandBroadcast from alias with attached message sent callback.

emberAfSendCommandBroadcastWithAlias(EmberNodeId destination, EmberNodeId alias, uint8_t sequence)

Sends the command prepared with emberAfFill.... macro.

emberAfSendCommandInterPan(EmberPanId panId, const EmberEUI64 destinationLongId, EmberNodeId destinationShortId, EmberMulticastId multicastId, EmberAfProfileId profileId)

Sends the command prepared with emberAfFill.... macro.

emberAfSendDefaultResponse(const EmberAfClusterCommand *cmd, EmberAfStatus status)

Sends a default response to a cluster command.

emberAfSendDefaultResponseWithCallback(const EmberAfClusterCommand *cmd, EmberAfStatus status, EmberAfMessageSentFunction callback)

emberAfSendDefaultResponse with attached message sent callback.

Sends a default response to a cluster command using the current command.

emberAfSendImmediateDefaultResponseWithCallback(EmberAfStatus status, EmberAfMessageSentFunction callback)

emberAfSendImmediateDefaultResponse with attached message sent callback.

uint8_t
emberAfMaximumApsPayloadLength(EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame *apsFrame)

Returns the maximum size of the payload that the Application Support sub-layer will accept for the given message type, destination, and APS frame.

Access to client API APS frame.

void
emberAfSetCommandEndpoints(uint8_t sourceEndpoint, uint8_t destinationEndpoint)

Set the source and destination endpoints in the client API APS frame.

emberAfFindDevicesByProfileAndCluster(EmberNodeId target, EmberAfProfileId profileId, EmberAfClusterId clusterId, bool serverCluster, EmberAfServiceDiscoveryCallback *callback)

Use this function to find devices in the network with endpoints matching a given profile ID and cluster ID in their descriptors. Target may either be a specific device, or the broadcast address EMBER_RX_ON_WHEN_IDLE_BROADCAST_ADDRESS.

emberAfFindClustersByDeviceAndEndpoint(EmberNodeId target, uint8_t targetEndpoint, EmberAfServiceDiscoveryCallback *callback)

Use this function to find all of the given in and out clusters implemented on a devices given endpoint. Target should only be the short address of a specific device.

emberAfFindIeeeAddress(EmberNodeId shortAddress, EmberAfServiceDiscoveryCallback *callback)

Use this function to initiate a discovery for the IEEE address of the specified node id. This will send a unicast sent to the target node ID.

emberAfFindNodeId(EmberEUI64 longAddress, EmberAfServiceDiscoveryCallback *callback)

Use this function to initiate a discovery for the short ID of the specified long address. This will send a broadcast to all rx-on-when-idle devices (non-sleepies).

emberAfFindActiveEndpoints(EmberNodeId target, EmberAfServiceDiscoveryCallback *callback)

Initiate an Active Endpoint request ZDO message to the target node ID.

uint8_t
emberAfAddAddressTableEntry(EmberEUI64 longId, EmberNodeId shortId)

Use this function to add an entry for a remote device to the address table.

emberAfSetAddressTableEntry(uint8_t index, EmberEUI64 longId, EmberNodeId shortId)

Use this function to add an entry for a remote device to the address table at a specific location.

Use this function to remove a specific entry from the address table.

emberAfInitiateKeyEstablishment(EmberNodeId nodeId, uint8_t endpoint)

Use this function to initiate key establishment with a remote node. emberAfKeyEstablishmentCallback will be called as events occur and when key establishment completes.

emberAfInitiateInterPanKeyEstablishment(EmberPanId panId, const EmberEUI64 eui64)

Use this function to initiate key establishment with a remote node on a different PAN. emberAfInterPanKeyEstablishmentCallback will be called as events occur and when key establishment completes.

bool

Use this function to tell if the device is in the process of performing key establishment.

emberAfInitiatePartnerLinkKeyExchange(EmberNodeId target, uint8_t endpoint, EmberAfPartnerLinkKeyExchangeCallback *callback)

Use this function to initiate partner link key exchange with a remote node.

bool

Use this function to determine if the security profile of the current network was set to Smart Energy. The security profile is configured in AppBuilder. @ return true if the security profile is Smart Energy or false otherwise.

#define

Friendly define for use in discovering client clusters with emberAfFindDevicesByProfileAndCluster().

#define

Friendly define for use in discovering server clusters with emberAfFindDevicesByProfileAndCluster().

#define

returns the current endpoint that is being served.

Network utility functions#

emberAfFormNetwork(EmberNetworkParameters *parameters)

Use this function to form a new network using the specified network parameters.

emberAfJoinNetwork(EmberNetworkParameters *parameters)

Use this function to associate with the network using the specified network parameters.

Use this function to find an unused PAN id and form a new network.

Use this function to find a joinable network and join it.

emberAfPushNetworkIndex(uint8_t networkIndex)

Sets the current network to that of the given index and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Sets the current network to the callback network and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Sets the current network to that of the given endpoint and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Removes the topmost network from the stack of networks maintained by the framework and sets the current network to the new topmost network. Every call to this API must be paired with a prior call to emberAfPushNetworkIndex, emberAfPushCallbackNetworkIndex, or emberAfPushEndpointNetworkIndex.

uint8_t

Returns the primary endpoint of the given network index or 0xFF if no endpoints belong to the network.

uint8_t

Returns the primary endpoint of the current network index or 0xFF if no endpoints belong to the current network.

void

Basic initialization API to be invoked before emberAfMain.

int
emberAfMain(MAIN_FUNCTION_PARAMETERS)

This function effectively serves as the application main.

Macros#

#define
CONFIGURATION_HEADER "app/framework/util/config.h"

Attribute Storage Documentation#

@0#

@0

Data types are either analog or discrete. This makes a difference for some of the ZCL global commands

Enumerator
EMBER_AF_IMAGE_BLOCK_REQUEST_OPTIONS_NONE
EMBER_AF_IMAGE_BLOCK_REQUEST_MIN_BLOCK_REQUEST_SUPPORTED_BY_CLIENT
EMBER_AF_IMAGE_BLOCK_REQUEST_MIN_BLOCK_REQUEST_SUPPORTED_BY_SERVER
EMBER_AF_IMAGE_BLOCK_REQUEST_SIMULATED_FROM_PAGE_REQUEST
EMBER_AF_DATA_TYPE_ANALOG
EMBER_AF_DATA_TYPE_DISCRETE
EMBER_AF_DATA_TYPE_NONE
PRIORITIZE_BEACONS_BASED_ON_PARENT_CLASSIFICATION
PRIORITIZE_BEACONS_BASED_ON_TC_CONNECTVITY
TC_CONNECTIVITY
LONG_UPTIME
BAD_PARENT_CONNECTIVITY

Definition at line 557 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfLocateAttributeMetadata#

EmberAfAttributeMetadata* emberAfLocateAttributeMetadata (uint8_t endpoint, EmberAfClusterId clusterId, EmberAfAttributeId attributeId, uint8_t mask, uint16_t manufacturerCode)

locate attribute metadata

Parameters
N/Aendpoint

Zigbee endpoint number.

N/AclusterId

Cluster ID of the sought cluster.

N/AattributeId

Attribute ID of the sought attribute.

N/Amask

CLUSTER_MASK_SERVER or CLUSTER_MASK_CLIENT

N/AmanufacturerCode

Function returns pointer to the attribute metadata structure, or NULL if attribute was not found.

Returns

  • Returns pointer to the attribute metadata location.


Definition at line 93 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsAttribute#

bool emberAfContainsAttribute (uint8_t endpoint, EmberAfClusterId clusterId, EmberAfAttributeId attributeId, uint8_t mask, uint16_t manufacturerCode)

Returns true if the attribute exists.

Parameters
N/Aendpoint
N/AclusterId
N/AattributeId
N/Amask
N/AmanufacturerCode

Definition at line 101 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsClusterWithMfgCode#

bool emberAfContainsClusterWithMfgCode (uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint contains a cluster, checking for mfg code.

Parameters
N/Aendpoint
N/AclusterId
N/AmanufacturerCode

This function returns true regardless of whether the endpoint contains server, client or both. For standard libraries (when ClusterId < FC00), the manufacturerCode is ignored.


Definition at line 119 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsCluster#

bool emberAfContainsCluster (uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL cluster with specified id.

Parameters
N/Aendpoint
N/AclusterId

This function returns true regardless of whether the endpoint contains server, client or both in the Zigbee cluster Library. This wraps emberAfContainsClusterWithMfgCode with manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE If this function is used with a manufacturer specific clusterId then this will return the first cluster that it finds in the Cluster table. and will not return any other clusters that share that id.


Definition at line 132 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsServerWithMfgCode#

bool emberAfContainsServerWithMfgCode (uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint has cluster server, checking for mfg code.

Parameters
N/Aendpoint
N/AclusterId
N/AmanufacturerCode

This function returns true if the endpoint contains server of a given cluster. For standard librarys (when ClusterId < FC00), the manufacturerCode is ignored.


Definition at line 141 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsServer#

bool emberAfContainsServer (uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL server with specified id.

Parameters
N/Aendpoint
N/AclusterId

This function returns true if the endpoint contains server of a given cluster. This wraps emberAfContainsServer with manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE If this function is used with a manufacturer specific clusterId then this will return the first cluster that it finds in the Cluster table. and will not return any other clusters that share that id.


Definition at line 154 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsClientWithMfgCode#

bool emberAfContainsClientWithMfgCode (uint8_t endpoint, EmberAfClusterId clusterId, uint16_t manufacturerCode)

Returns true if endpoint contains cluster client.

Parameters
N/Aendpoint
N/AclusterId
N/AmanufacturerCode

This function returns true if the endpoint contains client of a given cluster. For standard library clusters (when ClusterId < FC00), the manufacturerCode is ignored.


Definition at line 164 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfContainsClient#

bool emberAfContainsClient (uint8_t endpoint, EmberAfClusterId clusterId)

Returns true if endpoint contains the ZCL client with specified id.

Parameters
N/Aendpoint
N/AclusterId

This function returns true if the endpoint contains client of a given cluster. This wraps emberAfContainsClient with manufacturerCode = EMBER_AF_NULL_MANUFACTURER_CODE If this function is used with a manufacturer specific clusterId then this will return the first cluster that it finds in the Cluster table. and will not return any other clusters that share that id.


Definition at line 177 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfWriteAttribute#

EmberAfStatus emberAfWriteAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint8_t * dataPtr, EmberAfAttributeType dataType)

write an attribute, performing all the checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/Amask
N/AdataPtr
N/AdataType

This function will attempt to write the attribute value from the provided pointer. This function will only check that the attribute exists. If it does it will write the value into the attribute table for the given attribute.

This function will not check to see if the attribute is writable since the read only / writable characteristic of an attribute only pertains to external devices writing over the air. Because this function is being called locally it assumes that the device knows what it is doing and has permission to perform the given operation.

See Also


Definition at line 198 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfWriteServerAttribute#

EmberAfStatus emberAfWriteServerAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t * dataPtr, EmberAfAttributeType dataType)

write a cluster server attribute.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AdataPtr
N/AdataType

This function is the same as emberAfWriteAttribute except that it saves having to pass the cluster mask. This is useful for code savings since write attribute is used frequently throughout the framework

See Also


Definition at line 217 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfWriteClientAttribute#

EmberAfStatus emberAfWriteClientAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t * dataPtr, EmberAfAttributeType dataType)

write a cluster client attribute.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AdataPtr
N/AdataType

This function is the same as emberAfWriteAttribute except that it saves having to pass the cluster mask. This is useful for code savings since write attribute is used frequently throughout the framework

See Also


Definition at line 235 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfWriteManufacturerSpecificServerAttribute#

EmberAfStatus emberAfWriteManufacturerSpecificServerAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t * dataPtr, EmberAfAttributeType dataType)

write a manufacturer specific server attribute.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AmanufacturerCode
N/AdataPtr
N/AdataType

This function is the same as emberAfWriteAttribute except that it saves having to pass the cluster mask and allows passing of a manufacturer code. This is useful for code savings since write attribute is used frequently throughout the framework

See Also


Definition at line 253 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfWriteManufacturerSpecificClientAttribute#

EmberAfStatus emberAfWriteManufacturerSpecificClientAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t * dataPtr, EmberAfAttributeType dataType)

write a manufacturer specific client attribute.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AmanufacturerCode
N/AdataPtr
N/AdataType

This function is the same as emberAfWriteAttribute except that it saves having to pass the cluster mask. and allows passing of a manufacturer code. This is useful for code savings since write attribute is used frequently throughout the framework

See Also


Definition at line 272 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfVerifyAttributeWrite#

EmberAfStatus emberAfVerifyAttributeWrite (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint16_t manufacturerCode, uint8_t * dataPtr, EmberAfAttributeType dataType)

Function that test the success of attribute write.

Parameters
N/Aendpoint

Zigbee endpoint number

N/Acluster

Cluster ID of the sought cluster.

N/AattributeID

Attribute ID of the sought attribute.

N/Amask

CLUSTER_MASK_SERVER or CLUSTER_MASK_CLIENT

N/AmanufacturerCode

Location where attribute will be written from.

N/AdataPtr

ZCL attribute type.

N/AdataType

This function returns success if attribute write would be successful. It does not actually write anything, just validates for read-only and data-type.


Definition at line 293 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfReadAttribute#

EmberAfStatus emberAfReadAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t mask, uint8_t * dataPtr, uint8_t readLength, EmberAfAttributeType * dataType)

Read the attribute value, performing all the checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/Amask
N/AdataPtr
N/AreadLength
N/AdataType

This function will attempt to read the attribute and store it into the pointer. It will also read the data type. Both dataPtr and dataType may be NULL, signifying that either value or type is not desired.

See Also


Definition at line 313 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfReadServerAttribute#

EmberAfStatus emberAfReadServerAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t * dataPtr, uint8_t readLength)

Read the server attribute value, performing all the checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AdataPtr
N/AreadLength

This function will attempt to read the attribute and store it into the pointer. It will also read the data type. Both dataPtr and dataType may be NULL, signifying that either value or type is not desired.

See Also


Definition at line 333 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfReadClientAttribute#

EmberAfStatus emberAfReadClientAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint8_t * dataPtr, uint8_t readLength)

Read the client attribute value, performing all the checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AdataPtr
N/AreadLength

This function will attempt to read the attribute and store it into the pointer. It will also read the data type. Both dataPtr and dataType may be NULL, signifying that either value or type is not desired.

See Also


Definition at line 351 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfReadManufacturerSpecificServerAttribute#

EmberAfStatus emberAfReadManufacturerSpecificServerAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t * dataPtr, uint8_t readLength)

Read the manufacturer-specific server attribute value, performing all checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AmanufacturerCode
N/AdataPtr
N/AreadLength

This function will attempt to read the attribute and store it into the pointer. It will also read the data type. Both dataPtr and dataType may be NULL, signifying that either value or type is not desired.

See Also


Definition at line 368 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfReadManufacturerSpecificClientAttribute#

EmberAfStatus emberAfReadManufacturerSpecificClientAttribute (uint8_t endpoint, EmberAfClusterId cluster, EmberAfAttributeId attributeID, uint16_t manufacturerCode, uint8_t * dataPtr, uint8_t readLength)

Read the manufacturer-specific client attribute value, performing all checks.

Parameters
N/Aendpoint
N/Acluster
N/AattributeID
N/AmanufacturerCode
N/AdataPtr
N/AreadLength

This function will attempt to read the attribute and store it into the pointer. It will also read the data type. Both dataPtr and dataType may be NULL, signifying that either value or type is not desired.

See Also


Definition at line 386 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetDataSize#

uint8_t emberAfGetDataSize (uint8_t dataType)

this function returns the size of the ZCL data in bytes.

Parameters
N/AdataType

Zcl data type

Returns

  • size in bytes or 0 if invalid data type


Definition at line 399 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetOpenNetworkDurationSec#

uint8_t emberAfGetOpenNetworkDurationSec (void )

this function returns the number of seconds the network will remain open.

Parameters
N/A

Returns

  • A return value of 0 indicates that the network is closed.


Definition at line 406 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointFromIndex#

uint8_t emberAfEndpointFromIndex (uint8_t index)

Macro that takes index of endpoint, and returns Zigbee endpoint.

Parameters
N/Aindex

Definition at line 481 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIndexFromEndpoint#

uint8_t emberAfIndexFromEndpoint (uint8_t endpoint)
Parameters
N/Aendpoint

Returns the index of a given endpoint


Definition at line 486 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIndexFromEndpointIncludingDisabledEndpoints#

uint8_t emberAfIndexFromEndpointIncludingDisabledEndpoints (uint8_t endpoint)
Parameters
N/Aendpoint

Returns the index of a given endpoint; Does not ignore disabled endpoints


Definition at line 491 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindClusterClientEndpointIndex#

uint8_t emberAfFindClusterClientEndpointIndex (uint8_t endpoint, EmberAfClusterId clusterId)
Parameters
N/Aendpoint
N/AclusterId

Returns the endpoint index within a given cluster (Client-side), looking only for standard clusters.


Definition at line 497 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindClusterServerEndpointIndex#

uint8_t emberAfFindClusterServerEndpointIndex (uint8_t endpoint, EmberAfClusterId clusterId)
Parameters
N/Aendpoint
N/AclusterId

Returns the endpoint index within a given cluster (Server-side), looking only for standard clusters.


Definition at line 503 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkIndexFromEndpoint#

uint8_t emberAfNetworkIndexFromEndpoint (uint8_t endpoint)

Returns the network index of a given endpoint.

Parameters
N/Aendpoint

Definition at line 528 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointCount#

uint8_t emberAfEndpointCount (void )

Returns the total number of endpoints (dynamic and pre-compiled).

Parameters
N/A

Definition at line 546 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFixedEndpointCount#

uint8_t emberAfFixedEndpointCount (void )

Returns the number of pre-compiled endpoints.

Parameters
N/A

Definition at line 551 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetAttributeAnalogOrDiscreteType#

uint8_t emberAfGetAttributeAnalogOrDiscreteType (uint8_t dataType)

Returns the type of the attribute, either ANALOG, DISCRETE or NONE.

Parameters
N/AdataType

Definition at line 566 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsTypeSigned#

bool emberAfIsTypeSigned (EmberAfAttributeType dataType)

Returns true if type is signed, false otherwise.

Parameters
N/AdataType

Definition at line 571 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetInt32u#

uint32_t emberAfGetInt32u (const uint8_t * message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 32-bit integer from the message buffer.

Parameters
N/Amessage
N/AcurrentIndex
N/AmsgLen

Definition at line 576 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetInt24u#

uint32_t emberAfGetInt24u (const uint8_t * message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 24-bit integer from the message buffer.

Parameters
N/Amessage
N/AcurrentIndex
N/AmsgLen

Definition at line 581 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetInt16u#

uint16_t emberAfGetInt16u (const uint8_t * message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a 16-bit integer from the message buffer.

Parameters
N/Amessage
N/AcurrentIndex
N/AmsgLen

Definition at line 586 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetString#

uint8_t* emberAfGetString (uint8_t * message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a ZCL string from the message buffer.

Parameters
N/Amessage
N/AcurrentIndex
N/AmsgLen

Definition at line 590 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetLongString#

uint8_t* emberAfGetLongString (uint8_t * message, uint16_t currentIndex, uint16_t msgLen)

Function that extracts a ZCL long string from the message buffer.

Parameters
N/Amessage
N/AcurrentIndex
N/AmsgLen

Definition at line 594 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetDate#

uint8_t emberAfGetDate (uint8_t * message, uint16_t currentIndex, uint16_t msgLen, EmberAfDate * destination)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/Amessage

EmberAfCluster* to consider

N/AcurrentIndex
N/AmsgLen
N/Adestination

Definition at line 599 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyInt16u#

void emberAfCopyInt16u (uint8_t * data, uint16_t index, uint16_t x)

function that copies a uint16_t value into a buffer

Parameters
N/Adata
N/Aindex
N/Ax

Definition at line 613 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyInt24u#

void emberAfCopyInt24u (uint8_t * data, uint16_t index, uint32_t x)

function that copies a uint24_t value into a buffer

Parameters
N/Adata
N/Aindex
N/Ax

Definition at line 617 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyInt32u#

void emberAfCopyInt32u (uint8_t * data, uint16_t index, uint32_t x)

function that copies a uint32_t value into a buffer

Parameters
N/Adata
N/Aindex
N/Ax

Definition at line 621 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyString#

void emberAfCopyString (uint8_t * dest, uint8_t * src, uint8_t size)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/Adest

EmberAfCluster* to consider

N/Asrc
N/Asize

Definition at line 627 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyLongString#

void emberAfCopyLongString (uint8_t * dest, uint8_t * src, uint16_t size)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/Adest

EmberAfCluster* to consider

N/Asrc
N/Asize

Definition at line 633 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfStringLength#

uint8_t emberAfStringLength (const uint8_t * buffer)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/Abuffer

EmberAfCluster* to consider


Definition at line 638 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfLongStringLength#

uint16_t emberAfLongStringLength (const uint8_t * buffer)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/Abuffer

EmberAfCluster* to consider


Definition at line 643 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeValueSize#

uint16_t emberAfAttributeValueSize (EmberAfAttributeType dataType, const uint8_t * buffer, const uint16_t bufferSize)

macro that returns true if the cluster is in the manufacturer specific range

Parameters
N/AdataType

EmberAfCluster* to consider

N/Abuffer
N/AbufferSize

Definition at line 663 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfClusterIsManufacturerSpecific#

#define emberAfClusterIsManufacturerSpecific
Value:
(cluster)

macro that returns true if the cluster is in the manufacturer specific range


Definition at line 413 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsReadOnly#

#define emberAfAttributeIsReadOnly
Value:
(metadata)

macro that returns true if attribute is read only.


Definition at line 420 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsClient#

#define emberAfAttributeIsClient
Value:
(metadata)

macro that returns true if client attribute, and false if server.


Definition at line 427 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsTokenized#

#define emberAfAttributeIsTokenized
Value:
(metadata)

macro that returns true if attribute is saved to token.


Definition at line 434 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsExternal#

#define emberAfAttributeIsExternal
Value:
(metadata)

macro that returns true if attribute is saved in external storage.


Definition at line 441 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsSingleton#

#define emberAfAttributeIsSingleton
Value:
(metadata)

macro that returns true if attribute is a singleton


Definition at line 448 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeIsManufacturerSpecific#

#define emberAfAttributeIsManufacturerSpecific
Value:
(metadata)

macro that returns true if attribute is manufacturer specific


Definition at line 455 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAttributeSize#

#define emberAfAttributeSize
Value:
(metadata)

macro that returns size of attribute in bytes.


Definition at line 462 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfProfileIdFromIndex#

#define emberAfProfileIdFromIndex
Value:
(index)

Macro that takes index of endpoint, and returns profile Id for it.


Definition at line 508 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfDeviceIdFromIndex#

#define emberAfDeviceIdFromIndex
Value:
(index)

Macro that takes index of endpoint, and returns device Id for it.


Definition at line 513 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfDeviceVersionFromIndex#

#define emberAfDeviceVersionFromIndex
Value:
(index)

Macro that takes index of endpoint, and returns device version for it.


Definition at line 518 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkIndexFromEndpointIndex#

#define emberAfNetworkIndexFromEndpointIndex
Value:
(index)

Macro that takes index of endpoint, and returns network index for it.


Definition at line 523 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPrimaryProfileId#

#define emberAfPrimaryProfileId
Value:
()

Macro that returns primary profile ID.

Primary profile is the profile of a primary endpoint as defined in AppBuilder.


Definition at line 536 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPrimaryEndpoint#

#define emberAfPrimaryEndpoint
Value:
()

Macro that returns the primary endpoint.


Definition at line 541 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetInt8u#

#define emberAfGetInt8u
Value:
(message, currentIndex, msgLen)

Macro for consistency, that extracts single byte out of the message.


Definition at line 604 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCopyInt8u#

#define emberAfCopyInt8u
Value:
(data, index, x)

Macro for consistency that copies a uint8_t from variable into buffer.


Definition at line 609 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Device Control Documentation#

emberAfIsDeviceEnabled#

bool emberAfIsDeviceEnabled (uint8_t endpoint)

Function that checks if endpoint is enabled.

Parameters
N/Aendpoint

Zigbee endpoint number

This function returns true if device at a given endpoint is enabled. At startup all endpoints are enabled.


Definition at line 680 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsDeviceIdentifying#

bool emberAfIsDeviceIdentifying (uint8_t endpoint)

Function that checks if endpoint is identifying.

Parameters
N/Aendpoint

Zigbee endpoint number

This function returns true if device at a given endpoint is identifying.


Definition at line 690 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSetDeviceEnabled#

void emberAfSetDeviceEnabled (uint8_t endpoint, bool enabled)

Function that enables or disables an endpoint.

Parameters
N/Aendpoint

Zigbee endpoint number

N/Aenabled

By calling this function, you turn off all processing of incoming traffic for a given endpoint.


Definition at line 700 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Miscellaneous Documentation#

emberAfInvalidImageId#

const EmberAfOtaImageId emberAfInvalidImageId

This variable defines an invalid image id. It is used to determine if a returned EmberAfOtaImageId is valid or not. This is done by passing the data to the function emberAfIsOtaImageIdValid().


Definition at line 734 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEnableDisable#

bool emberAfEndpointEnableDisable (uint8_t endpoint, bool enable)

Enable/disable endpoints.

Parameters
N/Aendpoint
N/Aenable

Definition at line 710 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointIndexIsEnabled#

bool emberAfEndpointIndexIsEnabled (uint8_t index)

Determine if an endpoint at the specified index is enabled or disabled.

Parameters
N/Aindex

Definition at line 715 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsThisDataTypeAStringType#

bool emberAfIsThisDataTypeAStringType (EmberAfAttributeType dataType)

Returns true if a given ZCL data type is a string type.

Parameters
N/AdataType

You should use this function if you need to perform a different memory operation on a certain attribute because it is a string type. Since ZCL strings carry length as the first byte(s), it is often required to treat them differently than regular data types.

Returns

  • true if data type is a string.


Definition at line 746 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsStringAttributeType#

bool emberAfIsStringAttributeType (EmberAfAttributeType attributeType)

Returns true if the given attribute type is a string.

Parameters
N/AattributeType

Definition at line 749 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsLongStringAttributeType#

bool emberAfIsLongStringAttributeType (EmberAfAttributeType attributeType)

Returns true if the given attribute type is a long string.

Parameters
N/AattributeType

Definition at line 752 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNextSequence#

uint8_t emberAfNextSequence (void )

Increments the ZCL sequence number and returns the value.

Parameters
N/A

ZCL messages have sequence numbers so that they can be matched up with other messages in the transaction. To avoid conflicts with sequence numbers generated independently by the application, this API returns sequence numbers with the high bit clear. If the application generates its own sequence numbers, it should use numbers with the high bit set.

Returns

  • The next ZCL sequence number.


Definition at line 777 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetLastSequenceNumber#

uint8_t emberAfGetLastSequenceNumber (void )

Retrieves the last sequence number that was used.

Parameters
N/A

Definition at line 783 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCompareValues#

int8_t emberAfCompareValues (uint8_t * val1, uint8_t * val2, uint8_t len, bool signedNumber)

Simple integer comparison function. Compares two values of a known length as integers. Signed integer comparison are supported for numbers with length of 4 (bytes) or less. The integers are in native endianness.

Parameters
N/Aval1
N/Aval2
N/Alen
N/AsignedNumber

Returns

  • -1, if val1 is smaller 0, if they are the same or if two negative numbers with length greater than 4 is being compared 1, if val2 is smaller.


Definition at line 797 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetEui64#

void emberAfGetEui64 (EmberEUI64 returnEui64)

populates the passed EUI64 with the local EUI64 MAC address.

Parameters
N/AreturnEui64

Definition at line 802 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetNodeId#

EmberNodeId emberAfGetNodeId (void )

Returns the node ID of the local node.

Parameters
N/A

Definition at line 813 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGenerateRandomKey#

EmberStatus emberAfGenerateRandomKey (EmberKeyData * result)

Generates a random key (link, network, or master).

Parameters
N/Aresult

Definition at line 819 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetPanId#

EmberPanId emberAfGetPanId (void )

Returns the PAN ID of the local node.

Parameters
N/A

Definition at line 827 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetRadioChannel#

uint8_t emberAfGetRadioChannel (void )

Returns the radioChannel of the current network.

Parameters
N/A

Get this node's radio channel for the current network.


Definition at line 832 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetBindingIndex#

uint8_t emberAfGetBindingIndex (void )

This indicates a new image verification is taking place.

Parameters
N/A

Definition at line 838 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetAddressIndex#

uint8_t emberAfGetAddressIndex (void )

This indicates a new image verification is taking place.

Parameters
N/A

Definition at line 844 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkState#

EmberNetworkStatus emberAfNetworkState (void )

Returns the current network state. This call caches the results on the host to prevent frequent EZSP transactions.

Parameters
N/A

Definition at line 850 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetNetworkParameters#

EmberStatus emberAfGetNetworkParameters (EmberNodeType * nodeType, EmberNetworkParameters * parameters)

Returns the current network parameters.

Parameters
N/AnodeType
N/Aparameters

Definition at line 860 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetNodeType#

EmberStatus emberAfGetNodeType (EmberNodeType * nodeType)

Returns the current node type.

Parameters
N/AnodeType

Definition at line 866 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPermitJoin#

EmberStatus emberAfPermitJoin (uint8_t duration, bool broadcastMgmtPermitJoin)

Enables local permit join and optionally broadcasts the ZDO Mgmt_Permit_Join_req message. This API can be called from any device type and still return EMBER_SUCCESS. If the API is called from an end device, the permit association bit will just be left off.

Parameters
N/Aduration

the duration that the permit join bit will remain on and other devices will be able to join the current network.

N/AbroadcastMgmtPermitJoin

whether or not to broadcast the ZDO Mgmt_Permit_Join_req message.

Returns

  • status of whether or not permit join was enabled.


Definition at line 891 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfBroadcastPermitJoin#

EmberStatus emberAfBroadcastPermitJoin (uint8_t duration)

Enables local permit join and broadcasts the ZDO Mgmt_Permit_Join_req message. This API can be called from any device type and still return EMBER_SUCCESS. If the API is called from an end device, the permit association bit will just be left off.

Parameters
N/Aduration

the duration that the permit join bit will remain on and other devices will be able to join the current network.

Returns

  • status of whether or not permit join was enabled.


Definition at line 906 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_NEW_IMAGE_VERIFICATION#

#define EMBER_AF_NEW_IMAGE_VERIFICATION
Value:
true

This indicates a new image verification is taking place.


Definition at line 720 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_CONTINUE_IMAGE_VERIFY#

#define EMBER_AF_CONTINUE_IMAGE_VERIFY
Value:
false

This indicates the continuation of an image verification already in progress.


Definition at line 726 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_ZCL_SEQUENCE_MASK#

#define EMBER_AF_ZCL_SEQUENCE_MASK
Value:
0x7F

The mask applied by emberAfNextSequence when generating ZCL sequence numbers.


Definition at line 758 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_MESSAGE_TAG_MASK#

#define EMBER_AF_MESSAGE_TAG_MASK
Value:
0x7F

The mask applied to generated message tags used by the framework when sending messages via EZSP. Customers who call ezspSend functions directly must use message tags outside this mask.


Definition at line 764 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE#

#define EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE
Value:
0xA0

This indicates a new image verification is taking place.


Definition at line 870 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_DUE_TO_TC_KEEPALIVE_FAILURE#

#define EMBER_AF_REJOIN_DUE_TO_TC_KEEPALIVE_FAILURE
Value:
0xA1

This indicates a new image verification is taking place.


Definition at line 871 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_DUE_TO_CLI_COMMAND#

#define EMBER_AF_REJOIN_DUE_TO_CLI_COMMAND
Value:
0xA2

This indicates a new image verification is taking place.


Definition at line 872 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_DUE_TO_WWAH_CONNECTIVITY_MANAGER#

#define EMBER_AF_REJOIN_DUE_TO_WWAH_CONNECTIVITY_MANAGER
Value:
0xA3

This indicates a new image verification is taking place.


Definition at line 873 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_FIRST_REASON#

#define EMBER_AF_REJOIN_FIRST_REASON
Value:
EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE

This indicates a new image verification is taking place.


Definition at line 875 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_REJOIN_LAST_REASON#

#define EMBER_AF_REJOIN_LAST_REASON
Value:
EMBER_AF_REJOIN_DUE_TO_END_DEVICE_MOVE

This indicates a new image verification is taking place.


Definition at line 876 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Sleep Control Documentation#

emberAfRunEvents#

void emberAfRunEvents (void )

a function used to run the application framework's event mechanism. This function passes the application framework's event tables to the ember stack's event processing code.

Parameters
N/A

Definition at line 942 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleTickExtended#

EmberStatus emberAfScheduleTickExtended (uint8_t endpoint, EmberAfClusterId clusterId, bool isClient, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

This function is used to schedule a cluster-related event inside the application framework's event mechanism. This function provides a wrapper for the Ember stack event mechanism which allows the cluster code to access its events by their endpoint, cluster id, and client/server identity. The passed poll and sleep controls allow the cluster to indicate whether it needs to long or short poll and whether it needs to stay awake or if it can sleep.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled.

N/AclusterId

the cluster id of the event to be scheduled.

N/AisClient

EMBER_AF_CLIENT_CLUSTER_TICK if the event to be scheduled is associated with a client cluster or EMBER_AF_SERVER_CLUSTER_TICK otherwise.

N/AdelayMs

the number of milliseconds until the event should be called.

N/ApollControl

EMBER_AF_SHORT_POLL if the cluster needs to short poll or EMBER_AF_LONG_POLL otherwise.

N/AsleepControl

EMBER_AF_STAY_AWAKE if the cluster needs to stay awake or EMBER_AF_OK_TO_SLEEP otherwise.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 978 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleClusterTick#

EmberStatus emberAfScheduleClusterTick (uint8_t endpoint, EmberAfClusterId clusterId, bool isClient, uint32_t delayMs, EmberAfEventSleepControl sleepControl)

This function is used to schedule a cluster-related event inside the This function is a wrapper for emberAfScheduleTickExtended. The cluster on the given endpoint will be set to long poll if sleepControl is set to EMBER_AF_OK_TO_HIBERNATE or will be set to short poll otherwise. It will stay awake if sleepControl is EMBER_AF_STAY_AWAKE and will sleep otherwise.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled.

N/AclusterId

the cluster id of the event to be scheduled.

N/AisClient

EMBER_AF_CLIENT_CLUSTER_TICK if the event to be scheduled is associated with a client cluster or EMBER_AF_SERVER_CLUSTER_TICK otherwise.

N/AdelayMs

the number of milliseconds until the event should be called.

N/AsleepControl

the priority of the event, what the processor should be allowed to do in terms of sleeping while the event is active.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 1004 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleClientTickExtended#

EmberStatus emberAfScheduleClientTickExtended (uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

A function used to schedule a cluster client event. This function is a wrapper for emberAfScheduleTickExtended.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled

N/AclusterId

the cluster id of the event to be scheduled

N/AdelayMs

the number of milliseconds until the event should be called.

N/ApollControl

EMBER_AF_SHORT_POLL if the cluster needs to short poll or EMBER_AF_LONG_POLL otherwise.

N/AsleepControl

EMBER_AF_STAY_AWAKE if the cluster needs to stay awake or EMBER_AF_OK_TO_SLEEP otherwise.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 1024 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleClientTick#

EmberStatus emberAfScheduleClientTick (uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs)

A function used to schedule a cluster client event. This function is a wrapper for emberAfScheduleClientTickExtended. It indicates that the cluster client on the given endpoint can long poll and can sleep.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled.

N/AclusterId

the cluster id of the event to be scheduled.

N/AdelayMs

the number of milliseconds until the event should be called.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 1041 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleServerTickExtended#

EmberStatus emberAfScheduleServerTickExtended (uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs, EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)

A function used to schedule a cluster server event. This function is a wrapper for emberAfScheduleTickExtended.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled.

N/AclusterId

the cluster id of the event to be scheduled.

N/AdelayMs

the number of milliseconds until the event should be called.

N/ApollControl

EMBER_AF_SHORT_POLL if the cluster needs to short poll or EMBER_AF_LONG_POLL otherwise.

N/AsleepControl

EMBER_AF_STAY_AWAKE if the cluster needs to stay awake or EMBER_AF_OK_TO_SLEEP otherwise.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 1059 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfScheduleServerTick#

EmberStatus emberAfScheduleServerTick (uint8_t endpoint, EmberAfClusterId clusterId, uint32_t delayMs)

A function used to schedule a cluster server event. This function is a wrapper for emberAfScheduleServerTickExtended. It indicates that the cluster server on the given endpoint can long poll and can sleep.

Parameters
N/Aendpoint

the endpoint of the event to be scheduled

N/AclusterId

the cluster id of the event to be scheduled.

N/AdelayMs

the number of milliseconds until the event should be called.

Returns

  • EMBER_SUCCESS if the event was scheduled or an error otherwise.


Definition at line 1076 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfDeactivateClusterTick#

EmberStatus emberAfDeactivateClusterTick (uint8_t endpoint, EmberAfClusterId clusterId, bool isClient)

A function used to deactivate a cluster-related event. This function provides a wrapper for the Ember stack's event mechanism which allows an event to be accessed by its endpoint, cluster id, and client/server identity.

Parameters
N/Aendpoint

the endpoint of the event to be deactivated.

N/AclusterId

the cluster id of the event to be deactivated.

N/AisClient

EMBER_AF_CLIENT_CLUSTER_TICK if the event to be deactivated is a client cluster EMBER_AF_SERVER_CLUSTER_TICK otherwise.

Returns

  • EMBER_SUCCESS if the event was deactivated or an error otherwise.


Definition at line 1094 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfDeactivateClientTick#

EmberStatus emberAfDeactivateClientTick (uint8_t endpoint, EmberAfClusterId clusterId)

A function used to deactivate a cluster client event. This function is a wrapper for emberAfDeactivateClusterTick.

Parameters
N/Aendpoint

the endpoint of the event to be deactivated.

N/AclusterId

the cluster id of the event to be deactivated.

Returns

  • EMBER_SUCCESS if the event was deactivated or an error otherwise.


Definition at line 1107 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfDeactivateServerTick#

EmberStatus emberAfDeactivateServerTick (uint8_t endpoint, EmberAfClusterId clusterId)

A function used to deactivate a cluster server event. This function is a wrapper for emberAfDeactivateClusterTick.

Parameters
N/Aendpoint

the endpoint of the event to be deactivated.

N/AclusterId

the cluster id of the event to be deactivated.

Returns

  • EMBER_SUCCESS if the event was deactivated or an error otherwise.


Definition at line 1119 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEventControlSetDelayMS#

EmberStatus emberAfEventControlSetDelayMS (EmberEventControl * control, uint32_t delayMs)

Sets the EmberEventControl to run "delayMs" milliseconds in the future. This function first verifies that the delay is within the acceptable range before scheduling the event.

Parameters
N/Acontrol

a pointer to the event control.

N/AdelayMs

the number of milliseconds until the next event.

Returns

  • If delayMs is less than or equal to ::EMBER_MAX_EVENT_CONTROL_DELAY_MS, this function will schedule the event and return EMBER_SUCCESS. Otherwise it will return EMBER_BAD_ARGUMENT.


Definition at line 1135 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEventControlSetDelay#

EmberStatus emberAfEventControlSetDelay (EmberEventControl * eventControl, uint32_t delayMs)

Sets the EmberEventControl to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

Parameters
N/AeventControl
N/AdelayMs

Definition at line 1143 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEventControlSetDelayQS#

EmberStatus emberAfEventControlSetDelayQS (EmberEventControl * control, uint32_t delayQs)

Sets the EmberEventControl to run "delayQs" quarter seconds in the future. The 'quarter seconds' are actually 256 milliseconds long. This function first verifies that the delay is within the acceptable range before scheduling the event.

Parameters
N/Acontrol

a pointer to the event control.

N/AdelayQs

the number of quarter seconds until the next event.

Returns

  • If delayQs is less than or equal to ::EMBER_MAX_EVENT_CONTROL_DELAY_QS, this function will schedule the event and return EMBER_SUCCESS. Otherwise it will return EMBER_BAD_ARGUMENT.


Definition at line 1164 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEventControlSetDelayMinutes#

EmberStatus emberAfEventControlSetDelayMinutes (EmberEventControl * control, uint16_t delayM)

Sets the EmberEventControl to run "delayM" minutes in the future. The 'minutes' are actually 65536 (0x10000) milliseconds long. This function first verifies that the delay is within the acceptable range before scheduling the event.

Parameters
N/Acontrol

a pointer to the event control.

N/AdelayM

the number of minutes until the next event.

Returns

  • If delayM is less than or equal to ::EMBER_MAX_EVENT_CONTROL_DELAY_MINUTES, this function will schedule the event and return EMBER_SUCCESS. Otherwise it will return EMBER_BAD_ARGUMENT.


Definition at line 1181 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetInactive#

void emberAfNetworkEventControlSetInactive (EmberEventControl * controls)

Sets the EmberEventControl for the current network, and only the current network, as inactive. See ::emberEventControlSetInactive.

Parameters
N/Acontrols

Definition at line 1188 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlGetActive#

bool emberAfNetworkEventControlGetActive (EmberEventControl * controls)

Returns true if the event for the current network, and only the current network, is active. See ::emberEventControlGetActive.

Parameters
N/Acontrols

Definition at line 1193 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetActive#

void emberAfNetworkEventControlSetActive (EmberEventControl * controls)

Sets the EmberEventControl for the current network, and only current network, to run at the next available opportunity. See ::emberEventControlSetActive.

Parameters
N/Acontrols

Definition at line 1199 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetDelayMS#

EmberStatus emberAfNetworkEventControlSetDelayMS (EmberEventControl * controls, uint32_t delayMs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

Parameters
N/Acontrols
N/AdelayMs

Definition at line 1205 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetDelay#

EmberStatus emberAfNetworkEventControlSetDelay (EmberEventControl * controls, uint32_t delayMs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

Parameters
N/Acontrols
N/AdelayMs

Definition at line 1213 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetDelayQS#

EmberStatus emberAfNetworkEventControlSetDelayQS (EmberEventControl * controls, uint32_t delayQs)

Sets the EmberEventControl for the current network, and only the current network, to run "delayQs" quarter seconds in the future. See emberAfEventControlSetDelayQS.

Parameters
N/Acontrols
N/AdelayQs

Definition at line 1224 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfNetworkEventControlSetDelayMinutes#

EmberStatus emberAfNetworkEventControlSetDelayMinutes (EmberEventControl * controls, uint16_t delayM)

Sets the EmberEventControl for the current network, and only the current network, to run "delayM" minutes in the future. See emberAfEventControlSetDelayMinutes.

Parameters
N/Acontrols
N/AdelayM

Definition at line 1231 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetInactive#

EmberStatus emberAfEndpointEventControlSetInactive (EmberEventControl * controls, uint8_t endpoint)

Sets the EmberEventControl for the specified endpoint as inactive. See ::emberEventControlSetInactive.

Parameters
N/Acontrols
N/Aendpoint

Definition at line 1238 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlGetActive#

bool emberAfEndpointEventControlGetActive (EmberEventControl * controls, uint8_t endpoint)

Returns true if the event for the current number is active. See ::emberEventControlGetActive.

Parameters
N/Acontrols
N/Aendpoint

Definition at line 1244 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetActive#

EmberStatus emberAfEndpointEventControlSetActive (EmberEventControl * controls, uint8_t endpoint)

Sets the EmberEventControl for the specified endpoint to run at the next available opportunity. See ::emberEventControlSetActive.

Parameters
N/Acontrols
N/Aendpoint

Definition at line 1250 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetDelayMS#

EmberStatus emberAfEndpointEventControlSetDelayMS (EmberEventControl * controls, uint8_t endpoint, uint32_t delayMs)

Sets the EmberEventControl for the specified endpoint to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

Parameters
N/Acontrols
N/Aendpoint
N/AdelayMs

Definition at line 1256 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetDelay#

EmberStatus emberAfEndpointEventControlSetDelay (EmberEventControl * controls, uint8_t endpoint, uint32_t delayMs)

Sets the EmberEventControl for the specified endpoint to run "delayMs" milliseconds in the future. See emberAfEventControlSetDelayMS.

Parameters
N/Acontrols
N/Aendpoint
N/AdelayMs

Definition at line 1264 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetDelayQS#

EmberStatus emberAfEndpointEventControlSetDelayQS (EmberEventControl * controls, uint8_t endpoint, uint32_t delayQs)

Sets the EmberEventControl for the specified endpoint to run "delayQs" quarter seconds in the future. See emberAfEventControlSetDelayQS.

Parameters
N/Acontrols
N/Aendpoint
N/AdelayQs

Definition at line 1276 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfEndpointEventControlSetDelayMinutes#

EmberStatus emberAfEndpointEventControlSetDelayMinutes (EmberEventControl * controls, uint8_t endpoint, uint16_t delayM)

Sets the EmberEventControl for the specified endpoint to run "delayM" minutes in the future. See emberAfEventControlSetDelayMinutes.

Parameters
N/Acontrols
N/Aendpoint
N/AdelayM

Definition at line 1283 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfMsToNextEvent#

uint32_t emberAfMsToNextEvent (uint32_t maxMs)

A function used to retrieve the number of milliseconds until the next event scheduled in the application framework's event mechanism.

Parameters
N/AmaxMs

maximum number of milliseconds until the next event.

Returns

  • The number of milliseconds until the next event or maxMs if no event is scheduled before then.


Definition at line 1296 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfMsToNextEventExtended#

uint32_t emberAfMsToNextEventExtended (uint32_t maxMs, uint8_t * returnIndex)

This is the same as the function emberAfMsToNextEvent() with the following addition. If returnIndex is non-NULL it returns the index of the event that is ready to fire next.

Parameters
N/AmaxMs
N/AreturnIndex

Definition at line 1302 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAddToCurrentAppTasks#

#define emberAfAddToCurrentAppTasks
Value:
(x)

A function used to add a task to the task register.


Definition at line 920 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfRemoveFromCurrentAppTasks#

#define emberAfRemoveFromCurrentAppTasks
Value:
(x)

A function used to remove a task from the task register.


Definition at line 926 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCurrentAppTasks#

#define emberAfCurrentAppTasks
Value:
()

A macro used to retrieve the bitmask of all application frameowrk tasks currently in progress. This can be useful for debugging if some task is holding the device out of hibernation.


Definition at line 934 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_CLIENT_CLUSTER_TICK#

#define EMBER_AF_CLIENT_CLUSTER_TICK
Value:
true

Friendly define for use in the scheduling or canceling client events with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().


Definition at line 948 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_SERVER_CLUSTER_TICK#

#define EMBER_AF_SERVER_CLUSTER_TICK
Value:
false

Friendly define for use in the scheduling or canceling server events with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().


Definition at line 954 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfQSToNextEvent#

#define emberAfQSToNextEvent
Value:
(emberAfMsToNextEvent(maxQS * MILLISECOND_TICKS_PER_QUARTERSECOND) \
/ MILLISECOND_TICKS_PER_QUARTERSECOND)

A function used to retrieve the number of quarter seconds until the next event scheduled in the application framework's event mechanism. This function will round down and will return 0 if the next event must fire within a quarter second.

Returns

  • The number of quarter seconds until the next event or maxQS if no event is scheduled before then.


Definition at line 1314 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetCurrentSleepControl#

#define emberAfGetCurrentSleepControl
Value:
()

A function for retrieving the most restrictive sleep control value for all scheduled events. This function is used by emberAfOkToNap and emberAfOkToHibernate to makes sure that there are no events scheduled which will keep the device from hibernating or napping.

Returns

  • The most restrictive sleep control value for all scheduled events or the value returned by emberAfGetDefaultSleepControl() if no events are currently scheduled. The default sleep control value is initialized to EMBER_AF_OK_TO_HIBERNATE but can be changed at any time using the emberAfSetDefaultSleepControl() function.


Definition at line 1332 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSetDefaultSleepControl#

#define emberAfSetDefaultSleepControl
Value:
(x)

A function for setting the default sleep control value against which all scheduled event sleep control values will be evaluated. This can be used to keep a device awake for an extended period of time by setting the default to EMBER_AF_STAY_AWAKE and then resetting the value to EMBER_AF_OK_TO_HIBERNATE once the wake period is complete.


Definition at line 1344 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetDefaultSleepControl#

#define emberAfGetDefaultSleepControl
Value:
()

A function used to retrieve the default sleep control against which all event sleep control values are evaluated. The default sleep control value is initialized to EMBER_AF_OK_TO_HIBERNATE but can be changed by the application at any time using the emberAfSetDefaultSleepControl() function.

Returns

  • The current default sleep control value.


Definition at line 1355 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Messaging Documentation#

emberAfSendResponse#

EmberStatus emberAfSendResponse (void )

This function sends a ZCL response, based on the information that is currently in the outgoing buffer. It is expected that a complete ZCL message is present, including header. The application may use this method directly from within the message handling function and associated callbacks. However this will result in the response being sent before the APS Ack is sent which is not ideal.

Parameters
N/A

NOTE: This will overwrite the ZCL sequence number of the message to use the LAST received sequence number.


Definition at line 1375 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendResponseWithCallback#

EmberStatus emberAfSendResponseWithCallback (EmberAfMessageSentFunction callback)

Send ZCL response with attached message sent callback.

Parameters
N/Acallback

Definition at line 1380 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendMulticast#

EmberStatus emberAfSendMulticast (EmberMulticastId multicastId, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message)

Sends multicast.

Parameters
N/AmulticastId
N/AapsFrame
N/AmessageLength
N/Amessage

Definition at line 1385 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendMulticastToBindings#

EmberStatus emberAfSendMulticastToBindings (EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message)

Multicasts the message to the group in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic. Care should be taken when considering the effects of broadcasts in a network.

Parameters
N/AapsFrame
N/AmessageLength
N/Amessage

Definition at line 1397 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendMulticastWithAliasWithCallback#

EmberStatus emberAfSendMulticastWithAliasWithCallback (EmberMulticastId multicastId, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

Sends Multicast with alias with attached message sent callback.

Parameters
N/AmulticastId
N/AapsFrame
N/AmessageLength
N/Amessage
N/Aalias
N/Asequence
N/Acallback

Definition at line 1404 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendMulticastWithCallback#

EmberStatus emberAfSendMulticastWithCallback (EmberMulticastId multicastId, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberAfMessageSentFunction callback)

Sends multicast with attached message sent callback.

Parameters
N/AmulticastId
N/AapsFrame
N/AmessageLength
N/Amessage
N/Acallback

Definition at line 1415 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendBroadcast#

EmberStatus emberAfSendBroadcast (EmberNodeId destination, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message)

Sends broadcast.

Parameters
N/Adestination
N/AapsFrame
N/AmessageLength
N/Amessage

Definition at line 1424 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendBroadcastWithCallback#

EmberStatus emberAfSendBroadcastWithCallback (EmberNodeId destination, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberAfMessageSentFunction callback)

Sends broadcast with attached message sent callback.

Parameters
N/Adestination
N/AapsFrame
N/AmessageLength
N/Amessage
N/Acallback

Definition at line 1432 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendBroadcastWithAliasWithCallback#

EmberStatus emberAfSendBroadcastWithAliasWithCallback (EmberNodeId destination, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

Sends broadcast with alias with attached message sent callback.

Parameters
N/Adestination
N/AapsFrame
N/AmessageLength
N/Amessage
N/Aalias
N/Asequence
N/Acallback

Definition at line 1441 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendUnicast#

EmberStatus emberAfSendUnicast (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message)

Sends unicast.

Parameters
N/Atype
N/AindexOrDestination
N/AapsFrame
N/AmessageLength
N/Amessage

Definition at line 1452 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendUnicastWithCallback#

EmberStatus emberAfSendUnicastWithCallback (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberAfMessageSentFunction callback)

Sends unicast with attached message sent callback.

Parameters
N/Atype
N/AindexOrDestination
N/AapsFrame
N/AmessageLength
N/Amessage
N/Acallback

Definition at line 1461 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendUnicastToBindings#

EmberStatus emberAfSendUnicastToBindings (EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message)

Unicasts the message to each remote node in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic.

Parameters
N/AapsFrame
N/AmessageLength
N/Amessage

Definition at line 1474 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendUnicastToBindingsWithCallback#

EmberStatus emberAfSendUnicastToBindingsWithCallback (EmberApsFrame * apsFrame, uint16_t messageLength, uint8_t * message, EmberAfMessageSentFunction callback)

emberAfSendUnicastToBindings with attached message sent callback.

Parameters
N/AapsFrame
N/AmessageLength
N/Amessage
N/Acallback

Definition at line 1481 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendInterPan#

EmberStatus emberAfSendInterPan (EmberPanId panId, const EmberEUI64 destinationLongId, EmberNodeId destinationShortId, EmberMulticastId multicastId, EmberAfClusterId clusterId, EmberAfProfileId profileId, uint16_t messageLength, uint8_t * messageBytes)

Sends interpan message.

Parameters
N/ApanId
N/AdestinationLongId
N/AdestinationShortId
N/AmulticastId
N/AclusterId
N/AprofileId
N/AmessageLength
N/AmessageBytes

Definition at line 1489 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendEndDeviceBind#

EmberStatus emberAfSendEndDeviceBind (uint8_t endpoint)

Sends end device binding request.

Parameters
N/Aendpoint

Definition at line 1501 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandUnicastToBindings#

EmberStatus emberAfSendCommandUnicastToBindings (void )

Sends the command prepared with emberAfFill.... macro.

Parameters
N/A

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent as unicast to each remote node in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic.


Definition at line 1513 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandUnicastToBindingsWithCallback#

EmberStatus emberAfSendCommandUnicastToBindingsWithCallback (EmberAfMessageSentFunction callback)

emberAfSendCommandUnicastToBindings with attached message sent callback.

Parameters
N/Acallback

Definition at line 1518 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandMulticast#

EmberStatus emberAfSendCommandMulticast (EmberMulticastId multicastId)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/AmulticastId

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent as multicast.


Definition at line 1527 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandMulticastWithAlias#

EmberStatus emberAfSendCommandMulticastWithAlias (EmberMulticastId multicastId, EmberNodeId alias, uint8_t sequence)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/AmulticastId
N/Aalias
N/Asequence

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent as multicast.


Definition at line 1536 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandMulticastWithCallback#

EmberStatus emberAfSendCommandMulticastWithCallback (EmberMulticastId multicastId, EmberAfMessageSentFunction callback)

emberAfSendCommandMulticast with attached message sent callback.

Parameters
N/AmulticastId
N/Acallback

Definition at line 1541 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandMulticastToBindings#

EmberStatus emberAfSendCommandMulticastToBindings (void )

Sends the command prepared with emberAfFill.... macro.

Parameters
N/A

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent as multicast to the group specified in the binding table that matches the cluster and source endpoint in the APS frame. Note: if the binding table contains many matching entries, calling this API cause a significant amount of network traffic.


Definition at line 1554 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandUnicast#

EmberStatus emberAfSendCommandUnicast (EmberOutgoingMessageType type, uint16_t indexOrDestination)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/Atype
N/AindexOrDestination

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent as unicast.


Definition at line 1562 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandUnicastWithCallback#

EmberStatus emberAfSendCommandUnicastWithCallback (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberAfMessageSentFunction callback)

emberAfSendCommandUnicast with attached message sent callback.

Parameters
N/Atype
N/AindexOrDestination
N/Acallback

Definition at line 1568 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandBroadcast#

EmberStatus emberAfSendCommandBroadcast (EmberNodeId destination)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/Adestination

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API.


Definition at line 1578 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandBroadcastWithCallback#

EmberStatus emberAfSendCommandBroadcastWithCallback (EmberNodeId destination, EmberAfMessageSentFunction callback)

emberAfSendCommandBroadcast with attached message sent callback.

Parameters
N/Adestination
N/Acallback

Definition at line 1583 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandBroadcastWithAliasWithCallback#

EmberStatus emberAfSendCommandBroadcastWithAliasWithCallback (EmberNodeId destination, EmberNodeId alias, uint8_t sequence, EmberAfMessageSentFunction callback)

emberAfSendCommandBroadcast from alias with attached message sent callback.

Parameters
N/Adestination
N/Aalias
N/Asequence
N/Acallback

Definition at line 1589 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandBroadcastWithAlias#

EmberStatus emberAfSendCommandBroadcastWithAlias (EmberNodeId destination, EmberNodeId alias, uint8_t sequence)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/Adestination
N/Aalias
N/Asequence

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API.


Definition at line 1600 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendCommandInterPan#

EmberStatus emberAfSendCommandInterPan (EmberPanId panId, const EmberEUI64 destinationLongId, EmberNodeId destinationShortId, EmberMulticastId multicastId, EmberAfProfileId profileId)

Sends the command prepared with emberAfFill.... macro.

Parameters
N/ApanId
N/AdestinationLongId
N/AdestinationShortId
N/AmulticastId
N/AprofileId

This function is used to send a command that was previously prepared using the emberAfFill... macros from the client command API. It will be sent via inter-PAN. If destinationLongId is not NULL, the message will be sent to that long address using long addressing mode; otherwise, the message will be sent to destinationShortId using short address mode. IF multicastId is not zero, the message will be sent using multicast mode.


Definition at line 1613 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendDefaultResponse#

EmberStatus emberAfSendDefaultResponse (const EmberAfClusterCommand * cmd, EmberAfStatus status)

Sends a default response to a cluster command.

Parameters
N/Acmd

The cluster command to which to respond.

N/Astatus

Status code for the default response command.

This function is used to prepare and send a default response to a cluster command.

Returns

  • An EmberStatus value that indicates the success or failure of sending the response.


Definition at line 1630 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendDefaultResponseWithCallback#

EmberStatus emberAfSendDefaultResponseWithCallback (const EmberAfClusterCommand * cmd, EmberAfStatus status, EmberAfMessageSentFunction callback)

emberAfSendDefaultResponse with attached message sent callback.

Parameters
N/Acmd
N/Astatus
N/Acallback

Definition at line 1636 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendImmediateDefaultResponse#

EmberStatus emberAfSendImmediateDefaultResponse (EmberAfStatus status)

Sends a default response to a cluster command using the current command.

Parameters
N/Astatus

Status code for the default response command.

This function is used to prepare and send a default response to a cluster command.

Returns

  • An EmberStatus value that indicates the success or failure of sending the response.


Definition at line 1651 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSendImmediateDefaultResponseWithCallback#

EmberStatus emberAfSendImmediateDefaultResponseWithCallback (EmberAfStatus status, EmberAfMessageSentFunction callback)

emberAfSendImmediateDefaultResponse with attached message sent callback.

Parameters
N/Astatus
N/Acallback

Definition at line 1656 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfMaximumApsPayloadLength#

uint8_t emberAfMaximumApsPayloadLength (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame * apsFrame)

Returns the maximum size of the payload that the Application Support sub-layer will accept for the given message type, destination, and APS frame.

Parameters
N/Atype

The outgoing message type.

N/AindexOrDestination

Depending on the message type, this is either the EmberNodeId of the destination, an index into the address table, an index into the binding table, the multicast identifier, or a broadcast address.

N/AapsFrame

The APS frame for the message.

The size depends on multiple factors, including the security level in use and additional information added to the message to support the various options.

Returns

  • The maximum APS payload length for the given message.


Definition at line 1675 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfGetCommandApsFrame#

EmberApsFrame* emberAfGetCommandApsFrame (void )

Access to client API APS frame.

Parameters
N/A

Definition at line 1682 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSetCommandEndpoints#

void emberAfSetCommandEndpoints (uint8_t sourceEndpoint, uint8_t destinationEndpoint)

Set the source and destination endpoints in the client API APS frame.

Parameters
N/AsourceEndpoint
N/AdestinationEndpoint

Definition at line 1687 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindDevicesByProfileAndCluster#

EmberStatus emberAfFindDevicesByProfileAndCluster (EmberNodeId target, EmberAfProfileId profileId, EmberAfClusterId clusterId, bool serverCluster, EmberAfServiceDiscoveryCallback * callback)

Use this function to find devices in the network with endpoints matching a given profile ID and cluster ID in their descriptors. Target may either be a specific device, or the broadcast address EMBER_RX_ON_WHEN_IDLE_BROADCAST_ADDRESS.

Parameters
N/Atarget

The destination node ID for the discovery; either a specific node's ID or EMBER_RX_ON_WHEN_IDLE_BROADCAST_ADDRESS.

N/AprofileId

The application profile for the cluster being discovered.

N/AclusterId

The cluster being discovered.

N/AserverCluster

EMBER_AF_SERVER_CLUSTER_DISCOVERY (true) if discovering servers for the target cluster; EMBER_AF_CLIENT_CLUSTER_DISCOVERY (false) if discovering clients for that cluster.

N/Acallback

Function pointer for the callback function triggered when a match is discovered. (For broadcast discoveries, this is called once per matching node, even if a node has multiple matching endpoints.)

With this function a service discovery is initiated and received responses are returned by executing the callback function passed in. For unicast discoveries, the callback will be executed only once. Either the target will return a result or a timeout will occur. For broadcast discoveries, the callback may be called multiple times and after a period of time the discovery will be finished with a final call to the callback.


Definition at line 1726 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindClustersByDeviceAndEndpoint#

EmberStatus emberAfFindClustersByDeviceAndEndpoint (EmberNodeId target, uint8_t targetEndpoint, EmberAfServiceDiscoveryCallback * callback)

Use this function to find all of the given in and out clusters implemented on a devices given endpoint. Target should only be the short address of a specific device.

Parameters
N/Atarget

The destination node ID for the discovery. This should be a specific node's ID and should not be a broadcast address.

N/AtargetEndpoint

The endpoint to target with the discovery process.

N/Acallback

Function pointer for the callback function triggered when the discovery is returned.

With this function a single service discovery is initiated and the response is passed back to the passed callback.


Definition at line 1746 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindIeeeAddress#

EmberStatus emberAfFindIeeeAddress (EmberNodeId shortAddress, EmberAfServiceDiscoveryCallback * callback)

Use this function to initiate a discovery for the IEEE address of the specified node id. This will send a unicast sent to the target node ID.

Parameters
N/AshortAddress
N/Acallback

Definition at line 1755 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindNodeId#

EmberStatus emberAfFindNodeId (EmberEUI64 longAddress, EmberAfServiceDiscoveryCallback * callback)

Use this function to initiate a discovery for the short ID of the specified long address. This will send a broadcast to all rx-on-when-idle devices (non-sleepies).

Parameters
N/AlongAddress
N/Acallback

Definition at line 1763 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindActiveEndpoints#

EmberStatus emberAfFindActiveEndpoints (EmberNodeId target, EmberAfServiceDiscoveryCallback * callback)

Initiate an Active Endpoint request ZDO message to the target node ID.

Parameters
N/Atarget
N/Acallback

Definition at line 1769 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfAddAddressTableEntry#

uint8_t emberAfAddAddressTableEntry (EmberEUI64 longId, EmberNodeId shortId)

Use this function to add an entry for a remote device to the address table.

Parameters
N/AlongId

The EUI64 of the remote device.

N/AshortId

The node id of the remote device or EMBER_UNKNOWN_NODE_ID if the node id is currently unknown.

If the EUI64 already exists in the address table, the index of the existing entry will be returned. Otherwise, a new entry will be created and the new new index will be returned. The framework will remember how many times the returned index has been referenced. When the address table entry is no longer needed, the application should remove its reference by calling emberAfRemoveAddressTableEntry.

Returns

  • The index of the address table entry for this remove device or EMBER_NULL_ADDRESS_TABLE_INDEX if an error occurred (e.g., the address table is full).


Definition at line 1790 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfSetAddressTableEntry#

EmberStatus emberAfSetAddressTableEntry (uint8_t index, EmberEUI64 longId, EmberNodeId shortId)

Use this function to add an entry for a remote device to the address table at a specific location.

Parameters
N/Aindex

The index of the address table entry.

N/AlongId

The EUI64 of the remote device.

N/AshortId

The node id of the remote device or EMBER_UNKNOWN_NODE_ID if the node id is currently unknown.

The framework will remember how many times an address table index has been referenced through emberAfAddAddressTableEntry. If the reference count for the index passed to this function is not zero, the entry will be not changed. When the address table entry is no longer needed, the application should remove its reference by calling emberAfRemoveAddressTableEntry.

Returns


Definition at line 1812 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfRemoveAddressTableEntry#

EmberStatus emberAfRemoveAddressTableEntry (uint8_t index)

Use this function to remove a specific entry from the address table.

Parameters
N/Aindex

The index of the address table entry.

The framework will remember how many times an address table index has been referenced through emberAfAddAddressTableEntry and emberAfSetAddressTableEntry. The address table entry at this index will not actually be removed until its reference count reaches zero.

Returns


Definition at line 1828 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfInitiateKeyEstablishment#

EmberStatus emberAfInitiateKeyEstablishment (EmberNodeId nodeId, uint8_t endpoint)

Use this function to initiate key establishment with a remote node. emberAfKeyEstablishmentCallback will be called as events occur and when key establishment completes.

Parameters
N/AnodeId

The node id of the remote device.

N/Aendpoint

The endpoint on the remote device.

Returns


Definition at line 1859 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfInitiateInterPanKeyEstablishment#

EmberStatus emberAfInitiateInterPanKeyEstablishment (EmberPanId panId, const EmberEUI64 eui64)

Use this function to initiate key establishment with a remote node on a different PAN. emberAfInterPanKeyEstablishmentCallback will be called as events occur and when key establishment completes.

Parameters
N/ApanId

The PAN id of the remote device.

N/Aeui64

The EUI64 of the remote device.

Returns


Definition at line 1869 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPerformingKeyEstablishment#

bool emberAfPerformingKeyEstablishment (void )

Use this function to tell if the device is in the process of performing key establishment.

Parameters
N/A

Returns

  • ::true if key establishment is in progress.


Definition at line 1877 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfInitiatePartnerLinkKeyExchange#

EmberStatus emberAfInitiatePartnerLinkKeyExchange (EmberNodeId target, uint8_t endpoint, EmberAfPartnerLinkKeyExchangeCallback * callback)

Use this function to initiate partner link key exchange with a remote node.

Parameters
N/Atarget

The node id of the remote device.

N/Aendpoint

The key establishment endpoint of the remote device.

N/Acallback

The callback that should be called when the partner link key exchange completes.

Returns

  • EMBER_SUCCESS if the partner link key exchange was initiated successfully.


Definition at line 1889 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfIsCurrentSecurityProfileSmartEnergy#

bool emberAfIsCurrentSecurityProfileSmartEnergy (void )

Use this function to determine if the security profile of the current network was set to Smart Energy. The security profile is configured in AppBuilder. @ return true if the security profile is Smart Energy or false otherwise.

Parameters
N/A

Definition at line 1908 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_CLIENT_CLUSTER_DISCOVERY#

#define EMBER_AF_CLIENT_CLUSTER_DISCOVERY
Value:
false

Friendly define for use in discovering client clusters with emberAfFindDevicesByProfileAndCluster().


Definition at line 1693 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_SERVER_CLUSTER_DISCOVERY#

#define EMBER_AF_SERVER_CLUSTER_DISCOVERY
Value:
true

Friendly define for use in discovering server clusters with emberAfFindDevicesByProfileAndCluster().


Definition at line 1699 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfCurrentEndpoint#

#define emberAfCurrentEndpoint
Value:
()

returns the current endpoint that is being served.

The purpose of this macro is mostly to access endpoint that is being served in the command callbacks.


Definition at line 1848 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL macros Documentation#

ZCL_FRAME_CONTROL_FRAME_TYPE_MASK#

#define ZCL_FRAME_CONTROL_FRAME_TYPE_MASK
Value:
(BIT(0) | BIT(1))

Definition at line 1916 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_CLUSTER_SPECIFIC_COMMAND#

#define ZCL_CLUSTER_SPECIFIC_COMMAND
Value:
BIT(0)

Definition at line 1917 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_PROFILE_WIDE_COMMAND#

#define ZCL_PROFILE_WIDE_COMMAND
Value:
0

Definition at line 1918 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_GLOBAL_COMMAND#

#define ZCL_GLOBAL_COMMAND
Value:
(ZCL_PROFILE_WIDE_COMMAND)

Definition at line 1919 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_MANUFACTURER_SPECIFIC_MASK#

#define ZCL_MANUFACTURER_SPECIFIC_MASK
Value:
BIT(2)

Definition at line 1921 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_FRAME_CONTROL_DIRECTION_MASK#

#define ZCL_FRAME_CONTROL_DIRECTION_MASK
Value:
BIT(3)

Definition at line 1923 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_FRAME_CONTROL_SERVER_TO_CLIENT#

#define ZCL_FRAME_CONTROL_SERVER_TO_CLIENT
Value:
BIT(3)

Definition at line 1924 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_FRAME_CONTROL_CLIENT_TO_SERVER#

#define ZCL_FRAME_CONTROL_CLIENT_TO_SERVER
Value:
0

Definition at line 1925 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_DISABLE_DEFAULT_RESPONSE_MASK#

#define ZCL_DISABLE_DEFAULT_RESPONSE_MASK
Value:
BIT(4)

Definition at line 1927 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_DIRECTION_CLIENT_TO_SERVER#

#define ZCL_DIRECTION_CLIENT_TO_SERVER
Value:
0

Definition at line 1930 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

ZCL_DIRECTION_SERVER_TO_CLIENT#

#define ZCL_DIRECTION_SERVER_TO_CLIENT
Value:
1

Definition at line 1931 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_ZCL_OVERHEAD#

#define EMBER_AF_ZCL_OVERHEAD
Value:
3

Definition at line 1937 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

EMBER_AF_ZCL_MANUFACTURER_SPECIFIC_OVERHEAD#

#define EMBER_AF_ZCL_MANUFACTURER_SPECIFIC_OVERHEAD
Value:
5

Definition at line 1938 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

FIND_AND_JOIN_MODE_ALLOW_2_4_GHZ#

#define FIND_AND_JOIN_MODE_ALLOW_2_4_GHZ
Value:
BIT(0)

Definition at line 1941 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

FIND_AND_JOIN_MODE_ALLOW_SUB_GHZ#

#define FIND_AND_JOIN_MODE_ALLOW_SUB_GHZ
Value:
BIT(1)

Definition at line 1942 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

FIND_AND_JOIN_MODE_ALLOW_BOTH#

#define FIND_AND_JOIN_MODE_ALLOW_BOTH
Value:
(FIND_AND_JOIN_MODE_ALLOW_2_4_GHZ | FIND_AND_JOIN_MODE_ALLOW_SUB_GHZ)

Definition at line 1943 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Network utility functions Documentation#

emberAfFormNetwork#

EmberStatus emberAfFormNetwork (EmberNetworkParameters * parameters)

Use this function to form a new network using the specified network parameters.

Parameters
N/Aparameters

Specification of the new network.

Returns

  • An EmberStatus value that indicates either the successful formation of the new network or the reason that the network formation failed.


Definition at line 1957 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfJoinNetwork#

EmberStatus emberAfJoinNetwork (EmberNetworkParameters * parameters)

Use this function to associate with the network using the specified network parameters.

Parameters
N/Aparameters

Specification of the network with which the node should associate.

Returns

  • An EmberStatus value that indicates either that the association process began successfully or the reason for failure.


Definition at line 1967 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfFindUnusedPanIdAndForm#

EmberStatus emberAfFindUnusedPanIdAndForm (void )

Use this function to find an unused PAN id and form a new network.

Parameters
N/A

Returns

  • An EmberStatus value that indicates either the process begin successfully or the reason for failure.


Definition at line 1975 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfStartSearchForJoinableNetwork#

EmberStatus emberAfStartSearchForJoinableNetwork (void )

Use this function to find a joinable network and join it.

Parameters
N/A

Returns

  • An EmberStatus value that indicates either the process begin successfully or the reason for failure.


Definition at line 1981 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPushNetworkIndex#

EmberStatus emberAfPushNetworkIndex (uint8_t networkIndex)

Sets the current network to that of the given index and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Parameters
N/AnetworkIndex

Definition at line 1992 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPushCallbackNetworkIndex#

EmberStatus emberAfPushCallbackNetworkIndex (void )

Sets the current network to the callback network and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Parameters
N/A

Definition at line 1998 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPushEndpointNetworkIndex#

EmberStatus emberAfPushEndpointNetworkIndex (uint8_t endpoint)

Sets the current network to that of the given endpoint and adds it to the stack of networks maintained by the framework. Every call to this API must be paired with a subsequent call to emberAfPopNetworkIndex.

Parameters
N/Aendpoint

Definition at line 2004 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPopNetworkIndex#

EmberStatus emberAfPopNetworkIndex (void )

Removes the topmost network from the stack of networks maintained by the framework and sets the current network to the new topmost network. Every call to this API must be paired with a prior call to emberAfPushNetworkIndex, emberAfPushCallbackNetworkIndex, or emberAfPushEndpointNetworkIndex.

Parameters
N/A

Definition at line 2012 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPrimaryEndpointForNetworkIndex#

uint8_t emberAfPrimaryEndpointForNetworkIndex (uint8_t networkIndex)

Returns the primary endpoint of the given network index or 0xFF if no endpoints belong to the network.

Parameters
N/AnetworkIndex

Definition at line 2017 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfPrimaryEndpointForCurrentNetworkIndex#

uint8_t emberAfPrimaryEndpointForCurrentNetworkIndex (void )

Returns the primary endpoint of the current network index or 0xFF if no endpoints belong to the current network.

Parameters
N/A

Definition at line 2022 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfMainInit#

void emberAfMainInit (void )

Basic initialization API to be invoked before emberAfMain.

Parameters
N/A

Definition at line 2036 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

emberAfMain#

int emberAfMain (MAIN_FUNCTION_PARAMETERS )

This function effectively serves as the application main.

Parameters
N/A

Definition at line 2040 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h

Macro Definition Documentation#

CONFIGURATION_HEADER#

#define CONFIGURATION_HEADER
Value:
"app/framework/util/config.h"

Definition at line 34 of file /Users/vihuszar/Git/EmbeddedSoftware/super/protocol/zigbee/app/framework/include/af.h