Go to the documentation of this file.
61 #include "custom_config.h"
69 #define TPS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
70 10 : CFG_MAX_CONNECTIONS)
uint16_t tps_srvc_end_handle
Definition: tps_c.h:95
void(* tps_c_evt_handler_t)(tps_c_evt_t *p_evt)
Tx Power Service Client event handler type.
Definition: tps_c.h:113
uint16_t tps_srvc_start_handle
Definition: tps_c.h:94
tps_c_evt_type_t
Tx Power Service Client event type.
Definition: tps_c.h:79
@ TPS_C_EVT_TX_POWER_LEVEL_RECEIVE
Definition: tps_c.h:83
sdk_err_t tps_client_init(tps_c_evt_handler_t evt_handler)
Register TPS Client event handler.
Tx Power Service Client event.
Definition: tps_c.h:101
sdk_err_t tps_c_tx_power_level_read(uint8_t conn_idx)
Read Tx Power Level characteristic value.
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
uint8_t conn_idx
Definition: tps_c.h:102
@ TPS_C_EVT_DISCOVERY_COMPLETE
Definition: tps_c.h:81
Handles on the connected peer device needed to interact with it.
Definition: tps_c.h:93
uint16_t tps_tx_power_level_handle
Definition: tps_c.h:96
int8_t tx_power_level
Definition: tps_c.h:104
tps_c_evt_type_t evt_type
Definition: tps_c.h:103
sdk_err_t tps_c_disc_srvc_start(uint8_t conn_idx)
Discovery Tx Power Service on peer.
@ TPS_C_EVT_INVALID
Definition: tps_c.h:80
@ TPS_C_EVT_DISCOVERY_FAIL
Definition: tps_c.h:82