docs(ble/bluedroid): Optimize documentation for BLE duplicate scan

This commit is contained in:
zhanghaipeng 2024-01-09 18:54:42 +08:00 committed by Wei Yu Han
parent 48abf362c0
commit 217ed6c1bf
2 changed files with 9 additions and 5 deletions

View File

@ -356,7 +356,7 @@ config BTDM_SCAN_DUPL_CACHE_SIZE
default 100 default 100
help help
Maximum number of devices which can be recorded in scan duplicate filter. Maximum number of devices which can be recorded in scan duplicate filter.
When the maximum amount of device in the filter is reached, the cache will be refreshed. When the maximum amount of device in the filter is reached, the oldest device will be refreshed.
config BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD config BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD
int "Duplicate scan list refresh period (seconds)" int "Duplicate scan list refresh period (seconds)"

View File

@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
@ -459,7 +459,10 @@ typedef enum {
typedef enum { typedef enum {
BLE_SCAN_DUPLICATE_DISABLE = 0x0, /*!< the Link Layer should generate advertising reports to the host for each packet received */ BLE_SCAN_DUPLICATE_DISABLE = 0x0, /*!< the Link Layer should generate advertising reports to the host for each packet received */
BLE_SCAN_DUPLICATE_ENABLE = 0x1, /*!< the Link Layer should filter out duplicate advertising reports to the Host */ BLE_SCAN_DUPLICATE_ENABLE = 0x1, /*!< the Link Layer should filter out duplicate advertising reports to the Host */
BLE_SCAN_DUPLICATE_MAX = 0x2, /*!< 0x02 0xFF, Reserved for future use */ #if (BLE_50_FEATURE_SUPPORT == TRUE)
BLE_SCAN_DUPLICATE_ENABLE_RESET, /*!< Duplicate filtering enabled, reset for each scan period, only supported in BLE 5.0. */
#endif
BLE_SCAN_DUPLICATE_MAX /*!< Reserved for future use. */
} esp_ble_scan_duplicate_t; } esp_ble_scan_duplicate_t;
#if (BLE_42_FEATURE_SUPPORT == TRUE) #if (BLE_42_FEATURE_SUPPORT == TRUE)
/// Ble scan parameters /// Ble scan parameters
@ -2288,8 +2291,9 @@ esp_err_t esp_ble_gap_set_ext_scan_params(const esp_ble_ext_scan_params_t *param
/** /**
* @brief This function is used to enable scanning. * @brief This function is used to enable scanning.
* *
* @param[in] duration : Scan duration * @param[in] duration Scan duration time, where Time = N * 10 ms. Range: 0x0001 to 0xFFFF.
* @param[in] period : Time interval from when the Controller started its last Scan Duration until it begins the subsequent Scan Duration. * @param[in] period Time interval from when the Controller started its last Scan Duration until it begins the subsequent Scan Duration.
* Time = N * 1.28 sec. Range: 0x0001 to 0xFFFF.
* *
* @return - ESP_OK : success * @return - ESP_OK : success
* - other : failed * - other : failed