Functions
Functions
BLE Services » Tx Power Service (TPS)
Collaboration diagram for Functions:

## Functions
sdk_err_t | tps_service_init (tps_init_t *p_tps_init)
| Initialize a Tx Power Service instance and add in BLE Stack database. More...
sdk_err_t | tps_tx_power_level_set (int8_t tx_power_level)
| Set new value of Tx power level characteristic. More...
uint16_t | tps_service_start_handle_get (void)
| Provide the interface for other modules to obtain the tps service start handle . More...

## Detailed Description

## Function Documentation

## ◆ tps_service_init()

sdk_err_t tps_service_init | ( | tps_init_t * | p_tps_init | ) |

Initialize a Tx Power Service instance and add in BLE Stack database.

Parameters

  [in] | p_tps_init | Pointer to a Tx Power Service environment variable.

Returns
  Result of service initialization.

## ◆ tps_service_start_handle_get()

uint16_t tps_service_start_handle_get | ( | void |  | ) |

Provide the interface for other modules to obtain the tps service start handle .

Returns
  The tps service start handle.

## ◆ tps_tx_power_level_set()

sdk_err_t tps_tx_power_level_set | ( | int8_t | tx_power_level | ) |

Set new value of Tx power level characteristic.

Parameters

  [in] | tx_power_level | New value of Tx power level, range [-100, 20] dBm.

Returns
  BLE_SDK_SUCCESS on success, otherwise an error code.