fix(ble/bluedroid): move setting host feature API to GAP
This commit is contained in:
@@ -26,7 +26,6 @@ typedef enum {
|
||||
ESP_BLE_ISO_BIG_SYNC_TERMINATE_CMPL_EVT, /*!< When BIG sync terminate complete, the event comes */
|
||||
ESP_BLE_ISO_BIGINFO_ADV_REPORT_EVT, /*!< When receiving an Advertising PDU that contained a BIGInfo field, the event comes */
|
||||
ESP_BLE_ISO_ISO_DATA_PATH_UPDATE_EVT, /*!< When ISO data path update complete, the event comes */
|
||||
ESP_BLE_ISO_SET_HOST_FEATURE_CMPL_EVT, /*!< When host feature set complete, the event comes */
|
||||
ESP_BLE_ISO_READ_ISO_TX_SYNC_CMPL_EVT, /*!< When reading tx sync complete, the event comes */
|
||||
ESP_BLE_ISO_READ_LINK_QUALITY_CMPL_EVT, /*!< When reading link quality complete, the event comes */
|
||||
ESP_BLE_ISO_SET_CIG_PARAMS_CMPL_EVT, /*!< When CIG parameters set complete, the event comes */
|
||||
@@ -295,12 +294,6 @@ typedef union {
|
||||
ESP_BLE_ISO_DATA_PATH_UPDATE_TYPE op_type; /*!< data path update type, setup or remove */
|
||||
uint16_t iso_hdl; /*!< Connection handle of the CIS or BIS */
|
||||
} data_path; /*!< Event parameter of ESP_BLE_ISO_ISO_DATA_PATH_UPDATE_EVT */
|
||||
/**
|
||||
* @brief ESP_BLE_ISO_SET_HOST_FEATURE_CMPL_EVT
|
||||
*/
|
||||
struct ble_iso_set_host_feature_evt_param {
|
||||
esp_bt_status_t status; /*!< Indicate host feature update success status */
|
||||
} host_feature; /*!< Event parameter of ESP_BLE_ISO_SET_HOST_FEATURE_CMPL_EVT */
|
||||
/**
|
||||
* @brief ESP_BLE_ISO_READ_ISO_TX_SYNC_CMPL_EVT
|
||||
*/
|
||||
@@ -529,19 +522,6 @@ esp_err_t esp_ble_iso_set_iso_data_path(esp_ble_iso_set_data_path_params_t *data
|
||||
*/
|
||||
esp_err_t esp_ble_iso_remove_iso_data_path(esp_ble_iso_remove_data_path_params_t *data_path_params);
|
||||
|
||||
/**
|
||||
* @brief This function is called to set host feature.
|
||||
*
|
||||
* @param[in] bit_num: the bit position in the FeatureSet.
|
||||
* @param[in] bit_val: the feature is enabled or disabled
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK : success
|
||||
* - other : failed
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_ble_iso_set_host_feature(uint16_t bit_num, uint8_t bit_val);
|
||||
|
||||
/**
|
||||
* @brief This function is called to read tx sync.
|
||||
*
|
||||
|
||||
@@ -244,6 +244,7 @@ typedef enum {
|
||||
ESP_GAP_BLE_SET_DEFAULT_SUBRATE_COMPLETE_EVT, /*!< when set default subrate complete, the event comes */
|
||||
ESP_GAP_BLE_SUBRATE_REQUEST_COMPLETE_EVT, /*!< when subrate request command complete, the event comes */
|
||||
ESP_GAP_BLE_SUBRATE_CHANGE_EVT, /*!< when Connection Subrate Update procedure has completed and some parameters of the specified connection have changed, the event comes */
|
||||
ESP_GAP_BLE_SET_HOST_FEATURE_CMPL_EVT, /*!< When host feature set complete, the event comes */
|
||||
ESP_GAP_BLE_EVT_MAX, /*!< when maximum advertising event complete, the event comes */
|
||||
} esp_gap_ble_cb_event_t;
|
||||
|
||||
@@ -1775,6 +1776,14 @@ typedef union {
|
||||
uint16_t supervision_timeout; /*!< New supervision timeout for this connection(Time = N × 10 ms). Range: 0x000A to 0x0C80, Time Range: 100 ms to 32 s */
|
||||
} subrate_change_evt; /*!< Event parameter of ESP_GAP_BLE_SUBRATE_CHANGE_EVT */
|
||||
#endif // #if (BLE_FEAT_CONN_SUBRATING == TRUE)
|
||||
#if (BLE_50_FEATURE_SUPPORT == TRUE)
|
||||
/**
|
||||
* @brief ESP_GAP_BLE_SET_HOST_FEATURE_CMPL_EVT
|
||||
*/
|
||||
struct ble_set_host_feature_evt_param {
|
||||
esp_bt_status_t status; /*!< Indicate host feature update success status */
|
||||
} host_feature; /*!< Event parameter of ESP_GAP_BLE_SET_HOST_FEATURE_CMPL_EVT */
|
||||
#endif // #if (BLE_50_FEATURE_SUPPORT == TRUE)
|
||||
} esp_ble_gap_cb_param_t;
|
||||
|
||||
/**
|
||||
@@ -3096,6 +3105,19 @@ esp_err_t esp_ble_gap_set_default_subrate(esp_ble_default_subrate_param_t *defau
|
||||
*/
|
||||
esp_err_t esp_ble_gap_subrate_request(esp_ble_subrate_req_param_t *subrate_req_params);
|
||||
|
||||
/**
|
||||
* @brief This function is called to set host feature.
|
||||
*
|
||||
* @param[in] bit_num: the bit position in the FeatureSet.
|
||||
* @param[in] bit_val: the feature is enabled or disabled
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK : success
|
||||
* - other : failed
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_ble_gap_set_host_feature(uint16_t bit_num, uint8_t bit_val);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user