Wirepas SDK
stack_state.h
Go to the documentation of this file.
1/* Copyright 2021 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
7#ifndef _STACK_STATE_H_
8#define _STACK_STATE_H_
9
10#include "api.h"
11
12#define STACK_STATE_ALL_EVENTS_BITFIELDS (uint32_t)(-1)
13
14typedef void
15 (*stack_state_event_cb_f)(app_lib_stack_event_e event, void * param);
16
22
28
34
40
53app_res_e Stack_State_addEventCb(stack_state_event_cb_f callback, uint32_t event_bitfield);
54
64
65#endif //_STACK_STATE_H_
bool Stack_State_isStarted()
Is the stack currently started.
app_res_e Stack_State_startStack()
Start the stack.
void(* stack_state_event_cb_f)(app_lib_stack_event_e event, void *param)
Definition stack_state.h:15
app_res_e Stack_State_stopStack()
Stopt the stack.
app_res_e Stack_State_init(void)
Initialize the stack state library.
app_res_e Stack_State_addEventCb(stack_state_event_cb_f callback, uint32_t event_bitfield)
Add a new callback about event callback.
app_res_e Stack_State_removeEventCb(stack_state_event_cb_f callback)
Remove an event callback from the list. Removed item fields are all set to 0.
app_res_e
Definition wms_app.h:202
app_lib_stack_event_e
List of event generated by the stack when registering to app_lib_state_set_stack_event_cb_f.
Definition wms_state.h:415