mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-17 23:28:15 +00:00
squash again
squash the commit. component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project. component/bt: Added the get white list size API & delete the read adv tx power API. component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs. changed btm_find_dev to btm_find_or_alloc_dev component/bt: Change the rssi API deep copy method. component/bt: Change the code as comment in the gitlab. squash the commit. component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project. component/bt: Added the get white list size API & delete the read adv tx power API. component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs. changed btm_find_dev to btm_find_or_alloc_dev component/bt: Change the rssi API deep copy method. component/bt: Change the code as comment in the gitlab. component/bt: change the ESP_BLE_CONN_PARAM_UNDEF redefinition error. component/bt: Change the ESP_BLE_IS_VALID_PARAM function with the compile error.
This commit is contained in:
@@ -66,8 +66,13 @@ typedef uint8_t esp_link_key[ESP_BT_OCTET16_LEN]; /* Link Key */
|
||||
/// Default GATT interface id
|
||||
#define ESP_DEFAULT_GATT_IF 0xff
|
||||
|
||||
/// Default BLE connection param, if the value doesn't be overwritten
|
||||
#define ESP_BLE_CONN_PARAM_UNDEF 0xffff /* use this value when a specific value not to be overwritten */
|
||||
#define ESP_BLE_CONN_INT_MIN 0x0006 /*!< relate to BTM_BLE_CONN_INT_MIN in btm_ble_api.h */
|
||||
#define ESP_BLE_CONN_INT_MAX 0x0C80 /*!< relate to BTM_BLE_CONN_INT_MAX in btm_ble_api.h */
|
||||
#define ESP_BLE_CONN_LATENCY_MAX 500 /*!< relate to ESP_BLE_CONN_LATENCY_MAX in btm_ble_api.h */
|
||||
#define ESP_BLE_CONN_SUP_TOUT_MIN 0x000A /*!< relate to BTM_BLE_CONN_SUP_TOUT_MIN in btm_ble_api.h */
|
||||
#define ESP_BLE_CONN_SUP_TOUT_MAX 0x0C80 /*!< relate to ESP_BLE_CONN_SUP_TOUT_MAX in btm_ble_api.h */
|
||||
#define ESP_BLE_CONN_PARAM_UNDEF 0xffff /* use this value when a specific value not to be overwritten */ /* relate to ESP_BLE_CONN_PARAM_UNDEF in btm_ble_api.h */
|
||||
#define ESP_BLE_SCAN_PARAM_UNDEF 0xffffffff /* relate to ESP_BLE_SCAN_PARAM_UNDEF in btm_ble_api.h */
|
||||
|
||||
/// Check the param is valid or not
|
||||
#define ESP_BLE_IS_VALID_PARAM(x, min, max) (((x) >= (min) && (x) <= (max)) || ((x) == ESP_BLE_CONN_PARAM_UNDEF))
|
||||
|
Reference in New Issue
Block a user