|
Wirepas SDK
|
|
Go to the documentation of this file.
25 #ifndef _SHARED_DATA_H_
26 #define _SHARED_DATA_H_
33 #define SHARED_DATA_UNUSED_ENDPOINT -1
36 #define SHARED_DATA_UNUSED_MULTISCAST 0xFFFFFFFF
186 #endif //_SHARED_DATA_H_
shared_data_net_mode_e
Select what type of packet to receive.
app_lib_data_send_res_e
A result code returned from lib_data->sendData().
app_lib_data_receive_res_e(* shared_data_received_cb_f)(const shared_data_item_t *item, const app_lib_data_received_t *data)
The data reception callback.
bool(* app_lib_settings_is_group_cb_f)(app_addr_t group_addr)
Callback used for determining on which multicast groups the device belongs.
app_res_e Shared_Data_addDataReceivedCb(shared_data_item_t *item)
Add a new packet received item to the list. If the item is already in the list it is only updated.
shared_data_net_mode_e mode
void(* app_lib_data_data_sent_cb_f)(const app_lib_data_sent_status_t *status)
Sent packet tracking callback.
void Shared_Data_removeDataReceivedCb(shared_data_item_t *item)
Remove a received packet item from the list. Removed item fields are all set to 0.
Structure holding all parameters for packet filtering.
@ SHARED_DATA_NET_MODE_ALL
app_lib_settings_is_group_cb_f multicast_cb
shared_data_received_cb_f cb
app_lib_data_receive_res_e
Return value of data reception callback.
A struct for lib_data->sendData().
Item containing filters and callback to call. This structure describe a callback to call when a packe...
@ SHARED_DATA_NET_MODE_MULTICAST
app_res_e Shared_Data_readyToReceive(shared_data_item_t *item)
Enable back the reception for an item. Reception is automatically paused when an item returns APP_LIB...
Struct passed to data reception callback functions.
app_res_e Shared_Data_init(void)
Initialize the shared data library.
shared_data_filter_t filter
app_lib_data_send_res_e Shared_Data_sendData(app_lib_data_to_send_t *data, app_lib_data_data_sent_cb_f sent_cb)
Send data. The packet to send is represented as a app_lib_data_to_send_t struct.
@ SHARED_DATA_NET_MODE_UNICAST
@ SHARED_DATA_NET_MODE_BROADCAST