@@ -70,7 +70,7 @@ typedef enum {
7070/**
7171 * @brief BLE sleep clock accuracy(SCA)
7272 *
73- * @note Currently only ESP_BLE_SCA_500PPM and ESP_BLE_SCA_250PPM are supported
73+ * @note Currently only ESP_BLE_SCA_500PPM and ESP_BLE_SCA_250PPM are supported.
7474 */
7575typedef enum {
7676 ESP_BLE_SCA_500PPM = 0 , /*!< BLE SCA at 500 ppm */
@@ -221,21 +221,21 @@ the adv packet will be discarded until the memory is restored. */
221221typedef struct {
222222 uint16_t controller_task_stack_size ; /*!< Bluetooth Controller task stack size in bytes */
223223 uint8_t controller_task_prio ; /*!< Bluetooth Controller task priority */
224- uint8_t hci_uart_no ; /*!< If use UART1/2 as HCI IO interface, indicate UART number */
225- uint32_t hci_uart_baudrate ; /*!< If use UART1/2 as HCI IO interface, indicate UART baudrate */
224+ uint8_t hci_uart_no ; /*!< Indicates UART number if using UART1/2 as HCI I/O interface */
225+ uint32_t hci_uart_baudrate ; /*!< Indicates UART baudrate if using UART1/2 as HCI I/O interface */
226226 uint8_t scan_duplicate_mode ; /*!< Scan duplicate filtering mode */
227227 uint8_t scan_duplicate_type ; /*!< Scan duplicate filtering type */
228228 uint16_t normal_adv_size ; /*!< Scan duplicate filtering list size with normal ADV */
229229 uint16_t mesh_adv_size ; /*!< Scan duplicate filtering list size with mesh ADV */
230230 uint16_t send_adv_reserved_size ; /*!< Controller minimum memory value*/
231231 uint32_t controller_debug_flag ; /*!< Controller debug log flag */
232232 uint8_t mode ; /*!< Controller mode: BLE mode (1), Classic Bluetooth mode (2) or Dual mode (3) */
233- uint8_t ble_max_conn ; /*!< BLE maximum connection numbers */
234- uint8_t bt_max_acl_conn ; /*!< BR/EDR maximum ACL connection numbers */
233+ uint8_t ble_max_conn ; /*!< Maximum number of BLE connections */
234+ uint8_t bt_max_acl_conn ; /*!< Maximum number of BR/EDR ACL connections */
235235 uint8_t bt_sco_datapath ; /*!< SCO data path, i.e. HCI or PCM module */
236236 bool auto_latency ; /*!< BLE auto latency, used to enhance Classic Bluetooth performance */
237237 bool bt_legacy_auth_vs_evt ; /*!< BR/EDR Legacy auth complete event required to protect from BIAS attack */
238- uint8_t bt_max_sync_conn ; /*!< BR/EDR maximum ACL connection numbers . Effective in menuconfig */
238+ uint8_t bt_max_sync_conn ; /*!< Maximum number of BR/EDR synchronous connections . Effective in menuconfig */
239239 uint8_t ble_sca ; /*!< BLE low power crystal accuracy index */
240240 uint8_t pcm_role ; /*!< PCM role (master & slave)*/
241241 uint8_t pcm_polar ; /*!< PCM polar trig (falling clk edge & rising clk edge) */
@@ -250,9 +250,9 @@ typedef struct {
250250 */
251251typedef enum {
252252 ESP_BT_CONTROLLER_STATUS_IDLE = 0 , /*!< The Controller is not initialized or has been de-initialized.*/
253- ESP_BT_CONTROLLER_STATUS_INITED , /*!< The Controller has been initialized. But it is not enabled or has been disabled. */
253+ ESP_BT_CONTROLLER_STATUS_INITED , /*!< The Controller has been initialized, but not enabled or has been disabled. */
254254 ESP_BT_CONTROLLER_STATUS_ENABLED , /*!< The Controller has been initialized and enabled. */
255- ESP_BT_CONTROLLER_STATUS_NUM , /*!< Controller status numbers */
255+ ESP_BT_CONTROLLER_STATUS_NUM , /*!< Number of Controller statuses */
256256} esp_bt_controller_status_t ;
257257
258258/**
@@ -277,7 +277,7 @@ typedef enum {
277277 ESP_BLE_PWR_TYPE_ADV = 9 , /*!< TX power for advertising */
278278 ESP_BLE_PWR_TYPE_SCAN = 10 , /*!< TX power for scan */
279279 ESP_BLE_PWR_TYPE_DEFAULT = 11 , /*!< Default TX power type, which can be used to set the TX power for power types that have not been set before.*/
280- ESP_BLE_PWR_TYPE_NUM = 12 , /*!< TYPE numbers */
280+ ESP_BLE_PWR_TYPE_NUM = 12 , /*!< Number of types */
281281} esp_ble_power_type_t ;
282282
283283/**
@@ -315,7 +315,7 @@ typedef enum {
315315 *
316316 * @note Connection TX power should only be set after the connection is established.
317317 *
318- * @param[in] power_type The type of TX power. It could be Advertising/ Connection/Default and etc.
318+ * @param[in] power_type The type of TX power. It could be Advertising, Connection, Default, etc.
319319 * @param[in] power_level Power level (index) corresponding to the absolute value (dBm)
320320 *
321321 * @return
@@ -327,7 +327,7 @@ esp_err_t esp_ble_tx_power_set(esp_ble_power_type_t power_type, esp_power_level_
327327/**
328328 * @brief Get BLE TX power
329329 *
330- * @note Connection TX power should only be get after the connection is established.
330+ * @note Connection TX power should only be retrived after the connection is established.
331331 *
332332 * @param[in] power_type The type of TX power. It could be Advertising/Connection/Default and etc.
333333 *
@@ -344,13 +344,13 @@ esp_power_level_t esp_ble_tx_power_get(esp_ble_power_type_t power_type);
344344 * The power level will affect the global BR/EDR TX power for operations such as inquiry, page, and connection.
345345 *
346346 * @note
347- * 1. Please call the function after `esp_bt_controller_enable()` and before any function that causes RF transmission,
347+ * 1. Please call this function after `esp_bt_controller_enable()` and before any functions that cause RF transmission,
348348 * such as performing discovery, profile initialization, and so on.
349349 * 2. For BR/EDR to use the new TX power for inquiry, call this function before starting an inquiry.
350350 * If BR/EDR is already inquiring, restart the inquiry after calling this function.
351351 * 3. The default minimum power level is `ESP_PWR_LVL_N0`, and the maximum power level is `ESP_PWR_LVL_P3`.
352352 *
353- * @param[in] min_power_level The minimum power level
353+ * @param[in] min_power_level The minimum power level. The default value is `ESP_PWR_LVL_N0`
354354 * @param[in] max_power_level The maximum power level
355355 *
356356 * @return
@@ -363,9 +363,9 @@ esp_err_t esp_bredr_tx_power_set(esp_power_level_t min_power_level, esp_power_le
363363/**
364364 * @brief Get BR/EDR TX power
365365 *
366- * The corresponding power level will be stored into the arguments.
366+ * The corresponding power levels will be stored into the arguments.
367367 *
368- * @param[out] min_power_level The minimum power level
368+ * @param[out] min_power_level Pointer to store the minimum power level
369369 * @param[out] max_power_level The maximum power level
370370 *
371371 * @return
@@ -377,7 +377,7 @@ esp_err_t esp_bredr_tx_power_get(esp_power_level_t *min_power_level, esp_power_l
377377/**
378378 * @brief Set default SCO data path
379379 *
380- * @note This function should be called after the Controller is enabled, and before (e)SCO link is established
380+ * @note This function should be called after the Controller is enabled, and before (e)SCO link is established.
381381 *
382382 * @param[in] data_path SCO data path
383383 *
@@ -392,7 +392,7 @@ esp_err_t esp_bredr_sco_datapath_set(esp_sco_data_path_t data_path);
392392 *
393393 * @note This function should be called only once, before any other Bluetooth functions.
394394 *
395- * @param[in] cfg Initial Bluetooth Controller configuration.
395+ * @param[in] cfg Initial Bluetooth Controller configuration
396396 *
397397 * @return
398398 * - ESP_OK: Success
@@ -404,7 +404,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg);
404404 * @brief De-initialize Bluetooth Controller to free resources and delete tasks
405405 *
406406 * @note
407- * 1. You should stop advertising and scanning, as well as disconnect all existing connections before de-initializing Bluetooth Controller.
407+ * 1. You should stop advertising and scanning, and disconnect all existing connections before de-initializing Bluetooth Controller.
408408 * 2. This function should be called only once, after any other Bluetooth functions.
409409 *
410410 * @return
@@ -419,12 +419,12 @@ esp_err_t esp_bt_controller_deinit(void);
419419 * @brief Enable Bluetooth Controller
420420 *
421421 * @note
422- * 1. Bluetooth Controller cannot be enabled in `ESP_BT_CONTROLLER_STATUS_IDLE` status. It have to be initialized first.
423- * 2. Due to a known issue, you cannot call `esp_bt_controller_enable()` a second time
422+ * 1. Bluetooth Controller cannot be enabled in `ESP_BT_CONTROLLER_STATUS_IDLE` status. It has to be initialized first.
423+ * 2. Due to a known issue, you cannot call `esp_bt_controller_enable()` for the second time
424424 * to change the Controller mode dynamically. To change the Controller mode, call
425425 * `esp_bt_controller_disable()` and then call `esp_bt_controller_enable()` with the new mode.
426426 *
427- * @param[in] mode the Bluetooth Controller mode (BLE/Classic Bluetooth/BTDM) to enable
427+ * @param[in] mode The Bluetooth Controller mode (BLE/Classic Bluetooth/BTDM) to enable
428428 *
429429 * For API compatibility, retain this argument. This mode must match the mode specified in the `cfg` of `esp_bt_controller_init()`.
430430 *
@@ -448,7 +448,7 @@ esp_err_t esp_bt_controller_disable(void);
448448 *
449449 * @return
450450 * - ESP_BT_CONTROLLER_STATUS_IDLE: The Controller is not initialized or has been de-initialized.
451- * - ESP_BT_CONTROLLER_STATUS_INITED: The Controller has been initialized. But it is not enabled or has been disabled.
451+ * - ESP_BT_CONTROLLER_STATUS_INITED: The Controller has been initialized, but not enabled or has been disabled.
452452 * - ESP_BT_CONTROLLER_STATUS_ENABLED: The Controller has been initialized and enabled.
453453 */
454454esp_bt_controller_status_t esp_bt_controller_get_status (void );
@@ -480,8 +480,8 @@ bool esp_vhci_host_check_send_available(void);
480480 * 1. This function shall not be called within a critical section or when the scheduler is suspended.
481481 * 2. This function should be called only if `esp_vhci_host_check_send_available()` returns True.
482482 *
483- * @param[in] data the packet point
484- * @param[in] len the packet length
483+ * @param[in] Pointer to the packet data
484+ * @param[in] len The packet length
485485 */
486486void esp_vhci_host_send_packet (uint8_t * data , uint16_t len );
487487
@@ -499,21 +499,21 @@ esp_err_t esp_vhci_host_register_callback(const esp_vhci_host_callback_t *callba
499499/**
500500 * @brief Release the Controller memory as per the mode
501501 *
502- * This function releases the BSS, data and other sections of the Controller to heap. The total size is about 70k bytes .
502+ * This function releases the BSS, data and other sections of the Controller to heap. The total size is about 70 KB .
503503 *
504504 * If the app calls `esp_bt_controller_enable(ESP_BT_MODE_BLE)` to use BLE only,
505- * then it is safe to call `esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT)` at initialization time to free unused Classic Bluetooth memory.
505+ * then it is safe to call `esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT)` at initialization time to free unused Classic Bluetooth memory.
506506 *
507507 * If the mode is `ESP_BT_MODE_BTDM`, then it may be useful to call API `esp_bt_mem_release(ESP_BT_MODE_BTDM)` instead,
508508 * which internally calls `esp_bt_controller_mem_release(ESP_BT_MODE_BTDM)` and additionally releases the BSS and data
509- * consumed by the Classic Bluetooth/BLE Host stack to heap. For more details about usage please refer to the documentation of `esp_bt_mem_release()` function
509+ * consumed by the Classic Bluetooth/BLE Host stack to heap. For more details about usage please refer to the documentation of `esp_bt_mem_release()` function.
510510 *
511511 * @note
512512 * 1. This function should be called only before `esp_bt_controller_init()` or after `esp_bt_controller_deinit()`.
513513 * 2. Once Bluetooth Controller memory is released, the process cannot be reversed. This means you cannot use the Bluetooth Controller mode that you have released using this function.
514514 * 3. If your firmware will upgrade the Bluetooth Controller mode later (such as switching from BLE to Classic Bluetooth or from disabled to enabled), then do not call this function.
515515 *
516- * @param[in] mode the Bluetooth Controller mode
516+ * @param[in] mode The Bluetooth Controller mode
517517 *
518518 * @return
519519 * - ESP_OK: Success
@@ -530,7 +530,7 @@ esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode);
530530 * If you never intend to use Bluetooth in a current boot-up cycle, you can call `esp_bt_mem_release(ESP_BT_MODE_BTDM)`
531531 * before `esp_bt_controller_init()` or after `esp_bt_controller_deinit()`.
532532 *
533- * For example, if a user only uses Bluetooth for setting the WiFi configuration, and does not use Bluetooth in the rest of the product operation.
533+ * For example, if you only use Bluetooth for setting the Wi-Fi configuration, and do not use Bluetooth in the rest of the product operation,
534534 * In such cases, after receiving the WiFi configuration, you can disable/de-init Bluetooth and release its memory.
535535 * Below is the sequence of APIs to be called for such scenarios:
536536 *
@@ -545,7 +545,7 @@ esp_err_t esp_bt_controller_mem_release(esp_bt_mode_t mode);
545545 * 2. If your firmware will upgrade the Bluetooth Controller mode later (such as switching from BLE to Classic Bluetooth or from disabled to enabled), then do not call this function.
546546 * 3. In case of NimBLE Host, to release BSS and data memory to heap, the mode needs to be set to `ESP_BT_MODE_BTDM` as the Controller is in Dual mode.
547547 *
548- * @param[in] mode the Bluetooth Controller mode
548+ * @param[in] mode The Bluetooth Controller mode
549549 *
550550 * @return
551551 * - ESP_OK: Success
@@ -557,13 +557,13 @@ esp_err_t esp_bt_mem_release(esp_bt_mode_t mode);
557557/**
558558 * @brief Enable Bluetooth modem sleep
559559 *
560- * There are currently two options for Bluetooth modem sleep: ORIG mode and EVED mode, the latter being intended for BLE only.
560+ * There are currently two options for Bluetooth modem sleep: ORIG mode and EVED mode. The latter is intended for BLE only.
561561 * The modem sleep mode could be configured in menuconfig.
562562 *
563563 * In ORIG mode, if there is no event to process, the Bluetooth Controller will periodically switch off some components and pause operation, then wake up according to the scheduled interval and resume work.
564564 * It can also wakeup earlier upon external request using function `esp_bt_controller_wakeup_request()`.
565565 *
566- * @note This function shall not be invoked before `esp_bt_controller_enable()`
566+ * @note This function shall not be invoked before `esp_bt_controller_enable()`.
567567 *
568568 * @return
569569 * - ESP_OK: Success
@@ -590,12 +590,12 @@ esp_err_t esp_bt_sleep_enable(void);
590590esp_err_t esp_bt_sleep_disable (void );
591591
592592/**
593- * @brief Manually clear scan duplicate list
593+ * @brief Manually clear the scan duplicate list
594594 *
595595 * @note
596596 * 1. This function name is incorrectly spelled, it will be fixed in release 5.x version.
597- * 2. The scan duplicate list will be automatically cleared when the maximum amount of device in the filter is reached.
598- * The amount of device in the filter can be configured in menuconfig.
597+ * 2. The scan duplicate list will be automatically cleared when the maximum amount of devices in the filter is reached.
598+ * The amount of devices in the filter can be configured in menuconfig.
599599 *
600600 * @return
601601 * - ESP_OK: Success
0 commit comments