Skip to content

Commit 95f47a2

Browse files
blueMoodBHDjack0c
authored andcommitted
Coexistence: Add coexist API to enable BLE connection dynamic priority
1 parent 528edf8 commit 95f47a2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

components/bt/controller/lib

Submodule lib updated 1 file

components/esp_wifi/include/esp_coexist.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ esp_err_t esp_coex_status_bit_set(esp_coex_status_type_t type, uint32_t status);
8484
*/
8585
esp_err_t esp_coex_status_bit_clear(esp_coex_status_type_t type, uint32_t status);
8686

87+
/**
88+
* @brief Enable BLE connection dynamic priority
89+
* @attention If the parameter is true, BLE connection performance will be better but WiFi performance
90+
will be poorer. And vice versa.
91+
* @param low_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE
92+
* connection interval is less or equal than 50 ms. The default value
93+
* is false.
94+
* false - not increace
95+
* @param high_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE
96+
* connection interval is more than 50 ms. The default value is true.
97+
* false - not increace
98+
* @return : ESP_OK - success, other - failed
99+
*/
100+
esp_err_t esp_coex_ble_conn_dynamic_prio_enable(bool low_interval, bool high_interval);
87101

88102
#ifdef __cplusplus
89103
}

0 commit comments

Comments
 (0)