Application Framework Common#
Application framework common.
Declare all required application framework globals, initialize the Connect stack, and dispatch stack callbacks calls as needed to the application components.
Callbacks#
Application Framework Initialization Callback.
Application Framework Tick Callback.
Application framework equivalent of emberStackStatusHandler.
Application framework equivalent of emberIncomingMessageHandler.
Application framework equivalent of emberIncomingMacMessageHandler.
Application framework equivalent of emberMessageSentHandler.
Application framework equivalent of emberMacMessageSentHandler.
Application framework equivalent of emberChildJoinHandler.
Application framework equivalent of emberActiveScanCompleteHandler.
Application framework equivalent of emberEnergyScanCompleteHandler.
Application framework equivalent of ::emberMarkApplicationBuffersHandler.
Application framework equivalent of emberIncomingBeaconHandler.
Application framework equivalent of emberFrequencyHoppingStartClientCompleteHandler.
Application framework equivalent of emberRadioNeedsCalibratingHandler.
Application framework equivalent of emberStackIdleHandler.
Application framework Low Power notification Callback.
Functions#
Allocate a new event to the app event table.
Callbacks Documentation#
emberAfInitCallback#
void emberAfInitCallback (void )
Application Framework Initialization Callback.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
A callback invoked once during the initialization. It is called after the stack and plugins initialization.
emberAfTickCallback#
void emberAfTickCallback (void )
Application Framework Tick Callback.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
A callback invoked in each iteration of the application super loop and can be used to perform periodic functions. The frequency with which this function is called depends on how quickly the main loop runs. If the application blocks at any time during the main loop, this function will not be called until execution resumes.
emberAfStackStatusCallback#
void emberAfStackStatusCallback (EmberStatus status)
Application framework equivalent of emberStackStatusHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status |
emberAfIncomingMessageCallback#
void emberAfIncomingMessageCallback (EmberIncomingMessage * message)
Application framework equivalent of emberIncomingMessageHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberIncomingMessage * | N/A | message |
emberAfIncomingMacMessageCallback#
void emberAfIncomingMacMessageCallback (EmberIncomingMacMessage * message)
Application framework equivalent of emberIncomingMacMessageHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberIncomingMacMessage * | N/A | message |
emberAfMessageSentCallback#
void emberAfMessageSentCallback (EmberStatus status, EmberOutgoingMessage * message)
Application framework equivalent of emberMessageSentHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status | |
EmberOutgoingMessage * | N/A | message |
emberAfMacMessageSentCallback#
void emberAfMacMessageSentCallback (EmberStatus status, EmberOutgoingMacMessage * message)
Application framework equivalent of emberMacMessageSentHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status | |
EmberOutgoingMacMessage * | N/A | message |
emberAfChildJoinCallback#
void emberAfChildJoinCallback (EmberNodeType nodeType, EmberNodeId nodeId)
Application framework equivalent of emberChildJoinHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberNodeType | N/A | nodeType | |
EmberNodeId | N/A | nodeId |
Warnings
Requires the parent support plugin installed.
emberAfActiveScanCompleteCallback#
void emberAfActiveScanCompleteCallback (void )
Application framework equivalent of emberActiveScanCompleteHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emberAfEnergyScanCompleteCallback#
void emberAfEnergyScanCompleteCallback (int8_t mean, int8_t min, int8_t max, uint16_t variance)
Application framework equivalent of emberEnergyScanCompleteHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
int8_t | N/A | mean | |
int8_t | N/A | min | |
int8_t | N/A | max | |
uint16_t | N/A | variance |
emberAfMarkApplicationBuffersCallback#
void emberAfMarkApplicationBuffersCallback (void )
Application framework equivalent of ::emberMarkApplicationBuffersHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emberAfIncomingBeaconCallback#
void emberAfIncomingBeaconCallback (EmberPanId panId, EmberMacAddress * source, int8_t rssi, bool permitJoining, uint8_t beaconFieldsLength, uint8_t * beaconFields, uint8_t beaconPayloadLength, uint8_t * beaconPayload)
Application framework equivalent of emberIncomingBeaconHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberPanId | N/A | panId | |
EmberMacAddress * | N/A | source | |
int8_t | N/A | rssi | |
bool | N/A | permitJoining | |
uint8_t | N/A | beaconFieldsLength | |
uint8_t * | N/A | beaconFields | |
uint8_t | N/A | beaconPayloadLength | |
uint8_t * | N/A | beaconPayload |
emberAfFrequencyHoppingStartClientCompleteCallback#
void emberAfFrequencyHoppingStartClientCompleteCallback (EmberStatus status)
Application framework equivalent of emberFrequencyHoppingStartClientCompleteHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status |
emberAfRadioNeedsCalibratingCallback#
void emberAfRadioNeedsCalibratingCallback (void )
Application framework equivalent of emberRadioNeedsCalibratingHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emberAfStackIdleCallback#
bool emberAfStackIdleCallback (uint32_t * idleTimeMs)
Application framework equivalent of emberStackIdleHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | N/A | idleTimeMs |
emberAfCommonOkToEnterLowPowerCallback#
bool emberAfCommonOkToEnterLowPowerCallback (bool enter_em2, uint32_t duration_ms)
Application framework Low Power notification Callback.
Type | Direction | Argument Name | Description |
---|---|---|---|
bool | [in] | enter_em2 | true if the system is about to sleep or false to idle. |
uint32_t | [in] | duration_ms | Duration of the low power period. Time to the next event. |
A callback invoked when the system is about to go sleeping.
Returns
true if the application allows the system to go to sleep.
Function Documentation#
emberAfAllocateEvent#
EmberStatus emberAfAllocateEvent (EmberEventControl ** control, void(*)(void) handler)
Allocate a new event to the app event table.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberEventControl ** | [out] | control | The EmberEventControl to allocate |
void(*)(void) | [in] | handler | Pointer to the handler function associated to the event |
Returns
An EmberStatus value of:
EMBER_SUCCESS if the event was successfully allocated.
EMBER_TABLE_FULL if no more event could be allocated.
See Also