Go to the documentation of this file.
65 #include "custom_config.h"
72 #define THS_CONNECTION_MAX 10
73 #define THS_MAX_DATA_LEN 512
74 #define THS_SERVICE_UUID 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
75 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x03, 0xED, 0xA6
sdk_err_t ths_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.
sdk_err_t ths_service_init(ths_init_t *p_ths_init)
Initialize a Throughput Service instance and add in the DB.
ths_evt_handler_t evt_handler
ths_evt_type_t
Throughput Service event type.
ths_transport_mode_t
Throughput data transport mode.
ths_transport_mode_t transport_mode
@ THS_SETTINGS_TYPE_RANGING_PARAM
ths_settings_type_t
Throughput service settings types.
ths_settings_type_t setting_type
@ THS_EVT_SETTINGS_CHANGED
Throughput Service event.
ths_transport_mode_t ths_transport_mode_get(void)
Get current transport mode of device.
uint16_t sdk_err_t
SDK API result type.
ths_toggle_state_t
Throughput toggle state of sending the data.
Throughput Service init stucture. This contains all option and data needed for initialization of the ...
sdk_err_t ths_settings_notify(uint8_t conn_idx, uint8_t *p_settings, uint16_t length)
Notify the peer device of the change of settings.
@ THS_SETTINGS_TYPE_TX_POWER
@ THS_SETTINGS_TYPE_TRANS_MODE
void(* ths_evt_handler_t)(ths_evt_t *p_evt)
Throughput Service event handler type.