Go to the source code of this file.
◆ stack_state_event_cb_f
◆ Stack_State_addEventCb()
Add a new callback about event callback.
- Parameters
-
callback | New callback |
event_bitfield | Bitfields of event to register. To be notified of event n, bit n must be set For example, to register only for APP_LIB_STATE_STACK_EVENT_SCAN_STARTED and APP_LIB_STATE_STACK_EVENT_SCAN_STOPPED, bit field is as followed: uint32_t bitfield = 1 << APP_LIB_STATE_STACK_EVENT_SCAN_STARTED | 1 << APP_LIB_STATE_STACK_EVENT_SCAN_STOPPED |
- Returns
- APP_RES_OK if ok. See app_res_e for other result codes.
◆ Stack_State_init()
Initialize the stack state library.
- Returns
- APP_RES_OK.
◆ Stack_State_isStarted()
bool Stack_State_isStarted |
( |
| ) |
|
Is the stack currently started.
- Returns
- True if stack is started, False otherwise
◆ Stack_State_removeEventCb()
Remove an event callback from the list. Removed item fields are all set to 0.
- Parameters
-
callback | callback to remove. |
- Returns
- APP_RES_OK if ok. See app_res_e for other result codes.
◆ Stack_State_startStack()
Start the stack.
- Returns
- Return code of the operation app_res_e
◆ Stack_State_stopStack()
Stopt the stack.
- Returns
- Return code of the operation app_res_e
◆ STACK_STATE_ALL_EVENTS_BITFIELDS
#define STACK_STATE_ALL_EVENTS_BITFIELDS (uint32_t)(-1) |