Go to the documentation of this file.
63 #include "custom_config.h"
76 #define THS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
77 10 : CFG_MAX_CONNECTIONS)
78 #define THS_SVC_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
79 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x03, 0xED, 0xA6}
80 #define THS_TX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
81 0x0A, 0x46, 0x44, 0xD3, 0x02, 0x03, 0xED, 0xA6}
82 #define THS_RX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
83 0x0A, 0x46, 0x44, 0xD3, 0x03, 0x03, 0xED, 0xA6}
84 #define THS_SETTING_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
85 0x0A, 0x46, 0x44, 0xD3, 0x04, 0x03, 0xED, 0xA6}
86 #define THS_TOGGLE_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
87 0x0A, 0x46, 0x44, 0xD3, 0x05, 0x03, 0xED, 0xA6}
98 THS_C_SLAVE_NOTIFY_MODE,
@ THS_C_EVT_SETTING_NTF_SET_SUCCESS
Definition: ths_c.h:121
@ THS_C_EVT_PARAM_SET_SUCCESS
Definition: ths_c.h:126
uint16_t length
Definition: ths_c.h:154
uint8_t conn_idx
Definition: ths_c.h:151
uint16_t ths_srvc_start_handle
Definition: ths_c.h:138
Handles on the connected peer device needed to interact with it.
Definition: ths_c.h:137
ths_c_evt_type_t evt_type
Definition: ths_c.h:152
@ THS_C_EVT_TOGGLE_SET_SUCCESS
Definition: ths_c.h:122
@ THS_C_SETTINGS_TYPE_TX_POWER
Definition: ths_c.h:111
@ THS_C_SETTINGS_TYPE_MTU
Definition: ths_c.h:107
@ THS_C_SETTINGS_TYPE_TRANS_MODE
Definition: ths_c.h:110
sdk_err_t ths_c_setting_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer THS setting characteristic notify.
@ THS_C_EVT_INVALID
Definition: ths_c.h:117
@ THS_C_EVT_DISCOVERY_COMPLETE
Definition: ths_c.h:118
void(* ths_c_evt_handler_t)(ths_c_evt_t *p_evt)
Throughput Service Client event handler type.
Definition: ths_c.h:163
@ THS_C_EVT_TX_SUCCESS
Definition: ths_c.h:125
uint16_t ths_rx_handle
Definition: ths_c.h:142
@ THS_C_EVT_SETTING_RSP_RECEIVE
Definition: ths_c.h:123
Throughput Service Client event.
Definition: ths_c.h:150
uint16_t ths_setting_handle
Definition: ths_c.h:143
sdk_err_t ths_client_init(ths_c_evt_handler_t evt_handler)
Register THS Client event handler.
uint16_t ths_srvc_end_handle
Definition: ths_c.h:139
uint16_t ths_tx_cccd_handle
Definition: ths_c.h:141
uint8_t * p_data
Definition: ths_c.h:153
ths_c_evt_type_t
Throughput Service Client event type.
Definition: ths_c.h:116
uint16_t ths_setting_cccd_handle
Definition: ths_c.h:144
uint16_t ths_toggle_handle
Definition: ths_c.h:145
@ THS_C_EVT_THRP_DATA_RECEIVE
Definition: ths_c.h:124
Profile/Service Common Types.
sdk_err_t ths_c_comm_param_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send communication parameter to peer.
@ THS_C_SETTINGS_TYPE_PHY
Definition: ths_c.h:109
@ THS_C_EVT_DISCOVERY_FAIL
Definition: ths_c.h:119
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
@ THS_C_SETTINGS_TYPE_PDU
Definition: ths_c.h:108
@ THS_C_DOUBLE_MODE
Definition: ths_c.h:100
@ THS_C_MASTER_WRITE_MODE
Definition: ths_c.h:99
sdk_err_t ths_c_disc_srvc_start(uint8_t conn_idx)
Discovery THS on peer.
ths_c_transport_mode_t
Throughput Service Client data transport mode.
Definition: ths_c.h:97
sdk_err_t ths_c_toggle_set(uint8_t conn_idx, bool is_enable)
Set Throughput service toggle state of sending the data.
uint16_t ths_tx_handle
Definition: ths_c.h:140
@ THS_C_EVT_WRITE_OP_ERR
Definition: ths_c.h:127
@ THS_C_SETTINGS_TYPE_CI
Definition: ths_c.h:106
sdk_err_t ths_c_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer.
sdk_err_t ths_c_tx_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer THS Tx characteristic notify.
ths_c_settings_type_t
Throughput service settings types.
Definition: ths_c.h:105
@ THS_C_EVT_TX_NTF_SET_SUCCESS
Definition: ths_c.h:120