|
@@ -167,8 +167,8 @@ typedef enum {
|
|
|
ESP_GAP_BLE_SET_CHANNELS_EVT = 29, /*!< When setting BLE channels complete, the event comes */
|
|
ESP_GAP_BLE_SET_CHANNELS_EVT = 29, /*!< When setting BLE channels complete, the event comes */
|
|
|
#if (BLE_50_FEATURE_SUPPORT == TRUE)
|
|
#if (BLE_50_FEATURE_SUPPORT == TRUE)
|
|
|
ESP_GAP_BLE_READ_PHY_COMPLETE_EVT,
|
|
ESP_GAP_BLE_READ_PHY_COMPLETE_EVT,
|
|
|
- ESP_GAP_BLE_SET_PREFERED_DEFAULT_PHY_COMPLETE_EVT,
|
|
|
|
|
- ESP_GAP_BLE_SET_PREFERED_PHY_COMPLETE_EVT,
|
|
|
|
|
|
|
+ ESP_GAP_BLE_SET_PREFERRED_DEFAULT_PHY_COMPLETE_EVT,
|
|
|
|
|
+ ESP_GAP_BLE_SET_PREFERRED_PHY_COMPLETE_EVT,
|
|
|
ESP_GAP_BLE_EXT_ADV_SET_RAND_ADDR_COMPLETE_EVT,
|
|
ESP_GAP_BLE_EXT_ADV_SET_RAND_ADDR_COMPLETE_EVT,
|
|
|
ESP_GAP_BLE_EXT_ADV_SET_PARAMS_COMPLETE_EVT,
|
|
ESP_GAP_BLE_EXT_ADV_SET_PARAMS_COMPLETE_EVT,
|
|
|
ESP_GAP_BLE_EXT_ADV_DATA_SET_COMPLETE_EVT,
|
|
ESP_GAP_BLE_EXT_ADV_DATA_SET_COMPLETE_EVT,
|
|
@@ -196,7 +196,7 @@ typedef enum {
|
|
|
ESP_GAP_BLE_SCAN_TIMEOUT_EVT,
|
|
ESP_GAP_BLE_SCAN_TIMEOUT_EVT,
|
|
|
ESP_GAP_BLE_ADV_TERMINATED_EVT,
|
|
ESP_GAP_BLE_ADV_TERMINATED_EVT,
|
|
|
ESP_GAP_BLE_SCAN_REQ_RECEIVED_EVT,
|
|
ESP_GAP_BLE_SCAN_REQ_RECEIVED_EVT,
|
|
|
- ESP_GAP_BLE_CHANNEL_SELETE_ALGORITHM_EVT,
|
|
|
|
|
|
|
+ ESP_GAP_BLE_CHANNEL_SELECT_ALGORITHM_EVT,
|
|
|
ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT,
|
|
ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT,
|
|
|
ESP_GAP_BLE_PERIODIC_ADV_SYNC_LOST_EVT,
|
|
ESP_GAP_BLE_PERIODIC_ADV_SYNC_LOST_EVT,
|
|
|
ESP_GAP_BLE_PERIODIC_ADV_SYNC_ESTAB_EVT,
|
|
ESP_GAP_BLE_PERIODIC_ADV_SYNC_ESTAB_EVT,
|
|
@@ -640,7 +640,7 @@ typedef enum {
|
|
|
typedef enum{
|
|
typedef enum{
|
|
|
ESP_BLE_WHITELIST_REMOVE = 0X00, /*!< remove mac from whitelist */
|
|
ESP_BLE_WHITELIST_REMOVE = 0X00, /*!< remove mac from whitelist */
|
|
|
ESP_BLE_WHITELIST_ADD = 0X01, /*!< add address to whitelist */
|
|
ESP_BLE_WHITELIST_ADD = 0X01, /*!< add address to whitelist */
|
|
|
-} esp_ble_wl_opration_t;
|
|
|
|
|
|
|
+} esp_ble_wl_operation_t;
|
|
|
#if (BLE_42_FEATURE_SUPPORT == TRUE)
|
|
#if (BLE_42_FEATURE_SUPPORT == TRUE)
|
|
|
typedef enum {
|
|
typedef enum {
|
|
|
ESP_BLE_DUPLICATE_EXCEPTIONAL_LIST_ADD = 0, /*!< Add device info into duplicate scan exceptional list */
|
|
ESP_BLE_DUPLICATE_EXCEPTIONAL_LIST_ADD = 0, /*!< Add device info into duplicate scan exceptional list */
|
|
@@ -677,7 +677,7 @@ typedef uint8_t esp_duplicate_info_t[ESP_BD_ADDR_LEN];
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_CONNECTABLE (1 << 0) // Connectable advertising
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_CONNECTABLE (1 << 0) // Connectable advertising
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_SCANNABLE (1 << 1) // Scannable advertising
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_SCANNABLE (1 << 1) // Scannable advertising
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_DIRECTED (1 << 2) // Directed advertising
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_DIRECTED (1 << 2) // Directed advertising
|
|
|
-#define ESP_BLE_GAP_SET_EXT_ADV_PROP_HD_DIRECTED (1 << 3) // High Duty Cycle Directed Connectable advertising (<= 3.75 ms Advertis- ing Interval)
|
|
|
|
|
|
|
+#define ESP_BLE_GAP_SET_EXT_ADV_PROP_HD_DIRECTED (1 << 3) // High Duty Cycle Directed Connectable advertising (<= 3.75 ms Advertising Interval)
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_LEGACY (1 << 4) // Use legacy advertising PDUs
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_LEGACY (1 << 4) // Use legacy advertising PDUs
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_ANON_ADV (1 << 5) // Omit advertiser's address from all PDUs ("anonymous advertising")
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_ANON_ADV (1 << 5) // Omit advertiser's address from all PDUs ("anonymous advertising")
|
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_INCLUDE_TX_PWR (1 << 6) // Include TxPower in the extended header of the advertising PDU
|
|
#define ESP_BLE_GAP_SET_EXT_ADV_PROP_INCLUDE_TX_PWR (1 << 6) // Include TxPower in the extended header of the advertising PDU
|
|
@@ -765,7 +765,7 @@ typedef struct {
|
|
|
uint32_t interval_min; /*!< ext adv minimum interval */
|
|
uint32_t interval_min; /*!< ext adv minimum interval */
|
|
|
uint32_t interval_max; /*!< ext adv maximum interval */
|
|
uint32_t interval_max; /*!< ext adv maximum interval */
|
|
|
esp_ble_adv_channel_t channel_map; /*!< ext adv channel map */
|
|
esp_ble_adv_channel_t channel_map; /*!< ext adv channel map */
|
|
|
- esp_ble_addr_type_t own_addr_type; /*!< ext adv own addresss type */
|
|
|
|
|
|
|
+ esp_ble_addr_type_t own_addr_type; /*!< ext adv own address type */
|
|
|
esp_ble_addr_type_t peer_addr_type; /*!< ext adv peer address type */
|
|
esp_ble_addr_type_t peer_addr_type; /*!< ext adv peer address type */
|
|
|
esp_bd_addr_t peer_addr; /*!< ext adv peer address */
|
|
esp_bd_addr_t peer_addr; /*!< ext adv peer address */
|
|
|
esp_ble_adv_filter_t filter_policy; /*!< ext adv filter policy */
|
|
esp_ble_adv_filter_t filter_policy; /*!< ext adv filter policy */
|
|
@@ -774,7 +774,7 @@ typedef struct {
|
|
|
uint8_t max_skip; /*!< ext adv maximum skip */
|
|
uint8_t max_skip; /*!< ext adv maximum skip */
|
|
|
esp_ble_gap_phy_t secondary_phy; /*!< ext adv secondary phy */
|
|
esp_ble_gap_phy_t secondary_phy; /*!< ext adv secondary phy */
|
|
|
uint8_t sid; /*!< ext adv sid */
|
|
uint8_t sid; /*!< ext adv sid */
|
|
|
- bool scan_req_notif; /*!< ext adv sacn request event notify */
|
|
|
|
|
|
|
+ bool scan_req_notif; /*!< ext adv scan request event notify */
|
|
|
} esp_ble_gap_ext_adv_params_t;
|
|
} esp_ble_gap_ext_adv_params_t;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -790,7 +790,7 @@ typedef struct {
|
|
|
* @brief ext scan parameters
|
|
* @brief ext scan parameters
|
|
|
*/
|
|
*/
|
|
|
typedef struct {
|
|
typedef struct {
|
|
|
- esp_ble_addr_type_t own_addr_type; /*!< ext scan own addresss type */
|
|
|
|
|
|
|
+ esp_ble_addr_type_t own_addr_type; /*!< ext scan own address type */
|
|
|
esp_ble_scan_filter_t filter_policy; /*!< ext scan filter policy */
|
|
esp_ble_scan_filter_t filter_policy; /*!< ext scan filter policy */
|
|
|
esp_ble_scan_duplicate_t scan_duplicate; /*!< ext scan duplicate scan */
|
|
esp_ble_scan_duplicate_t scan_duplicate; /*!< ext scan duplicate scan */
|
|
|
esp_ble_ext_scan_cfg_mask_t cfg_mask; /*!< ext scan config mask */
|
|
esp_ble_ext_scan_cfg_mask_t cfg_mask; /*!< ext scan config mask */
|
|
@@ -997,7 +997,7 @@ typedef union {
|
|
|
struct ble_pkt_data_length_cmpl_evt_param {
|
|
struct ble_pkt_data_length_cmpl_evt_param {
|
|
|
esp_bt_status_t status; /*!< Indicate the set pkt data length operation success status */
|
|
esp_bt_status_t status; /*!< Indicate the set pkt data length operation success status */
|
|
|
esp_ble_pkt_data_length_params_t params; /*!< pkt data length value */
|
|
esp_ble_pkt_data_length_params_t params; /*!< pkt data length value */
|
|
|
- } pkt_data_lenth_cmpl; /*!< Event parameter of ESP_GAP_BLE_SET_PKT_LENGTH_COMPLETE_EVT */
|
|
|
|
|
|
|
+ } pkt_data_length_cmpl; /*!< Event parameter of ESP_GAP_BLE_SET_PKT_LENGTH_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
* @brief ESP_GAP_BLE_SET_LOCAL_PRIVACY_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_SET_LOCAL_PRIVACY_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
@@ -1039,7 +1039,7 @@ typedef union {
|
|
|
*/
|
|
*/
|
|
|
struct ble_update_whitelist_cmpl_evt_param {
|
|
struct ble_update_whitelist_cmpl_evt_param {
|
|
|
esp_bt_status_t status; /*!< Indicate the add or remove whitelist operation success status */
|
|
esp_bt_status_t status; /*!< Indicate the add or remove whitelist operation success status */
|
|
|
- esp_ble_wl_opration_t wl_opration; /*!< The value is ESP_BLE_WHITELIST_ADD if add address to whitelist operation success, ESP_BLE_WHITELIST_REMOVE if remove address from the whitelist operation success */
|
|
|
|
|
|
|
+ esp_ble_wl_operation_t wl_operation; /*!< The value is ESP_BLE_WHITELIST_ADD if add address to whitelist operation success, ESP_BLE_WHITELIST_REMOVE if remove address from the whitelist operation success */
|
|
|
} update_whitelist_cmpl; /*!< Event parameter of ESP_GAP_BLE_UPDATE_WHITELIST_COMPLETE_EVT */
|
|
} update_whitelist_cmpl; /*!< Event parameter of ESP_GAP_BLE_UPDATE_WHITELIST_COMPLETE_EVT */
|
|
|
#if (BLE_42_FEATURE_SUPPORT == TRUE)
|
|
#if (BLE_42_FEATURE_SUPPORT == TRUE)
|
|
|
/**
|
|
/**
|
|
@@ -1070,17 +1070,17 @@ typedef union {
|
|
|
esp_ble_gap_phy_t rx_phy; /*!< rx phy type */
|
|
esp_ble_gap_phy_t rx_phy; /*!< rx phy type */
|
|
|
} read_phy; /*!< Event parameter of ESP_GAP_BLE_READ_PHY_COMPLETE_EVT */
|
|
} read_phy; /*!< Event parameter of ESP_GAP_BLE_READ_PHY_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
- * @brief ESP_GAP_BLE_SET_PREFERED_DEFAULT_PHY_COMPLETE_EVT
|
|
|
|
|
|
|
+ * @brief ESP_GAP_BLE_SET_PREFERRED_DEFAULT_PHY_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
|
struct ble_set_perf_def_phy_cmpl_evt_param {
|
|
struct ble_set_perf_def_phy_cmpl_evt_param {
|
|
|
esp_bt_status_t status; /*!< Indicate perf default phy set status */
|
|
esp_bt_status_t status; /*!< Indicate perf default phy set status */
|
|
|
- } set_perf_def_phy; /*!< Event parameter of ESP_GAP_BLE_SET_PREFERED_DEFAULT_PHY_COMPLETE_EVT */
|
|
|
|
|
|
|
+ } set_perf_def_phy; /*!< Event parameter of ESP_GAP_BLE_SET_PREFERRED_DEFAULT_PHY_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
- * @brief ESP_GAP_BLE_SET_PREFERED_PHY_COMPLETE_EVT
|
|
|
|
|
|
|
+ * @brief ESP_GAP_BLE_SET_PREFERRED_PHY_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
|
struct ble_set_perf_phy_cmpl_evt_param {
|
|
struct ble_set_perf_phy_cmpl_evt_param {
|
|
|
esp_bt_status_t status; /*!< Indicate perf phy set status */
|
|
esp_bt_status_t status; /*!< Indicate perf phy set status */
|
|
|
- } set_perf_phy; /*!< Event parameter of ESP_GAP_BLE_SET_PREFERED_PHY_COMPLETE_EVT */
|
|
|
|
|
|
|
+ } set_perf_phy; /*!< Event parameter of ESP_GAP_BLE_SET_PREFERRED_PHY_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
* @brief ESP_GAP_BLE_EXT_ADV_SET_RAND_ADDR_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_EXT_ADV_SET_RAND_ADDR_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
@@ -1103,7 +1103,7 @@ typedef union {
|
|
|
* @brief ESP_GAP_BLE_EXT_SCAN_RSP_DATA_SET_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_EXT_SCAN_RSP_DATA_SET_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
|
struct ble_ext_adv_scan_rsp_set_cmpl_evt_param {
|
|
struct ble_ext_adv_scan_rsp_set_cmpl_evt_param {
|
|
|
- esp_bt_status_t status; /*!< Indicate extend advertising sacn response data set status */
|
|
|
|
|
|
|
+ esp_bt_status_t status; /*!< Indicate extend advertising scan response data set status */
|
|
|
} scan_rsp_set; /*!< Event parameter of ESP_GAP_BLE_EXT_SCAN_RSP_DATA_SET_COMPLETE_EVT */
|
|
} scan_rsp_set; /*!< Event parameter of ESP_GAP_BLE_EXT_SCAN_RSP_DATA_SET_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
* @brief ESP_GAP_BLE_EXT_ADV_START_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_EXT_ADV_START_COMPLETE_EVT
|
|
@@ -1163,7 +1163,7 @@ typedef union {
|
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_CANCEL_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_CANCEL_COMPLETE_EVT
|
|
|
*/
|
|
*/
|
|
|
struct ble_period_adv_sync_cancel_cmpl_param {
|
|
struct ble_period_adv_sync_cancel_cmpl_param {
|
|
|
- esp_bt_status_t status; /*!< Indicate periodic advertising sync cancle status */
|
|
|
|
|
|
|
+ esp_bt_status_t status; /*!< Indicate periodic advertising sync cancel status */
|
|
|
} period_adv_sync_cancel; /*!< Event parameter of ESP_GAP_BLE_PERIODIC_ADV_SYNC_CANCEL_COMPLETE_EVT */
|
|
} period_adv_sync_cancel; /*!< Event parameter of ESP_GAP_BLE_PERIODIC_ADV_SYNC_CANCEL_COMPLETE_EVT */
|
|
|
/**
|
|
/**
|
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_TERMINATE_COMPLETE_EVT
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_TERMINATE_COMPLETE_EVT
|
|
@@ -1236,12 +1236,12 @@ typedef union {
|
|
|
esp_bd_addr_t scan_addr; /*!< scanner address */
|
|
esp_bd_addr_t scan_addr; /*!< scanner address */
|
|
|
} scan_req_received; /*!< Event parameter of ESP_GAP_BLE_SCAN_REQ_RECEIVED_EVT */
|
|
} scan_req_received; /*!< Event parameter of ESP_GAP_BLE_SCAN_REQ_RECEIVED_EVT */
|
|
|
/**
|
|
/**
|
|
|
- * @brief ESP_GAP_BLE_CHANNEL_SELETE_ALGORITHM_EVT
|
|
|
|
|
|
|
+ * @brief ESP_GAP_BLE_CHANNEL_SELECT_ALGORITHM_EVT
|
|
|
*/
|
|
*/
|
|
|
struct ble_channel_sel_alg_param {
|
|
struct ble_channel_sel_alg_param {
|
|
|
uint16_t conn_handle; /*!< connection handle */
|
|
uint16_t conn_handle; /*!< connection handle */
|
|
|
uint8_t channel_sel_alg; /*!< channel selection algorithm */
|
|
uint8_t channel_sel_alg; /*!< channel selection algorithm */
|
|
|
- } channel_sel_alg; /*!< Event parameter of ESP_GAP_BLE_CHANNEL_SELETE_ALGORITHM_EVT */
|
|
|
|
|
|
|
+ } channel_sel_alg; /*!< Event parameter of ESP_GAP_BLE_CHANNEL_SELECT_ALGORITHM_EVT */
|
|
|
/**
|
|
/**
|
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_LOST_EVT
|
|
* @brief ESP_GAP_BLE_PERIODIC_ADV_SYNC_LOST_EVT
|
|
|
*/
|
|
*/
|
|
@@ -1523,7 +1523,7 @@ esp_err_t esp_ble_gap_set_prefer_conn_params(esp_bd_addr_t bd_addr,
|
|
|
esp_err_t esp_ble_gap_set_device_name(const char *name);
|
|
esp_err_t esp_ble_gap_set_device_name(const char *name);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @brief This function is called to get local used address and adress type.
|
|
|
|
|
|
|
+ * @brief This function is called to get local used address and address type.
|
|
|
* uint8_t *esp_bt_dev_get_address(void) get the public address
|
|
* uint8_t *esp_bt_dev_get_address(void) get the public address
|
|
|
*
|
|
*
|
|
|
* @param[in] local_used_addr - current local used ble address (six bytes)
|
|
* @param[in] local_used_addr - current local used ble address (six bytes)
|
|
@@ -1849,7 +1849,7 @@ esp_err_t esp_ble_gap_read_phy(esp_bd_addr_t bd_addr);
|
|
|
* - other : failed
|
|
* - other : failed
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
-esp_err_t esp_ble_gap_set_prefered_default_phy(esp_ble_gap_phy_mask_t tx_phy_mask, esp_ble_gap_phy_mask_t rx_phy_mask);
|
|
|
|
|
|
|
+esp_err_t esp_ble_gap_set_preferred_default_phy(esp_ble_gap_phy_mask_t tx_phy_mask, esp_ble_gap_phy_mask_t rx_phy_mask);
|
|
|
/**
|
|
/**
|
|
|
* @brief This function is used to set the PHY preferences for the connection identified by the remote address.
|
|
* @brief This function is used to set the PHY preferences for the connection identified by the remote address.
|
|
|
* The Controller might not be able to make the change (e.g. because the peer does not support the requested PHY)
|
|
* The Controller might not be able to make the change (e.g. because the peer does not support the requested PHY)
|
|
@@ -1865,7 +1865,7 @@ esp_err_t esp_ble_gap_set_prefered_default_phy(esp_ble_gap_phy_mask_t tx_phy_mas
|
|
|
* - other : failed
|
|
* - other : failed
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
-esp_err_t esp_ble_gap_set_prefered_phy(esp_bd_addr_t bd_addr,
|
|
|
|
|
|
|
+esp_err_t esp_ble_gap_set_preferred_phy(esp_bd_addr_t bd_addr,
|
|
|
esp_ble_gap_all_phys_t all_phys_mask,
|
|
esp_ble_gap_all_phys_t all_phys_mask,
|
|
|
esp_ble_gap_phy_mask_t tx_phy_mask,
|
|
esp_ble_gap_phy_mask_t tx_phy_mask,
|
|
|
esp_ble_gap_phy_mask_t rx_phy_mask,
|
|
esp_ble_gap_phy_mask_t rx_phy_mask,
|