Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ascs.h File Reference

Bluetooth Audio Stream Control Service (ASCS) APIs. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <zephyr/autoconf.h>
#include <zephyr/bluetooth/assigned_numbers.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/sys/util_macro.h>

Go to the source code of this file.

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.

Enumerations

enum  bt_bap_ascs_rsp_code {
  BT_BAP_ASCS_RSP_CODE_SUCCESS = 0x00U , BT_BAP_ASCS_RSP_CODE_NOT_SUPPORTED = 0x01U , BT_BAP_ASCS_RSP_CODE_INVALID_LENGTH = 0x02U , BT_BAP_ASCS_RSP_CODE_INVALID_ASE = 0x03U ,
  BT_BAP_ASCS_RSP_CODE_INVALID_ASE_STATE = 0x04U , BT_BAP_ASCS_RSP_CODE_INVALID_DIR = 0x05U , BT_BAP_ASCS_RSP_CODE_CAP_UNSUPPORTED = 0x06U , BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED = 0x07U ,
  BT_BAP_ASCS_RSP_CODE_CONF_REJECTED = 0x08U , BT_BAP_ASCS_RSP_CODE_CONF_INVALID = 0x09U , BT_BAP_ASCS_RSP_CODE_METADATA_UNSUPPORTED = 0x0AU , BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED = 0x0BU ,
  BT_BAP_ASCS_RSP_CODE_METADATA_INVALID = 0x0CU , BT_BAP_ASCS_RSP_CODE_NO_MEM = 0x0DU , BT_BAP_ASCS_RSP_CODE_UNSPECIFIED = 0x0EU
}
 Response Status Code. More...
enum  bt_bap_ascs_reason {
  BT_BAP_ASCS_REASON_NONE = 0x00U , BT_BAP_ASCS_REASON_CODEC = 0x01U , BT_BAP_ASCS_REASON_CODEC_DATA = 0x02U , BT_BAP_ASCS_REASON_INTERVAL = 0x03U ,
  BT_BAP_ASCS_REASON_FRAMING = 0x04U , BT_BAP_ASCS_REASON_PHY = 0x05U , BT_BAP_ASCS_REASON_SDU = 0x06U , BT_BAP_ASCS_REASON_RTN = 0x07U ,
  BT_BAP_ASCS_REASON_LATENCY = 0x08U , BT_BAP_ASCS_REASON_PD = 0x09U , BT_BAP_ASCS_REASON_CIS = 0x0AU
}
 Response Reasons. More...

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).

Detailed Description

Bluetooth Audio Stream Control Service (ASCS) APIs.