This is the client for the Tx Power Service.
More...
This is the client for the Tx Power Service.
|
#define | BLE_TPC_TX_POWER_LEVEL_UUID (0x2A07) |
|
#define | BLE_TPC_TX_POWER_LEVEL_LEN (1) |
|
|
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...
|
|
◆ e_ble_tpc_char_idx_t
Tx Power characteristic ID.
◆ e_ble_tpc_event_t
Tx Power client event type.
◆ 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_hdl | Connection handle. |
- Returns
- ble_status_t
◆ R_BLE_TPC_GetTxPowerLevelAttrHdl()
Get Tx Power Level attribute handles.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
- Returns
- ble_status_t
◆ R_BLE_TPC_Init()
◆ 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_hdl | Connection handle |
[in] | serv_idx | Service instance index. |
[in] | type | Service discovery event type. |
[in] | p_param | Service discovery event parameter. |
- Returns
- ble_status_t
◆ R_BLE_TPC_GetServAttrHdl()
Get Tx Power client attribute handle.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |