-
Notifications
You must be signed in to change notification settings - Fork 731
/
esp_tps.h
50 lines (42 loc) · 1.03 KB
/
esp_tps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
/* 16 Bit TX Power Service UUID */
#define BLE_TPS_UUID16 0x1804
/* 16 Bit TX Power Service Characteristic UUIDs */
#define BLE_TPS_CHR_UUID16_TX_POWER_LEVEL 0x2A07
/**
* @brief Get the TX Power Level of the device.
*
* @return: The TX Power Level of the device
*/
int8_t esp_ble_tps_get_tx_power_level(void);
/**
* @brief Set the TX Power Level of the device.
*
* @param[in] tx_power_level The TX Power Level of the device
*
* @return
* - ESP_OK on successful
* - ESP_ERR_INVALID_ARG on wrong TX Power Level
*/
esp_err_t esp_ble_tps_set_tx_power_level(int8_t tx_power_level);
/**
* @brief Initialization TX Power Service
*
* @return
* - ESP_OK on successful
* - ESP_ERR_INVALID_ARG on wrong initialization
* - ESP_FAIL on error
*/
esp_err_t esp_ble_tps_init(void);
#ifdef __cplusplus
}
#endif