Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Tx Power Service Client

This is the client for the Tx Power Service. More...

Detailed Description

This is the client for the Tx Power Service.

Data Structures

struct  st_ble_tpc_tx_power_level_attr_hdl_t
 Tx Power Level attribute handle value. More...
 
struct  st_ble_tpc_evt_data_t
 Tx Power client event data. More...
 

Macros

#define BLE_TPC_TX_POWER_LEVEL_UUID   (0x2A07)
 
#define BLE_TPC_TX_POWER_LEVEL_LEN   (1)
 

Enumerations

enum  e_ble_tpc_char_idx_t { BLE_TPC_TX_POWER_LEVEL_IDX }
 Tx Power characteristic ID. More...
 
enum  e_ble_tpc_event_t { BLE_TPC_EVENT_TX_POWER_LEVEL_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_TPC_TX_POWER_LEVEL_IDX, BLE_SERVC_READ_RSP) }
 Tx Power client event type. More...
 

Functions

ble_status_t R_BLE_TPC_ReadTxPowerLevel (uint16_t conn_hdl)
 Read Tx Power Level characteristic value from the remote GATT database. More...
 
void R_BLE_TPC_GetTxPowerLevelAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_tpc_tx_power_level_attr_hdl_t *p_hdl)
 Get Tx Power Level attribute handles. More...
 
ble_status_t R_BLE_TPC_Init (ble_servc_app_cb_t cb)
 Initialize Tx Power client. More...
 
void R_BLE_TPC_ServDiscCb (uint16_t conn_hdl, uint8_t serv_idx, uint16_t type, void *p_param)
 Tx Power client discovery callback. More...
 
void R_BLE_TPC_GetServAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_gatt_hdl_range_t *p_hdl)
 Get Tx Power client attribute handle. More...
 

Enumeration Type Documentation

◆ e_ble_tpc_char_idx_t

Tx Power characteristic ID.

◆ e_ble_tpc_event_t

Tx Power client event type.

Function Documentation

◆ R_BLE_TPC_ReadTxPowerLevel()

ble_status_t R_BLE_TPC_ReadTxPowerLevel ( uint16_t  conn_hdl)

Read Tx Power Level characteristic value from the remote GATT database.

Parameters
[in]conn_hdlConnection handle.
Returns
ble_status_t

◆ R_BLE_TPC_GetTxPowerLevelAttrHdl()

void R_BLE_TPC_GetTxPowerLevelAttrHdl ( const st_ble_dev_addr_t p_addr,
st_ble_tpc_tx_power_level_attr_hdl_t p_hdl 
)

Get Tx Power Level attribute handles.

Parameters
[in]p_addrBluetooth device address for the attribute handles.
[out]p_hdlThe pointer to store the retrieved attribute handles.
Returns
ble_status_t

◆ R_BLE_TPC_Init()

ble_status_t R_BLE_TPC_Init ( ble_servc_app_cb_t  cb)

Initialize Tx Power client.

Parameters
[in]cbClient callback.
Returns
ble_status_t

◆ R_BLE_TPC_ServDiscCb()

void R_BLE_TPC_ServDiscCb ( uint16_t  conn_hdl,
uint8_t  serv_idx,
uint16_t  type,
void *  p_param 
)

Tx Power client discovery callback.

Parameters
[in]conn_hdlConnection handle
[in]serv_idxService instance index.
[in]typeService discovery event type.
[in]p_paramService discovery event parameter.
Returns
ble_status_t

◆ R_BLE_TPC_GetServAttrHdl()

void R_BLE_TPC_GetServAttrHdl ( const st_ble_dev_addr_t p_addr,
st_ble_gatt_hdl_range_t p_hdl 
)

Get Tx Power client attribute handle.

Parameters
[in]p_addrBluetooth device address for the attribute handles.
[out]p_hdlThe pointer to store the retrieved attribute handles.