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

This service exposes a device's current transmit power level when in a connection. More...

Detailed Description

This service exposes a device's current transmit power level when in a connection.

Enumerations

enum  e_ble_tps_char_idx_t { BLE_TPS_TX_POWER_LEVEL_IDX }
 Tx Power characteristic Index. More...
 
enum  e_ble_tps_event_t { BLE_TPS_EVENT_TX_POWER_LEVEL_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_TPS_TX_POWER_LEVEL_IDX, BLE_SERVS_READ_REQ) }
 Tx Power event type. More...
 

Functions

ble_status_t R_BLE_TPS_SetTxPowerLevel (const int8_t *p_value)
 Set Tx Power Level characteristic value to the local GATT database. More...
 
ble_status_t R_BLE_TPS_GetTxPowerLevel (int8_t *p_value)
 Get Tx Power Level characteristic value from the local GATT database. More...
 
ble_status_t R_BLE_TPS_Init (ble_servs_app_cb_t cb)
 Initialize Tx Power service. More...
 

Enumeration Type Documentation

◆ e_ble_tps_char_idx_t

Tx Power characteristic Index.

◆ e_ble_tps_event_t

Tx Power event type.

Function Documentation

◆ R_BLE_TPS_SetTxPowerLevel()

ble_status_t R_BLE_TPS_SetTxPowerLevel ( const int8_t *  p_value)

Set Tx Power Level characteristic value to the local GATT database.

Parameters
[in]p_valueCharacteristic value to set.
Returns
ble_status_t

◆ R_BLE_TPS_GetTxPowerLevel()

ble_status_t R_BLE_TPS_GetTxPowerLevel ( int8_t *  p_value)

Get Tx Power Level characteristic value from the local GATT database.

Parameters
[in]p_valueOutput location for the acquired descriptor value.
Returns
ble_status_t

◆ R_BLE_TPS_Init()

ble_status_t R_BLE_TPS_Init ( ble_servs_app_cb_t  cb)

Initialize Tx Power service.

Parameters
[in]cbService callback.
Returns
ble_status_t