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#
Get the last reset cause mask.
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.
53
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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.
64
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfStackStatusCallback#
void emberAfStackStatusCallback (EmberStatus status)
Application framework equivalent of emberStackStatusHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status |
68
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfIncomingMessageCallback#
void emberAfIncomingMessageCallback (EmberIncomingMessage * message)
Application framework equivalent of emberIncomingMessageHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberIncomingMessage * | N/A | message |
72
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfIncomingMacMessageCallback#
void emberAfIncomingMacMessageCallback (EmberIncomingMacMessage * message)
Application framework equivalent of emberIncomingMacMessageHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberIncomingMacMessage * | N/A | message |
76
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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 |
80
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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 |
85
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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.
91
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfActiveScanCompleteCallback#
void emberAfActiveScanCompleteCallback (void )
Application framework equivalent of emberActiveScanCompleteHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
96
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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 |
100
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfMarkApplicationBuffersCallback#
void emberAfMarkApplicationBuffersCallback (void )
Application framework equivalent of ::emberMarkApplicationBuffersHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
107
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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 |
111
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfFrequencyHoppingStartClientCompleteCallback#
void emberAfFrequencyHoppingStartClientCompleteCallback (EmberStatus status)
Application framework equivalent of emberFrequencyHoppingStartClientCompleteHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberStatus | N/A | status |
122
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfRadioNeedsCalibratingCallback#
void emberAfRadioNeedsCalibratingCallback (void )
Application framework equivalent of emberRadioNeedsCalibratingHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
126
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
emberAfStackIdleCallback#
bool emberAfStackIdleCallback (uint32_t * idleTimeMs)
Application framework equivalent of emberStackIdleHandler.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | N/A | idleTimeMs |
130
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
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.
142
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_callback.h
Function Documentation#
emberAfGetResetCause#
uint32_t emberAfGetResetCause (void )
Get the last reset cause mask.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
A reset cause mask.
Note
This API replaces halGetResetInfo() or halGetExtendedResetInfo. emberAfGetResetCause() is a RMU_ResetCauseGet() overhaul. See the reference manual of the EMLIB RMU for a description of the returned reset cause mask.
62
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_common.h
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
77
of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/app-framework-common/app_framework_common.h