|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Audio Stream Control Service (ASCS). More...
Data Structures | |
| struct | bt_bap_ascs_rsp |
| Structure storing values of fields of ASE Control Point notification. More... | |
| struct | bt_bap_qos_cfg_pref |
| Audio Stream Quality of Service Preference structure. More... | |
| struct | bt_ascs_cb |
| ASCS callback structure. More... | |
| struct | bt_ascs_register_param |
| Parameters for registering the Audio Stream Control Service (ASCS). More... | |
Macros | |
| #define | BT_BAP_ASCS_RSP(c, r) |
| Macro used to initialise the object storing values of ASE Control Point notification. | |
| #define | BT_BAP_QOS_CFG_PREF(_unframed_supported, _phy, _rtn, _latency, _pd_min, _pd_max, _pref_pd_min, _pref_pd_max) |
| Helper to declare elements of bt_bap_qos_cfg_pref. | |
Functions | |
| int | bt_ascs_register (const struct bt_ascs_register_param *param) |
| Register the Audio Stream Control Service (ASCS). | |
| int | bt_ascs_unregister (void) |
| Unregister the Audio Stream Control Service (ASCS). | |
Audio Stream Control Service (ASCS).
The Audio Stream Control Service (ASCS) exposes Audio Stream Endpoints (ASEs), which enables clients to control the ASEs and their associated unicast audio streams.
| #define BT_BAP_ASCS_RSP | ( | c, | |
| r ) |
#include <zephyr/bluetooth/audio/ascs.h>
Macro used to initialise the object storing values of ASE Control Point notification.
| c | Response Code field |
| r | Reason field - bt_bap_ascs_reason or bt_audio_metadata_type (see notes in bt_bap_ascs_rsp). |
| #define BT_BAP_QOS_CFG_PREF | ( | _unframed_supported, | |
| _phy, | |||
| _rtn, | |||
| _latency, | |||
| _pd_min, | |||
| _pd_max, | |||
| _pref_pd_min, | |||
| _pref_pd_max ) |
#include <zephyr/bluetooth/audio/ascs.h>
Helper to declare elements of bt_bap_qos_cfg_pref.
| _unframed_supported | Unframed PDUs supported |
| _phy | Preferred Target PHY |
| _rtn | Preferred Retransmission number |
| _latency | Preferred Maximum Transport Latency (msec) |
| _pd_min | Minimum Presentation Delay (usec) |
| _pd_max | Maximum Presentation Delay (usec) |
| _pref_pd_min | Preferred Minimum Presentation Delay (usec) |
| _pref_pd_max | Preferred Maximum Presentation Delay (usec) |
| enum bt_bap_ascs_reason |
#include <zephyr/bluetooth/audio/ascs.h>
Response Reasons.
These are used if the bt_bap_ascs_rsp_code value is BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED, BT_BAP_ASCS_RSP_CODE_CONF_REJECTED or BT_BAP_ASCS_RSP_CODE_CONF_INVALID.
| enum bt_bap_ascs_rsp_code |
#include <zephyr/bluetooth/audio/ascs.h>
Response Status Code.
These are sent by the server to the client when a stream operation is requested.
| int bt_ascs_register | ( | const struct bt_ascs_register_param * | param | ) |
#include <zephyr/bluetooth/audio/ascs.h>
Register the Audio Stream Control Service (ASCS).
This will initialize the service and expose it in the GATT database, as well as the provided number of sink and source ASE characteristics.
| param | Parameters for the service |
| 0 | Success. |
| -EINVAL | param is NULL or contains invalid values, or bt_gatt_service_register() failed. |
| -EALREADY | ASCS already registered. |
| -EADDRINUSE | ISO server is already registered with bt_iso_server_register(). |
| -ENOTSUP | Controller does not support ISO. |
| int bt_ascs_unregister | ( | void | ) |
#include <zephyr/bluetooth/audio/ascs.h>
Unregister the Audio Stream Control Service (ASCS).
This will release all streams and remove the service from the GATT database.
| 0 | Success. |
| -ENOENT | if bt_gatt_service_unregister() failed to unregister the service. |
| -EALREADY | ASCS already unregistered. |