mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(ble_audio): Support Zephyr LE Audio v4.4.1
This commit is contained in:
@@ -99,13 +99,25 @@ esp_err_t esp_ble_audio_ccp_call_control_server_set_bearer_provider_name(
|
||||
/**
|
||||
* @brief Get the bearer provider name.
|
||||
*
|
||||
* @param bearer The bearer to get the name for.
|
||||
* @param name Pointer that will be updated to be the bearer provider name.
|
||||
* @param bearer The bearer to get the name for.
|
||||
* @param name Buffer that will be populated with the bearer provider name.
|
||||
* @param name_size The size of the @p name buffer.
|
||||
*
|
||||
* @return ESP_OK on success, or an error code on failure.
|
||||
*/
|
||||
esp_err_t esp_ble_audio_ccp_call_control_server_get_bearer_provider_name(
|
||||
esp_ble_audio_ccp_call_control_server_bearer_t *bearer, const char **name);
|
||||
esp_ble_audio_ccp_call_control_server_bearer_t *bearer, char *name, size_t name_size);
|
||||
|
||||
/**
|
||||
* @brief Get the bearer UCI.
|
||||
*
|
||||
* @param bearer The bearer to get the UCI for.
|
||||
* @param uci Buffer of size BT_TBS_MAX_UCI_SIZE that the bearer UCI will be written to.
|
||||
*
|
||||
* @return ESP_OK on success, or an error code on failure.
|
||||
*/
|
||||
esp_err_t esp_ble_audio_ccp_call_control_server_get_bearer_uci(
|
||||
esp_ble_audio_ccp_call_control_server_bearer_t *bearer, char *uci);
|
||||
|
||||
/**
|
||||
* @brief Discovers the Telephone Bearer Service (TBS) support on a remote device.
|
||||
|
||||
@@ -318,15 +318,12 @@ esp_err_t esp_ble_audio_tbs_set_status_flags(uint8_t bearer_index, uint16_t stat
|
||||
/**
|
||||
* @brief Sets the URI scheme list of a bearer.
|
||||
*
|
||||
* @param bearer_index The index of the Telephone Bearer.
|
||||
* @param uri_list List of URI prefixes (e.g. {"skype", "tel"}).
|
||||
* @param uri_count Number of URI prefixes in @p uri_list.
|
||||
* @param bearer_index The index of the Telephone Bearer.
|
||||
* @param uri_scheme_list Comma-separated list of URI prefixes (e.g. "skype,tel").
|
||||
*
|
||||
* @return ESP_OK on success, or an error code on failure.
|
||||
*/
|
||||
esp_err_t esp_ble_audio_tbs_set_uri_scheme_list(uint8_t bearer_index,
|
||||
const char **uri_list,
|
||||
uint8_t uri_count);
|
||||
esp_err_t esp_ble_audio_tbs_set_uri_scheme_list(uint8_t bearer_index, const char *uri_scheme_list);
|
||||
|
||||
/**
|
||||
* @brief Register the callbacks for TBS.
|
||||
@@ -628,6 +625,16 @@ esp_err_t esp_ble_audio_tbs_client_register_cb(esp_ble_audio_tbs_client_cb_t *cb
|
||||
*/
|
||||
esp_ble_audio_tbs_instance_t *esp_ble_audio_tbs_client_get_by_ccid(uint16_t conn_handle, uint8_t ccid);
|
||||
|
||||
/**
|
||||
* @brief Look up Telephone Bearer Service instance by index.
|
||||
*
|
||||
* @param conn_handle Connection handle.
|
||||
* @param index The index to lookup a service instance for.
|
||||
*
|
||||
* @return Pointer to TBS instance if found, NULL otherwise.
|
||||
*/
|
||||
esp_ble_audio_tbs_instance_t *esp_ble_audio_tbs_client_get_by_index(uint16_t conn_handle, uint8_t index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user