Value of 0xFFFF indicates no specific minimum.
Values not defined above are reserved for future use.*/
- int max_interval; /*!< Advertising data show slave preferred connection max interval.
+ int max_interval; /*!< Advertising data show slave preferred connection max interval.
The connection interval in the following manner:
- connIntervalmax = Conn_Interval_Max * 1.25 ms
+ connIntervalmax = Conn_Interval_Max * 1.25 ms
Conn_Interval_Max range: 0x0006 to 0x0C80
Conn_Interval_Max shall be equal to or greater than the Conn_Interval_Min.
Value of 0xFFFF indicates no specific maximum.
Range: 0x0004 to 0x4000 Default: 0x0010 (10 ms)
Time = N * 0.625 msec
Time Range: 2.5 msec to 10240 msec */
- esp_ble_scan_duplicate_t scan_duplicate; /*!< The Scan_Duplicates parameter controls whether the Link Layer should filter out
- duplicate advertising reports (BLE_SCAN_DUPLICATE_ENABLE) to the Host, or if the Link Layer should generate
+ esp_ble_scan_duplicate_t scan_duplicate; /*!< The Scan_Duplicates parameter controls whether the Link Layer should filter out
+ duplicate advertising reports (BLE_SCAN_DUPLICATE_ENABLE) to the Host, or if the Link Layer should generate
advertising reports for each packet received */
} esp_ble_scan_params_t;
* @param[in] type - finding ADV data type
* @param[out] length - return the length of ADV data not including type
*
- * @return - ESP_OK : success
- * - other : failed
+ * @return pointer of ADV data
*
*/
uint8_t *esp_ble_resolve_adv_data(uint8_t *adv_data, uint8_t type, uint8_t *length);
} esp_hf_client_cb_param_t;
/**
- * @brief HFP client incoming data callback function, the callback is useful in case of
+ * @brief HFP client incoming data callback function, the callback is useful in case of
* Voice Over HCI.
- * @param[in] buf : pointer to incoming data(payload of HCI synchronous data packet), the
+ * @param[in] buf : pointer to incoming data(payload of HCI synchronous data packet), the
* buffer is allocated inside bluetooth protocol stack and will be released after
* invoke of the callback is finished.
* @param[in] len : size(in bytes) in buf
typedef void (* esp_hf_client_incoming_data_cb_t)(const uint8_t *buf, uint32_t len);
/**
- * @brief HFP client outgoing data callback function, the callback is useful in case of
- * Voice Over HCI. Once audio connection is set up and the application layer has
- * prepared data to send, the lower layer will call this function to read data
+ * @brief HFP client outgoing data callback function, the callback is useful in case of
+ * Voice Over HCI. Once audio connection is set up and the application layer has
+ * prepared data to send, the lower layer will call this function to read data
* and then send. This callback is supposed to be implemented as non-blocking,
* and if data is not enough, return value 0 is supposed.
- *
- * @param[in] buf : pointer to incoming data(payload of HCI synchronous data packet), the
+ *
+ * @param[in] buf : pointer to incoming data(payload of HCI synchronous data packet), the
* buffer is allocated inside bluetooth protocol stack and will be released after
* invoke of the callback is finished.
* @param[in] len : size(in bytes) in buf
/**
*
- * @brief Connect to remote bluetooth HFP audio gateway(AG) device, must after esp_a2d_hf_client_init()
+ * @brief Connect to remote bluetooth HFP audio gateway(AG) device, must after esp_hf_client_init()
*
* @param[in] remote_bda: remote bluetooth device address
*
/**
* @brief Initialize the down sampling converter. This is a utility function that can
- * only be used in the case that Voice Over HCI is enabled.
+ * only be used in the case that Voice Over HCI is enabled.
*
* @param[in] src_sps: original samples per second(source audio data, i.e. 48000, 32000,
* 16000, 44100, 22050, 11025)
/**
* @brief This function is called to init SPP.
*
- * @param[in] mode: Choose the mode of SPP, ESP_SPP_MODE_CB or ESP_SPP_MODE_CB.
- * Now only supports ESP_SPP_MODE_CB mode, we will continue to update.
+ * @param[in] mode: Choose the mode of SPP, ESP_SPP_MODE_CB or ESP_SPP_MODE_VFS.
*
* @return
* - ESP_OK: success
bte_main_boot_entry(btc_init_callback);
#if (SMP_INCLUDED)
btc_config_init();
- //load the ble local key whitch has been store in the flash
+ //load the ble local key which has been stored in the flash
btc_dm_load_ble_local_keys();
#endif /* #if (SMP_INCLUDED) */
}
BTA_DmSetRandAddress(rand_addr, btc_set_rand_addr_callback);
} else {
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
- BTC_TRACE_ERROR("Invalid random address, the high bit should be 0b11, all bits of the random part shall not be to 1 or 0");
+ BTC_TRACE_ERROR("Invalid random address, the high bit should be 0b11, bits of the random part shall not be all 1 or 0");
}
} else {
btc_set_rand_addr_callback(BTM_INVALID_STATIC_RAND_ADDR);
//#include "osi/include/log.h"
#if SMP_INCLUDED == TRUE
-// The temp variable to pass parameter between functions when in the connected event comeback.
+// The temp variable to pass parameter between functions when in the connected event callback.
static BOOLEAN temp_enhanced = FALSE;
extern BOOLEAN aes_cipher_msg_auth_code(BT_OCTET16 key, UINT8 *input, UINT16 length,
UINT16 tlen, UINT8 *p_signature);
*p_addr_type = BLE_ADDR_PUBLIC;
- if (!p_dev_rec) {
+ if (!p_dev_rec) {
*p_dev_type = BT_DEVICE_TYPE_BREDR;
/* Check with the BT manager if details about remote device are known */
if (p_inq_info != NULL) {
if(link_role == BTM_ROLE_SLAVE && (p_rec->ble.key_type & BTM_LE_KEY_PENC)) {
p_rec->ble.skip_update_conn_param = true;
} else {
- p_rec->ble.skip_update_conn_param = false;
+ p_rec->ble.skip_update_conn_param = false;
}
if (SMP_Pair(bd_addr) == SMP_STARTED) {
cmd = BTM_CMD_STARTED;
/* to notify GATT to send data if any request is pending */
gatt_notify_enc_cmpl(p_dev_rec->ble.pseudo_addr);
}
-#endif ///SMP_INCLUDED == TRUE
+#endif ///SMP_INCLUDED == TRUE
/*******************************************************************************
/* It will cause that scanner doesn't send scan request to advertiser
* which has sent IRK to us and we have stored the IRK in controller.
- * It is a design problem of hardware. The temporal solution is not to
- * send the key to the controller and then resolve the random address in host.
- * so we need send the real address information to controller to connect.
- * Once the connection is successful, resolve device address whether it is
+ * It is a hardware limitation. The preliminary solution is not to
+ * send key to the controller, but to resolve the random address in host.
+ * so we need send the real address information to controller to connect.
+ * Once the connection is successful, resolve device address whether it is
* slave or master*/
/* if (!match && role == HCI_ROLE_SLAVE && BTM_BLE_IS_RESOLVE_BDA(bda)) { */
}
/* It will cause that scanner doesn't send scan request to advertiser
* which has sent IRK to us and we have stored the IRK in controller.
- * It is a design problem of hardware. The temporal solution is not to
- * send the key to the controller and then resolve the random address in host. */
+ * It is a hardware limitation. The preliminary solution is not to
+ * send key to the controller, but to resolve the random address in host. */
/*
BTM_TRACE_DEBUG("%s:adding device to controller resolving list\n", __func__);
UINT8 *peer_irk = p_dev_rec->ble.keys.irk;
memcpy(peer_addr, p_dev_rec->ble.current_addr, 6);
} else {
/* find security device information but not find the real address information
- * This state may be directly open whithout scanning. In this case, you must
+ * This state may be directly open without scanning. In this case, you must
* use the current adv address of the device to open*/
- }
+ }
} else {
//not find security device information, We think this is a new device, connect directly
}
/* It will cause that scanner doesn't send scan request to advertiser
* which has sent IRK to us and we have stored the IRK in controller.
- * It is a design problem of hardware. The temporal solution is not to
- * send the key to the controller and then resolve the random address in host.
+ * It is a hardware limitation. The preliminary solution is not to
+ * send key to the controller, but to resolve the random address in host.
* so we need send the real address information to controller. */
/*
if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) {