Просмотр исходного кода

Coexistence: Add coexist API to enable BLE connection dynamic priority

baohongde 5 лет назад
Родитель
Сommit
ddaa9d4523
3 измененных файлов с 16 добавлено и 2 удалено
  1. 1 1
      components/bt/controller/lib
  2. 14 0
      components/esp_wifi/include/esp_coexist.h
  3. 1 1
      components/esp_wifi/lib

+ 1 - 1
components/bt/controller/lib

@@ -1 +1 @@
-Subproject commit 682cd63dbdcc183a3ceca97bca1049694928405f
+Subproject commit 3524d276d64e6d8ec07688fd374581a5d305ad6d

+ 14 - 0
components/esp_wifi/include/esp_coexist.h

@@ -84,6 +84,20 @@ esp_err_t esp_coex_status_bit_set(esp_coex_status_type_t type, uint32_t status);
  */
 esp_err_t esp_coex_status_bit_clear(esp_coex_status_type_t type, uint32_t status);
 
+/**
+ * @brief Enable BLE connection dynamic priority
+ * @attention If the parameter is true, BLE connection performance will be better but WiFi performance 
+              will be poorer. And vice versa.
+ * @param low_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE 
+*                               connection interval is less or equal than 50 ms. The default value 
+*                               is false.
+ *                       false - not increace
+ * @param high_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE 
+*                                connection interval is more than 50 ms. The default value is true.
+ *                        false - not increace
+ * @return : ESP_OK - success, other - failed
+ */
+esp_err_t esp_coex_ble_conn_dynamic_prio_enable(bool low_interval, bool high_interval);
 
 #ifdef __cplusplus
 }

+ 1 - 1
components/esp_wifi/lib

@@ -1 +1 @@
-Subproject commit 93bc2dededa174a4227a4589fe9cc4b474dabcd5
+Subproject commit 8510f00170b80cdfeefb3489feb54a83a0d67bea