|
Wirepas SDK
|
|
Go to the documentation of this file.
19 #ifndef APP_LIB_DATA_H_
20 #define APP_LIB_DATA_H_
29 #define APP_LIB_DATA_NAME 0x0003f161
32 #define APP_LIB_DATA_VERSION 0x20B
60 #define APP_LIB_DATA_NO_TRACKING_ID (app_lib_data_tracking_id_t)(-1)
75 #define APP_LIB_DATA_MAX_APP_CONFIG_NUM_BYTES 80
261 #define APP_LIB_DATA_RX_HOPS_UNDETERMINED 0
679 uint16_t * interval);
803 #define APP_DATA_DISABLE_LOCAL_MULTICAST 0
size_t(* app_lib_data_get_app_config_num_bytes_f)(void)
Get size of app config.
@ APP_LIB_DATA_SEND_RES_OUT_OF_MEMORY
@ APP_LIB_DATA_SEND_FLAG_TRACK
app_res_e(* app_lib_data_set_fragmented_mode_f)(const app_lib_data_fragmented_mode_e mode)
Set the fragmentation behavior for RX packets.
Struct to tracking callback function.
app_lib_data_write_diagnostic_interval_f writeDiagnosticInterval
app_lib_data_set_data_sent_cb_f setDataSentCb
void(* app_lib_data_allow_reception_f)(bool allow)
Allow or block reception The application may temporarily tell the stack to not call the reception dat...
app_lib_data_send_res_e
A result code returned from lib_data->sendData().
@ APP_LIB_DATA_APP_CONFIG_RES_INVALID_ROLE
app_lib_data_qos_e
Data quality of service class. Used when sending and receiving data packets.
app_lib_data_read_app_config_f readAppConfig
@ APP_LIB_DATA_APP_CONFIG_RES_INVALID_SEQ
app_lib_data_set_new_app_config_cb_f setNewAppConfigCb
@ APP_LIB_DATA_SEND_FLAG_UNACK_CSMA_CA
@ APP_LIB_DATA_SEND_NW_CH_ONLY
void(* app_lib_data_new_app_config_cb_f)(const uint8_t *bytes, uint8_t seq, uint16_t interval)
Type of the new app config callback function.
app_lib_data_tracking_id_t tracking_id
@ APP_LIB_DATA_SEND_RES_INVALID_QOS
@ APP_LIB_DATA_SEND_FLAG_NONE
@ APP_LIB_DATA_APP_CONFIG_RES_INVALID_NULL_POINTER
@ APP_LIB_DATA_SEND_RES_INVALID_DEST_ADDRESS
List of library services.
app_lib_data_app_config_res_e
Result of the app config.
app_res_e(* app_lib_data_set_max_msg_queuing_time_f)(app_lib_data_qos_e priority, uint16_t time)
Set maximum queuing time for messages.
@ APP_LIB_DATA_RECEIVE_RES_HANDLED
app_res_e(* app_lib_data_get_num_free_buffers_f)(size_t *num_buffers_p)
Get number of currently available buffers.
@ APP_LIB_DATA_SEND_RES_RESERVED_ENDPOINT
app_lib_data_set_max_msg_queuing_time_f setMaxMsgQueuingTime
@ APP_LIB_DATA_SEND_RES_INVALID_FRAGMENT_INFO
app_lib_data_send_flags_e
Flags to use with lib_data->sendData().
@ APP_LIB_DATA_SEND_FRAGMENTED_PACKET
app_lib_data_allow_reception_f allowReception
@ APP_LIB_DATA_SEND_RES_OUT_OF_TRACKING_IDS
@ APP_LIB_DATA_SEND_RES_INVALID_HOP_LIMIT
void(* app_lib_data_data_sent_cb_f)(const app_lib_data_sent_status_t *status)
Sent packet tracking callback.
app_lib_data_get_max_msg_queuing_time_f getMaxMsgQueuingTime
app_lib_data_app_config_res_e(* app_lib_data_write_app_config_data_f)(const uint8_t *bytes)
Write app config DATA.
app_lib_data_app_config_res_e(* app_lib_data_read_app_config_f)(uint8_t *bytes, uint8_t *seq, uint16_t *interval)
Read app config.
@ APP_LIB_DATA_SEND_RES_INVALID_TRACKING_ID
app_lib_data_receive_res_e
Return value of data reception callback.
app_lib_data_set_fragmented_mode_f setFragmentMode
app_res_e(* app_lib_data_set_data_sent_cb_f)(app_lib_data_data_sent_cb_f cb)
Set data sent tracking callback.
@ APP_LIB_DATA_SEND_RES_ACCESS_DENIED
@ APP_LIB_DATA_RECEIVE_RES_NO_SPACE
@ APP_LIB_DATA_SEND_RES_INVALID_STACK_STATE
app_res_e(* app_lib_data_set_data_received_cb_f)(app_lib_data_data_received_cb_f cb)
Set data reception callback.
app_res_e(* app_lib_data_get_max_msg_queuing_time_f)(app_lib_data_qos_e priority, uint16_t *time_p)
Get maximum queuing time of messages.
@ APP_LIB_DATA_APP_CONFIG_RES_INVALID_APP_CONFIG
A struct for lib_data->sendData().
app_lib_data_fragment_t * fragment_info
app_lib_data_get_num_buffers_f getNumBuffers
size_t(* app_lib_data_get_num_buffers_f)(void)
Get total number of packet buffers.
app_lib_data_get_num_free_buffers_f getNumFreeBuffers
@ APP_LIB_DATA_SEND_RES_INVALID_FLAGS
app_lib_data_get_data_max_num_bytes_f getDataMaxNumBytes
app_lib_data_set_local_mc_f setLocalMulticastInfo
uint8_t hops_left
Amount of hops left set when multicast packet goes out of target multicast group.
@ APP_LIB_DATA_SEND_SET_HOP_LIMITING
Struct passed to data reception callback functions.
Fragmentation information.
app_lib_data_send_data_f sendData
app_lib_data_fragmented_mode_e
Fragmentation mode. Use to specify if reassembly is done by stack or by application itself.
app_lib_data_data_size_t(* app_lib_data_get_data_max_num_bytes_f)(void)
Return the maximum number of bytes per data packet or data segment.
app_addr_t mac_src_address
@ APP_LIB_DATA_FRAGMENTED_MODE_ENABLED
app_lib_data_send_res_e(* app_lib_data_send_data_f)(const app_lib_data_to_send_t *data)
Send data.
@ APP_LIB_DATA_APP_CONFIG_RES_INVALID_INTERVAL
app_lib_data_set_data_received_cb_f setDataReceivedCb
@ APP_LIB_DATA_SEND_RES_UNINITIALIZED
@ APP_LIB_DATA_RECEIVE_RES_NOT_FOR_APP
@ APP_LIB_DATA_SEND_RES_SUCCESS
Information on setting local multicast functionality. To be used with service lib_data->setLocalMulti...
app_lib_data_write_app_config_data_f writeAppConfigData
@ APP_LIB_DATA_SEND_RES_INVALID_NUM_BYTES
app_lib_data_receive_res_e(* app_lib_data_data_received_cb_f)(const app_lib_data_received_t *data)
Data reception callback.
app_lib_data_app_config_res_e(* app_lib_data_write_diagnostic_interval_f)(uint16_t interval)
Write Diagnostic interval.
app_lib_data_get_app_config_num_bytes_f getAppConfigNumBytes
@ APP_LIB_DATA_QOS_NORMAL
@ APP_LIB_DATA_APP_CONFIG_RES_SUCCESS
uint16_t app_lib_data_tracking_id_t
Type of tracking ID for data packets.
app_res_e(* app_lib_data_set_local_mc_f)(const app_lib_data_local_mc_info_t *info)
Set local multicast functionality.
app_res_e(* app_lib_data_set_new_app_config_cb_f)(app_lib_data_new_app_config_cb_f cb)
Set the callback function to be called when new app config data is received.
@ APP_LIB_DATA_FRAGMENTED_MODE_DISABLED
app_lib_data_fragment_t fragment_info