Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bap.h
Go to the documentation of this file.
1
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_
12
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32
35
38
41
44};
45
50
53
56
59};
60
65
68};
69
71#define BT_BAP_PA_INTERVAL_UNKNOWN 0xFFFF
72
78#define BT_BAP_BIS_SYNC_NO_PREF 0xFFFFFFFF
79
84
87
90
93
96
99
102};
103
141};
142
173};
174
191
197 union {
214
224 };
225};
226
234#define BT_BAP_ASCS_RSP(c, r) (struct bt_bap_ascs_rsp) { .code = c, .reason = r }
235
237struct bt_bap_broadcast_source;
238
240struct bt_bap_broadcast_sink;
241
243struct bt_bap_unicast_group;
244
246struct bt_bap_ep;
247
252
255
256#if defined(CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE)
258 uint8_t metadata[CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE];
259#endif /* CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE */
260};
261
266
269
272
275
278
281
287
290
292 struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS];
293};
294
305 void (*recv_state_updated)(struct bt_conn *conn,
306 const struct bt_bap_scan_delegator_recv_state *recv_state);
307
329 int (*pa_sync_req)(struct bt_conn *conn,
330 const struct bt_bap_scan_delegator_recv_state *recv_state,
331 bool past_avail, uint16_t pa_interval);
332
346 int (*pa_sync_term_req)(struct bt_conn *conn,
347 const struct bt_bap_scan_delegator_recv_state *recv_state);
348
360 void (*broadcast_code)(struct bt_conn *conn,
361 const struct bt_bap_scan_delegator_recv_state *recv_state,
384 int (*bis_sync_req)(struct bt_conn *conn,
385 const struct bt_bap_scan_delegator_recv_state *recv_state,
386 const uint32_t bis_sync_req[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]);
387};
388
393
396
399
402
405
408
412 struct bt_bap_ep *paired_ep;
413};
414
424int bt_bap_ep_get_info(const struct bt_bap_ep *ep, struct bt_bap_ep_info *info);
425
436 struct bt_conn *conn;
437
439 struct bt_bap_ep *ep;
440
443
446
449
450#if defined(CONFIG_BT_BAP_UNICAST_CLIENT)
456 struct bt_bap_iso *bap_iso;
457#endif /* CONFIG_BT_BAP_UNICAST_CLIENT */
458
460 void *group;
461
464
465#if defined(CONFIG_BT_BAP_DEBUG_STREAM_SEQ_NUM)
466 uint16_t _prev_seq_num;
467#endif /* CONFIG_BT_BAP_DEBUG_STREAM_SEQ_NUM */
468
469 /* Internally used list node */
470 sys_snode_t _node;
471};
472
475#if defined(CONFIG_BT_BAP_UNICAST)
484 void (*configured)(struct bt_bap_stream *stream,
485 const struct bt_audio_codec_qos_pref *pref);
486
495 void (*qos_set)(struct bt_bap_stream *stream);
496
504 void (*enabled)(struct bt_bap_stream *stream);
505
514 void (*metadata_updated)(struct bt_bap_stream *stream);
515
523 void (*disabled)(struct bt_bap_stream *stream);
524
533 void (*released)(struct bt_bap_stream *stream);
534#endif /* CONFIG_BT_BAP_UNICAST */
535
544 void (*started)(struct bt_bap_stream *stream);
545
554 void (*stopped)(struct bt_bap_stream *stream, uint8_t reason);
555
556#if defined(CONFIG_BT_AUDIO_RX)
568 void (*recv)(struct bt_bap_stream *stream, const struct bt_iso_recv_info *info,
569 struct net_buf *buf);
570#endif /* CONFIG_BT_AUDIO_RX */
571
572#if defined(CONFIG_BT_AUDIO_TX)
585 void (*sent)(struct bt_bap_stream *stream);
586#endif /* CONFIG_BT_AUDIO_TX */
587
600 void (*connected)(struct bt_bap_stream *stream);
601
614 void (*disconnected)(struct bt_bap_stream *stream, uint8_t reason);
615};
616
626
640int bt_bap_stream_config(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_bap_ep *ep,
642
657
670int bt_bap_stream_qos(struct bt_conn *conn, struct bt_bap_unicast_group *group);
671
686int bt_bap_stream_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len);
687
699int bt_bap_stream_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len);
700
714
740
755
770
785int bt_bap_stream_send(struct bt_bap_stream *stream, struct net_buf *buf, uint16_t seq_num);
786
803int bt_bap_stream_send_ts(struct bt_bap_stream *stream, struct net_buf *buf, uint16_t seq_num,
804 uint32_t ts);
805
825
852 int (*config)(struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir,
853 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream,
854 struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp);
855
872 int (*reconfig)(struct bt_bap_stream *stream, enum bt_audio_dir dir,
873 const struct bt_audio_codec_cfg *codec_cfg,
874 struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp);
875
889 int (*qos)(struct bt_bap_stream *stream, const struct bt_audio_codec_qos *qos,
890 struct bt_bap_ascs_rsp *rsp);
891
905 int (*enable)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len,
906 struct bt_bap_ascs_rsp *rsp);
907
919 int (*start)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp);
920
934 int (*metadata)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len,
935 struct bt_bap_ascs_rsp *rsp);
936
948 int (*disable)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp);
949
961 int (*stop)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp);
962
975 int (*release)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp);
976};
977
989
1001
1009typedef void (*bt_bap_ep_func_t)(struct bt_bap_ep *ep, void *user_data);
1010
1018void bt_bap_unicast_server_foreach_ep(struct bt_conn *conn, bt_bap_ep_func_t func, void *user_data);
1019
1030int bt_bap_unicast_server_config_ase(struct bt_conn *conn, struct bt_bap_stream *stream,
1031 struct bt_audio_codec_cfg *codec_cfg,
1032 const struct bt_audio_codec_qos_pref *qos_pref);
1033 /* End of group bt_bap_unicast_server */
1035
1046
1049};
1050
1059
1062};
1063
1067
1070
1078
1079#if defined(CONFIG_BT_ISO_TEST_PARAMS)
1087 uint8_t c_to_p_ft;
1088
1096 uint8_t p_to_c_ft;
1097
1105 uint16_t iso_interval;
1106#endif /* CONFIG_BT_ISO_TEST_PARAMS */
1107};
1108
1121 struct bt_bap_unicast_group **unicast_group);
1122
1142int bt_bap_unicast_group_add_streams(struct bt_bap_unicast_group *unicast_group,
1144 size_t num_param);
1145
1156int bt_bap_unicast_group_delete(struct bt_bap_unicast_group *unicast_group);
1157
1172 void (*location)(struct bt_conn *conn, enum bt_audio_dir dir, enum bt_audio_location loc);
1173
1186 void (*available_contexts)(struct bt_conn *conn, enum bt_audio_context snk_ctx,
1187 enum bt_audio_context src_ctx);
1188
1198 void (*config)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1199 enum bt_bap_ascs_reason reason);
1200
1213 void (*qos)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1214 enum bt_bap_ascs_reason reason);
1215
1226 void (*enable)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1227 enum bt_bap_ascs_reason reason);
1228
1241 void (*start)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1242 enum bt_bap_ascs_reason reason);
1243
1256 void (*stop)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1257 enum bt_bap_ascs_reason reason);
1258
1269 void (*disable)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1270 enum bt_bap_ascs_reason reason);
1271
1282 void (*metadata)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1283 enum bt_bap_ascs_reason reason);
1284
1295 void (*release)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code,
1296 enum bt_bap_ascs_reason reason);
1297
1312 void (*pac_record)(struct bt_conn *conn, enum bt_audio_dir dir,
1313 const struct bt_audio_codec_cap *codec_cap);
1314
1326 void (*endpoint)(struct bt_conn *conn, enum bt_audio_dir dir, struct bt_bap_ep *ep);
1327
1340 void (*discover)(struct bt_conn *conn, int err, enum bt_audio_dir dir);
1341};
1342
1354
1364int bt_bap_unicast_client_discover(struct bt_conn *conn, enum bt_audio_dir dir);
1365 /* End of group bt_bap_unicast_client */
1375struct bt_bap_base_subgroup;
1377struct bt_bap_base;
1378
1387};
1388
1391 /* Unique index of the BIS */
1397};
1398
1407const struct bt_bap_base *bt_bap_base_get_base_from_ad(const struct bt_data *ad);
1408
1417int bt_bap_base_get_pres_delay(const struct bt_bap_base *base);
1418
1427int bt_bap_base_get_subgroup_count(const struct bt_bap_base *base);
1428
1438int bt_bap_base_get_bis_indexes(const struct bt_bap_base *base, uint32_t *bis_indexes);
1439
1451int bt_bap_base_foreach_subgroup(const struct bt_bap_base *base,
1452 bool (*func)(const struct bt_bap_base_subgroup *subgroup,
1453 void *user_data),
1454 void *user_data);
1455
1465int bt_bap_base_get_subgroup_codec_id(const struct bt_bap_base_subgroup *subgroup,
1466 struct bt_bap_base_codec_id *codec_id);
1467
1477int bt_bap_base_get_subgroup_codec_data(const struct bt_bap_base_subgroup *subgroup,
1478 uint8_t **data);
1479
1489int bt_bap_base_get_subgroup_codec_meta(const struct bt_bap_base_subgroup *subgroup,
1490 uint8_t **meta);
1491
1502int bt_bap_base_subgroup_codec_to_codec_cfg(const struct bt_bap_base_subgroup *subgroup,
1503 struct bt_audio_codec_cfg *codec_cfg);
1504
1513int bt_bap_base_get_subgroup_bis_count(const struct bt_bap_base_subgroup *subgroup);
1514
1524int bt_bap_base_subgroup_get_bis_indexes(const struct bt_bap_base_subgroup *subgroup,
1525 uint32_t *bis_indexes);
1526
1538int bt_bap_base_subgroup_foreach_bis(const struct bt_bap_base_subgroup *subgroup,
1539 bool (*func)(const struct bt_bap_base_subgroup_bis *bis,
1540 void *user_data),
1541 void *user_data);
1542
1557 struct bt_audio_codec_cfg *codec_cfg);
1558 /* End of group bt_bap_broadcast */
1560
1572
1573#if CONFIG_BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE > 0
1579 size_t data_len;
1580
1582 uint8_t *data;
1583#endif /* CONFIG_BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE > 0 */
1584};
1585
1590
1593
1596};
1597
1602
1605
1608
1617
1620
1632
1633#if defined(CONFIG_BT_ISO_TEST_PARAMS)
1641 uint8_t irc;
1642
1649 uint8_t pto;
1650
1658 uint16_t iso_interval;
1659#endif /* CONFIG_BT_ISO_TEST_PARAMS */
1660};
1661
1679 struct bt_bap_broadcast_source **source);
1680
1700int bt_bap_broadcast_source_reconfig(struct bt_bap_broadcast_source *source,
1701 struct bt_bap_broadcast_source_param *param);
1702
1715int bt_bap_broadcast_source_update_metadata(struct bt_bap_broadcast_source *source,
1716 const uint8_t meta[], size_t meta_len);
1717
1729int bt_bap_broadcast_source_start(struct bt_bap_broadcast_source *source,
1730 struct bt_le_ext_adv *adv);
1731
1742int bt_bap_broadcast_source_stop(struct bt_bap_broadcast_source *source);
1743
1754int bt_bap_broadcast_source_delete(struct bt_bap_broadcast_source *source);
1755
1769int bt_bap_broadcast_source_get_id(struct bt_bap_broadcast_source *source,
1770 uint32_t *const broadcast_id);
1771
1786int bt_bap_broadcast_source_get_base(struct bt_bap_broadcast_source *source,
1787 struct net_buf_simple *base_buf);
1788 /* End of bt_bap_broadcast_source */
1790
1809 void (*base_recv)(struct bt_bap_broadcast_sink *sink, const struct bt_bap_base *base,
1810 size_t base_size);
1811
1823 void (*syncable)(struct bt_bap_broadcast_sink *sink, const struct bt_iso_biginfo *biginfo);
1824
1825 /* Internally used list node */
1826 sys_snode_t _node;
1827};
1828
1834
1853int bt_bap_broadcast_sink_create(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id,
1854 struct bt_bap_broadcast_sink **sink);
1855
1874int bt_bap_broadcast_sink_sync(struct bt_bap_broadcast_sink *sink, uint32_t indexes_bitfield,
1875 struct bt_bap_stream *streams[], const uint8_t broadcast_code[16]);
1876
1886int bt_bap_broadcast_sink_stop(struct bt_bap_broadcast_sink *sink);
1887
1898int bt_bap_broadcast_sink_delete(struct bt_bap_broadcast_sink *sink);
1899 /* End of group bt_bap_broadcast_sink */
1901
1908
1923 enum bt_bap_pa_state pa_state);
1924
1934 uint8_t src_id,
1935 uint32_t bis_synced[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]);
1936
1939 struct bt_le_per_adv_sync *pa_sync;
1940
1943
1946
1949
1951 struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS];
1952};
1953
1968
1972
1975
1978
1981
1988 struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS];
1989};
1990
2005
2020
2032 const struct bt_bap_scan_delegator_recv_state *recv_state, void *user_data);
2033
2040 void *user_data);
2041
2050 bt_bap_scan_delegator_state_func_t func, void *user_data);
2051
2052/******************************** CLIENT API ********************************/
2053
2060typedef void (*bt_bap_broadcast_assistant_write_cb)(struct bt_conn *conn,
2061 int err);
2062
2073 void (*discover)(struct bt_conn *conn, int err,
2074 uint8_t recv_state_count);
2075
2085 void (*scan)(const struct bt_le_scan_recv_info *info,
2086 uint32_t broadcast_id);
2087
2097 void (*recv_state)(struct bt_conn *conn, int err,
2099
2106 void (*recv_state_removed)(struct bt_conn *conn, uint8_t src_id);
2107
2114 void (*scan_start)(struct bt_conn *conn, int err);
2115
2122 void (*scan_stop)(struct bt_conn *conn, int err);
2123
2130 void (*add_src)(struct bt_conn *conn, int err);
2131
2138 void (*mod_src)(struct bt_conn *conn, int err);
2139
2146 void (*broadcast_code)(struct bt_conn *conn, int err);
2147
2154 void (*rem_src)(struct bt_conn *conn, int err);
2155
2156 sys_snode_t _node;
2157};
2158
2168int bt_bap_broadcast_assistant_discover(struct bt_conn *conn);
2169
2188 bool start_scan);
2189
2197
2208
2219
2220
2225
2228
2231
2234
2241
2244
2247};
2248
2258 struct bt_conn *conn, const struct bt_bap_broadcast_assistant_add_src_param *param);
2259
2264
2267
2274
2277
2280};
2281
2290 struct bt_conn *conn, const struct bt_bap_broadcast_assistant_mod_src_param *param);
2291
2301 struct bt_conn *conn, uint8_t src_id,
2302 const uint8_t broadcast_code[BT_AUDIO_BROADCAST_CODE_SIZE]);
2303
2311int bt_bap_broadcast_assistant_rem_src(struct bt_conn *conn, uint8_t src_id);
2312
2322 uint8_t idx);
2323 /* end of bt_bap */
2325
2326#ifdef __cplusplus
2327}
2328#endif
2329
2330#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_ */
Bluetooth Audio handling.
Bluetooth connection handling.
static ssize_t recv(int sock, void *buf, size_t max_len, int flags)
POSIX wrapper for zsock_recv.
Definition: socket.h:923
bt_audio_dir
Audio Capability type.
Definition: audio.h:635
bt_audio_location
Location values for BT Audio.
Definition: audio.h:485
#define BT_AUDIO_BROADCAST_CODE_SIZE
Definition: audio.h:42
bt_audio_metadata_type
Codec metadata type IDs.
Definition: audio.h:350
bt_audio_context
Audio Context Type for Generic Audio.
Definition: audio.h:282
int bt_bap_broadcast_sink_create(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id, struct bt_bap_broadcast_sink **sink)
Create a Broadcast Sink from a periodic advertising sync.
int bt_bap_broadcast_sink_stop(struct bt_bap_broadcast_sink *sink)
Stop audio broadcast sink.
int bt_bap_broadcast_sink_register_cb(struct bt_bap_broadcast_sink_cb *cb)
Register Broadcast sink callbacks *.
int bt_bap_broadcast_sink_sync(struct bt_bap_broadcast_sink *sink, uint32_t indexes_bitfield, struct bt_bap_stream *streams[], const uint8_t broadcast_code[16])
Sync to a broadcaster's audio.
int bt_bap_broadcast_sink_delete(struct bt_bap_broadcast_sink *sink)
Release a broadcast sink.
int bt_bap_broadcast_source_get_id(struct bt_bap_broadcast_source *source, uint32_t *const broadcast_id)
Get the broadcast ID of a broadcast source.
int bt_bap_broadcast_source_delete(struct bt_bap_broadcast_source *source)
Delete audio broadcast source.
int bt_bap_broadcast_source_stop(struct bt_bap_broadcast_source *source)
Stop audio broadcast source.
int bt_bap_broadcast_source_reconfig(struct bt_bap_broadcast_source *source, struct bt_bap_broadcast_source_param *param)
Reconfigure audio broadcast source.
int bt_bap_broadcast_source_start(struct bt_bap_broadcast_source *source, struct bt_le_ext_adv *adv)
Start audio broadcast source.
int bt_bap_broadcast_source_create(struct bt_bap_broadcast_source_param *param, struct bt_bap_broadcast_source **source)
Create audio broadcast source.
int bt_bap_broadcast_source_get_base(struct bt_bap_broadcast_source *source, struct net_buf_simple *base_buf)
Get the Broadcast Audio Stream Endpoint of a broadcast source.
int bt_bap_broadcast_source_update_metadata(struct bt_bap_broadcast_source *source, const uint8_t meta[], size_t meta_len)
Modify the metadata of an audio broadcast source.
int bt_bap_base_get_subgroup_bis_count(const struct bt_bap_base_subgroup *subgroup)
Get the BIS count of a subgroup.
int bt_bap_base_get_subgroup_codec_data(const struct bt_bap_base_subgroup *subgroup, uint8_t **data)
Get the codec configuration data of a subgroup.
const struct bt_bap_base * bt_bap_base_get_base_from_ad(const struct bt_data *ad)
Generate a pointer to a BASE from periodic advertising data.
int bt_bap_base_subgroup_get_bis_indexes(const struct bt_bap_base_subgroup *subgroup, uint32_t *bis_indexes)
Get all BIS indexes of a subgroup.
int bt_bap_base_subgroup_foreach_bis(const struct bt_bap_base_subgroup *subgroup, bool(*func)(const struct bt_bap_base_subgroup_bis *bis, void *user_data), void *user_data)
Iterate on all BIS in the subgroup.
int bt_bap_base_foreach_subgroup(const struct bt_bap_base *base, bool(*func)(const struct bt_bap_base_subgroup *subgroup, void *user_data), void *user_data)
Iterate on all subgroups in the BASE.
int bt_bap_base_get_bis_indexes(const struct bt_bap_base *base, uint32_t *bis_indexes)
Get all BIS indexes of a BASE.
int bt_bap_base_subgroup_codec_to_codec_cfg(const struct bt_bap_base_subgroup *subgroup, struct bt_audio_codec_cfg *codec_cfg)
Store subgroup codec data in a Codec config parsing APIs.
int bt_bap_base_subgroup_bis_codec_to_codec_cfg(const struct bt_bap_base_subgroup_bis *bis, struct bt_audio_codec_cfg *codec_cfg)
Store BIS codec configuration data in a Codec config parsing APIs.
int bt_bap_base_get_subgroup_count(const struct bt_bap_base *base)
Get the subgroup count of a BASE.
int bt_bap_base_get_subgroup_codec_id(const struct bt_bap_base_subgroup *subgroup, struct bt_bap_base_codec_id *codec_id)
Get the codec ID of a subgroup.
int bt_bap_base_get_pres_delay(const struct bt_bap_base *base)
Get the presentation delay value of a BASE.
int bt_bap_base_get_subgroup_codec_meta(const struct bt_bap_base_subgroup *subgroup, uint8_t **meta)
Get the codec metadata of a subgroup.
int bt_bap_unicast_group_delete(struct bt_bap_unicast_group *unicast_group)
Delete audio unicast group.
int bt_bap_unicast_group_add_streams(struct bt_bap_unicast_group *unicast_group, struct bt_bap_unicast_group_stream_pair_param params[], size_t num_param)
Add streams to a unicast group as a unicast client.
int bt_bap_unicast_group_create(struct bt_bap_unicast_group_param *param, struct bt_bap_unicast_group **unicast_group)
Create audio unicast group.
int bt_bap_unicast_client_discover(struct bt_conn *conn, enum bt_audio_dir dir)
Discover remote capabilities and endpoints.
int bt_bap_unicast_client_register_cb(const struct bt_bap_unicast_client_cb *cb)
Register unicast client callbacks.
void bt_bap_unicast_server_foreach_ep(struct bt_conn *conn, bt_bap_ep_func_t func, void *user_data)
Iterate through all endpoints of the given connection.
int bt_bap_unicast_server_register_cb(const struct bt_bap_unicast_server_cb *cb)
Register unicast server callbacks.
int bt_bap_unicast_server_unregister_cb(const struct bt_bap_unicast_server_cb *cb)
Unregister unicast server callbacks.
void(* bt_bap_ep_func_t)(struct bt_bap_ep *ep, void *user_data)
The callback function called for each endpoint.
Definition: bap.h:1009
int bt_bap_unicast_server_config_ase(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_audio_codec_cfg *codec_cfg, const struct bt_audio_codec_qos_pref *qos_pref)
Initialize and configure a new ASE.
int bt_bap_broadcast_assistant_rem_src(struct bt_conn *conn, uint8_t src_id)
Remove a source from the server.
int bt_bap_stream_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len)
Change Audio Stream Metadata.
int bt_bap_stream_disable(struct bt_bap_stream *stream)
Disable Audio Stream.
int bt_bap_stream_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len)
Enable Audio Stream.
bt_bap_bass_att_err
Broadcast Audio Scan Service (BASS) specific ATT error codes.
Definition: bap.h:62
int bt_bap_stream_config(struct bt_conn *conn, struct bt_bap_stream *stream, struct bt_bap_ep *ep, struct bt_audio_codec_cfg *codec_cfg)
Configure Audio Stream.
int bt_bap_scan_delegator_set_pa_state(uint8_t src_id, enum bt_bap_pa_state pa_state)
Set the periodic advertising sync state to syncing.
int bt_bap_stream_get_tx_sync(struct bt_bap_stream *stream, struct bt_iso_tx_info *info)
Get ISO transmission timing info for a Basic Audio Profile stream.
void(* bt_bap_broadcast_assistant_write_cb)(struct bt_conn *conn, int err)
Callback function for writes.
Definition: bap.h:2060
void bt_bap_scan_delegator_register_cb(struct bt_bap_scan_delegator_cb *cb)
Register the callbacks for the Basic Audio Profile Scan Delegator.
bt_bap_big_enc_state
Broadcast Isochronous Group encryption state reported by the Scan Delegator.
Definition: bap.h:47
int bt_bap_stream_send(struct bt_bap_stream *stream, struct net_buf *buf, uint16_t seq_num)
Send data to Audio stream without timestamp.
int bt_bap_broadcast_assistant_unregister_cb(struct bt_bap_broadcast_assistant_cb *cb)
Unregisters the callbacks used by the Broadcast Audio Scan Service client.
int bt_bap_scan_delegator_rem_src(uint8_t src_id)
Remove a receive state source.
int bt_bap_scan_delegator_add_src(const struct bt_bap_scan_delegator_add_src_param *param)
Add a receive state source locally.
int bt_bap_broadcast_assistant_scan_stop(struct bt_conn *conn)
Stop remote scanning for BISes for a server.
int bt_bap_scan_delegator_set_bis_sync_state(uint8_t src_id, uint32_t bis_synced[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS])
Set the sync state of a receive state in the server.
int bt_bap_stream_start(struct bt_bap_stream *stream)
Start Audio Stream.
int bt_bap_broadcast_assistant_read_recv_state(struct bt_conn *conn, uint8_t idx)
Read the specified receive state from the server.
int bt_bap_broadcast_assistant_scan_start(struct bt_conn *conn, bool start_scan)
Scan start for BISes for a remote server.
bt_bap_ascs_reason
Response Reasons.
Definition: bap.h:150
bt_bap_ascs_rsp_code
Response Status Code.
Definition: bap.h:110
int bt_bap_stream_send_ts(struct bt_bap_stream *stream, struct net_buf *buf, uint16_t seq_num, uint32_t ts)
Send data to Audio stream with timestamp.
int bt_bap_broadcast_assistant_mod_src(struct bt_conn *conn, const struct bt_bap_broadcast_assistant_mod_src_param *param)
Modify a source on the server.
int bt_bap_stream_reconfig(struct bt_bap_stream *stream, struct bt_audio_codec_cfg *codec_cfg)
Reconfigure Audio Stream.
int bt_bap_stream_release(struct bt_bap_stream *stream)
Release Audio Stream.
void bt_bap_stream_cb_register(struct bt_bap_stream *stream, struct bt_bap_stream_ops *ops)
Register Audio callbacks for a stream.
int bt_bap_broadcast_assistant_discover(struct bt_conn *conn)
Discover Broadcast Audio Scan Service on the server.
void bt_bap_scan_delegator_foreach_state(bt_bap_scan_delegator_state_func_t func, void *user_data)
Iterate through all existing receive states.
int bt_bap_broadcast_assistant_register_cb(struct bt_bap_broadcast_assistant_cb *cb)
Registers the callbacks used by Broadcast Audio Scan Service client.
const struct bt_bap_scan_delegator_recv_state * bt_bap_scan_delegator_find_state(bt_bap_scan_delegator_state_func_t func, void *user_data)
Find and return a receive state based on a compare function.
int bt_bap_scan_delegator_mod_src(const struct bt_bap_scan_delegator_mod_src_param *param)
Add a receive state source locally.
bt_bap_pa_state
Periodic advertising state reported by the Scan Delegator.
Definition: bap.h:29
int bt_bap_stream_qos(struct bt_conn *conn, struct bt_bap_unicast_group *group)
Configure Audio Stream QoS.
int bt_bap_broadcast_assistant_add_src(struct bt_conn *conn, const struct bt_bap_broadcast_assistant_add_src_param *param)
Add a source on the server.
int bt_bap_broadcast_assistant_set_broadcast_code(struct bt_conn *conn, uint8_t src_id, const uint8_t broadcast_code[BT_AUDIO_BROADCAST_CODE_SIZE])
Set a broadcast code to the specified receive state.
int bt_bap_stream_stop(struct bt_bap_stream *stream)
Stop Audio Stream.
int bt_bap_ep_get_info(const struct bt_bap_ep *ep, struct bt_bap_ep_info *info)
Return structure holding information of audio stream endpoint.
bt_bap_ep_state
Endpoint states.
Definition: bap.h:81
bool(* bt_bap_scan_delegator_state_func_t)(const struct bt_bap_scan_delegator_recv_state *recv_state, void *user_data)
Callback function for Scan Delegator receive state search functions.
Definition: bap.h:2031
@ BT_BAP_BASS_ERR_OPCODE_NOT_SUPPORTED
Opcode not supported.
Definition: bap.h:64
@ BT_BAP_BASS_ERR_INVALID_SRC_ID
Invalid source ID supplied.
Definition: bap.h:67
@ BT_BAP_BIG_ENC_STATE_BCODE_REQ
The Broadcast Isochronous Group broadcast code requested.
Definition: bap.h:52
@ BT_BAP_BIG_ENC_STATE_NO_ENC
The Broadcast Isochronous Group not encrypted.
Definition: bap.h:49
@ BT_BAP_BIG_ENC_STATE_BAD_CODE
The Broadcast Isochronous Group bad broadcast code.
Definition: bap.h:58
@ BT_BAP_BIG_ENC_STATE_DEC
The Broadcast Isochronous Group decrypted.
Definition: bap.h:55
@ BT_BAP_ASCS_REASON_NONE
No reason.
Definition: bap.h:152
@ BT_BAP_ASCS_REASON_PD
Presendation delay.
Definition: bap.h:170
@ BT_BAP_ASCS_REASON_FRAMING
Framing.
Definition: bap.h:160
@ BT_BAP_ASCS_REASON_CODEC_DATA
Codec configuration.
Definition: bap.h:156
@ BT_BAP_ASCS_REASON_SDU
Maximum SDU size.
Definition: bap.h:164
@ BT_BAP_ASCS_REASON_CODEC
Codec ID.
Definition: bap.h:154
@ BT_BAP_ASCS_REASON_PHY
PHY.
Definition: bap.h:162
@ BT_BAP_ASCS_REASON_LATENCY
Max transport latency.
Definition: bap.h:168
@ BT_BAP_ASCS_REASON_CIS
Invalid CIS mapping.
Definition: bap.h:172
@ BT_BAP_ASCS_REASON_RTN
RTN.
Definition: bap.h:166
@ BT_BAP_ASCS_REASON_INTERVAL
SDU interval.
Definition: bap.h:158
@ BT_BAP_ASCS_RSP_CODE_INVALID_ASE_STATE
Invalid ASE state.
Definition: bap.h:120
@ BT_BAP_ASCS_RSP_CODE_METADATA_INVALID
Invalid metadata.
Definition: bap.h:136
@ BT_BAP_ASCS_RSP_CODE_NOT_SUPPORTED
Server did not support operation by client.
Definition: bap.h:114
@ BT_BAP_ASCS_RSP_CODE_CONF_UNSUPPORTED
Configuration parameters not supported by server.
Definition: bap.h:126
@ BT_BAP_ASCS_RSP_CODE_INVALID_ASE
Invalid ASE ID.
Definition: bap.h:118
@ BT_BAP_ASCS_RSP_CODE_INVALID_DIR
Invalid operation for direction.
Definition: bap.h:122
@ BT_BAP_ASCS_RSP_CODE_CONF_INVALID
Invalid Configuration parameters.
Definition: bap.h:130
@ BT_BAP_ASCS_RSP_CODE_CAP_UNSUPPORTED
Capabilities not supported by server.
Definition: bap.h:124
@ BT_BAP_ASCS_RSP_CODE_NO_MEM
Server has insufficient resources.
Definition: bap.h:138
@ BT_BAP_ASCS_RSP_CODE_METADATA_REJECTED
Metadata rejected by server.
Definition: bap.h:134
@ BT_BAP_ASCS_RSP_CODE_UNSPECIFIED
Unspecified error.
Definition: bap.h:140
@ BT_BAP_ASCS_RSP_CODE_INVALID_LENGTH
Server rejected due to invalid operation length.
Definition: bap.h:116
@ BT_BAP_ASCS_RSP_CODE_METADATA_UNSUPPORTED
Unsupported metadata.
Definition: bap.h:132
@ BT_BAP_ASCS_RSP_CODE_SUCCESS
Server completed operation successfully.
Definition: bap.h:112
@ BT_BAP_ASCS_RSP_CODE_CONF_REJECTED
Configuration parameters rejected by server.
Definition: bap.h:128
@ BT_BAP_PA_STATE_NOT_SYNCED
The periodic advertising has not been synchronized.
Definition: bap.h:31
@ BT_BAP_PA_STATE_FAILED
Failed to synchronized to periodic advertising.
Definition: bap.h:40
@ BT_BAP_PA_STATE_SYNCED
Synchronized to periodic advertising.
Definition: bap.h:37
@ BT_BAP_PA_STATE_INFO_REQ
Waiting for SyncInfo from Broadcast Assistant.
Definition: bap.h:34
@ BT_BAP_PA_STATE_NO_PAST
No periodic advertising sync transfer receiver from Broadcast Assistant.
Definition: bap.h:43
@ BT_BAP_EP_STATE_ENABLING
Audio Stream Endpoint Enabling state.
Definition: bap.h:92
@ BT_BAP_EP_STATE_IDLE
Audio Stream Endpoint Idle state.
Definition: bap.h:83
@ BT_BAP_EP_STATE_CODEC_CONFIGURED
Audio Stream Endpoint Codec Configured state.
Definition: bap.h:86
@ BT_BAP_EP_STATE_RELEASING
Audio Stream Endpoint Streaming state.
Definition: bap.h:101
@ BT_BAP_EP_STATE_QOS_CONFIGURED
Audio Stream Endpoint QoS Configured state.
Definition: bap.h:89
@ BT_BAP_EP_STATE_DISABLING
Audio Stream Endpoint Disabling state.
Definition: bap.h:98
@ BT_BAP_EP_STATE_STREAMING
Audio Stream Endpoint Streaming state.
Definition: bap.h:95
struct _snode sys_snode_t
Single-linked list node structure.
Definition: slist.h:39
state
Definition: parser_state.h:29
#define bool
Definition: stdbool.h:13
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Bluetooth LE Device Address.
Definition: addr.h:49
Codec capability structure.
Definition: audio.h:550
Codec specific configuration structure.
Definition: audio.h:584
Audio Stream Quality of Service Preference structure.
Definition: audio.h:787
Codec QoS structure.
Definition: audio.h:704
Structure storing values of fields of ASE Control Point notification.
Definition: bap.h:176
enum bt_bap_ascs_reason reason
Response reason.
Definition: bap.h:213
enum bt_audio_metadata_type metadata_type
Response metadata type.
Definition: bap.h:223
enum bt_bap_ascs_rsp_code code
Value of the Response Code field.
Definition: bap.h:190
Codec ID structure for a Broadcast Audio Source Endpoint (BASE)
Definition: bap.h:1380
uint16_t cid
Codec Company ID.
Definition: bap.h:1384
uint16_t vid
Codec Company Vendor ID.
Definition: bap.h:1386
uint8_t id
Codec ID.
Definition: bap.h:1382
BIS structure for each BIS in a Broadcast Audio Source Endpoint (BASE) subgroup.
Definition: bap.h:1390
uint8_t * data
Codec Specific Data.
Definition: bap.h:1396
uint8_t data_len
Codec Specific Data length.
Definition: bap.h:1394
uint8_t index
Definition: bap.h:1392
Struct to hold subgroup specific information for the receive state.
Definition: bap.h:249
uint32_t bis_sync
BIS synced bitfield.
Definition: bap.h:251
uint8_t metadata_len
Length of the metadata.
Definition: bap.h:254
Parameters for adding a source to a Broadcast Audio Scan Service server.
Definition: bap.h:2222
uint8_t num_subgroups
Number of subgroups.
Definition: bap.h:2243
bt_addr_le_t addr
Address of the advertiser.
Definition: bap.h:2224
uint8_t adv_sid
SID of the advertising set.
Definition: bap.h:2227
struct bt_bap_bass_subgroup * subgroups
Pointer to array of subgroups.
Definition: bap.h:2246
uint16_t pa_interval
Periodic advertising interval in milliseconds.
Definition: bap.h:2240
bool pa_sync
Whether to sync to periodic advertisements.
Definition: bap.h:2230
uint32_t broadcast_id
24-bit broadcast ID
Definition: bap.h:2233
Definition: bap.h:2063
void(* discover)(struct bt_conn *conn, int err, uint8_t recv_state_count)
Callback function for bt_bap_broadcast_assistant_discover.
Definition: bap.h:2073
void(* broadcast_code)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_broadcast_code().
Definition: bap.h:2146
void(* recv_state)(struct bt_conn *conn, int err, const struct bt_bap_scan_delegator_recv_state *state)
Callback function for when a receive state is read or updated.
Definition: bap.h:2097
void(* scan_stop)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_scan_stop().
Definition: bap.h:2122
void(* mod_src)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_mod_src().
Definition: bap.h:2138
void(* scan)(const struct bt_le_scan_recv_info *info, uint32_t broadcast_id)
Callback function for Broadcast Audio Scan Service client scan results.
Definition: bap.h:2085
void(* scan_start)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_scan_start().
Definition: bap.h:2114
void(* add_src)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_add_src().
Definition: bap.h:2130
void(* rem_src)(struct bt_conn *conn, int err)
Callback function for bt_bap_broadcast_assistant_rem_src().
Definition: bap.h:2154
void(* recv_state_removed)(struct bt_conn *conn, uint8_t src_id)
Callback function for when a receive state is removed.
Definition: bap.h:2106
Parameters for modifying a source.
Definition: bap.h:2261
struct bt_bap_bass_subgroup * subgroups
Pointer to array of subgroups.
Definition: bap.h:2279
uint8_t num_subgroups
Number of subgroups.
Definition: bap.h:2276
uint8_t src_id
Source ID of the receive state.
Definition: bap.h:2263
bool pa_sync
Whether to sync to periodic advertisements.
Definition: bap.h:2266
uint16_t pa_interval
Periodic advertising interval.
Definition: bap.h:2273
Broadcast Audio Sink callback structure.
Definition: bap.h:1799
void(* base_recv)(struct bt_bap_broadcast_sink *sink, const struct bt_bap_base *base, size_t base_size)
Broadcast Audio Source Endpoint (BASE) received.
Definition: bap.h:1809
void(* syncable)(struct bt_bap_broadcast_sink *sink, const struct bt_iso_biginfo *biginfo)
Broadcast sink is syncable.
Definition: bap.h:1823
Broadcast Source create parameters.
Definition: bap.h:1599
uint8_t packing
Broadcast Source packing mode.
Definition: bap.h:1616
uint8_t broadcast_code[BT_AUDIO_BROADCAST_CODE_SIZE]
Broadcast code.
Definition: bap.h:1631
size_t params_count
The number of parameters in subgroup_params.
Definition: bap.h:1601
struct bt_bap_broadcast_source_subgroup_param * params
Array of stream parameters.
Definition: bap.h:1604
bool encryption
Whether or not to encrypt the streams.
Definition: bap.h:1619
struct bt_audio_codec_qos * qos
Quality of Service configuration.
Definition: bap.h:1607
Broadcast Source stream parameters.
Definition: bap.h:1569
struct bt_bap_stream * stream
Audio stream.
Definition: bap.h:1571
Broadcast Source subgroup parameters.
Definition: bap.h:1587
struct bt_audio_codec_cfg * codec_cfg
Subgroup Codec configuration.
Definition: bap.h:1595
size_t params_count
The number of parameters in stream_params.
Definition: bap.h:1589
struct bt_bap_broadcast_source_stream_param * params
Array of stream parameters.
Definition: bap.h:1592
Structure holding information of audio stream endpoint.
Definition: bap.h:390
uint8_t id
The ID of the endpoint.
Definition: bap.h:392
bool can_recv
True if the stream associated with the endpoint is able to receive data.
Definition: bap.h:407
struct bt_iso_chan * iso_chan
The isochronous channel associated with the endpoint.
Definition: bap.h:401
enum bt_bap_ep_state state
The state of the endpoint.
Definition: bap.h:395
struct bt_bap_ep * paired_ep
Pointer to paired endpoint if the endpoint is part of a bidirectional CIS, otherwise NULL.
Definition: bap.h:412
enum bt_audio_dir dir
Capabilities type.
Definition: bap.h:398
bool can_send
True if the stream associated with the endpoint is able to send data.
Definition: bap.h:404
uint8_t num_subgroups
Number of subgroups.
Definition: bap.h:1948
enum bt_bap_big_enc_state encrypt_state
The broadcast isochronous group encryption state.
Definition: bap.h:1942
struct bt_le_per_adv_sync * pa_sync
The periodic adverting sync.
Definition: bap.h:1939
uint32_t broadcast_id
The 24-bit broadcast ID.
Definition: bap.h:1945
struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]
Subgroup specific information.
Definition: bap.h:1951
Definition: bap.h:295
int(* pa_sync_req)(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, bool past_avail, uint16_t pa_interval)
Periodic advertising sync request.
Definition: bap.h:329
void(* broadcast_code)(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint8_t broadcast_code[BT_AUDIO_BROADCAST_CODE_SIZE])
Broadcast code received.
Definition: bap.h:360
int(* pa_sync_term_req)(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state)
Periodic advertising sync termination request.
Definition: bap.h:346
void(* recv_state_updated)(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state)
Receive state updated.
Definition: bap.h:305
int(* bis_sync_req)(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint32_t bis_sync_req[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS])
Broadcast Isochronous Stream synchronize request.
Definition: bap.h:384
uint32_t broadcast_id
The 24-bit broadcast ID.
Definition: bap.h:1977
struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]
Subgroup specific information.
Definition: bap.h:1988
uint8_t num_subgroups
Number of subgroups.
Definition: bap.h:1980
uint8_t src_id
The periodic adverting sync.
Definition: bap.h:1971
enum bt_bap_big_enc_state encrypt_state
The broadcast isochronous group encryption state.
Definition: bap.h:1974
Represents the Broadcast Audio Scan Service receive state.
Definition: bap.h:263
uint8_t bad_code[BT_AUDIO_BROADCAST_CODE_SIZE]
The bad broadcast code.
Definition: bap.h:286
uint8_t src_id
The source ID
Definition: bap.h:265
enum bt_bap_pa_state pa_sync_state
The periodic adverting sync state.
Definition: bap.h:274
bt_addr_le_t addr
The Bluetooth address.
Definition: bap.h:268
uint8_t adv_sid
The advertising set ID.
Definition: bap.h:271
uint8_t num_subgroups
Number of subgroups.
Definition: bap.h:289
uint32_t broadcast_id
The 24-bit broadcast ID.
Definition: bap.h:280
enum bt_bap_big_enc_state encrypt_state
The broadcast isochronous group encryption state.
Definition: bap.h:277
struct bt_bap_bass_subgroup subgroups[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]
Subgroup specific information.
Definition: bap.h:292
Stream operation.
Definition: bap.h:474
void(* connected)(struct bt_bap_stream *stream)
Isochronous channel connected callback.
Definition: bap.h:600
void(* started)(struct bt_bap_stream *stream)
Stream started callback.
Definition: bap.h:544
void(* disconnected)(struct bt_bap_stream *stream, uint8_t reason)
Isochronous channel disconnected callback.
Definition: bap.h:614
void(* stopped)(struct bt_bap_stream *stream, uint8_t reason)
Stream stopped callback.
Definition: bap.h:554
Basic Audio Profile stream structure.
Definition: bap.h:434
void * group
Unicast or Broadcast group - Used internally.
Definition: bap.h:460
struct bt_audio_codec_cfg * codec_cfg
Codec Configuration.
Definition: bap.h:442
struct bt_bap_stream_ops * ops
Audio stream operations.
Definition: bap.h:448
struct bt_audio_codec_qos * qos
QoS Configuration.
Definition: bap.h:445
struct bt_conn * conn
Connection reference.
Definition: bap.h:436
struct bt_bap_ep * ep
Endpoint reference.
Definition: bap.h:439
void * user_data
Stream user data.
Definition: bap.h:463
Unicast Client callback structure.
Definition: bap.h:1159
void(* enable)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_enable().
Definition: bap.h:1226
void(* discover)(struct bt_conn *conn, int err, enum bt_audio_dir dir)
BAP discovery callback function.
Definition: bap.h:1340
void(* qos)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_qos().
Definition: bap.h:1213
void(* pac_record)(struct bt_conn *conn, enum bt_audio_dir dir, const struct bt_audio_codec_cap *codec_cap)
Remote Published Audio Capability (PAC) record discovered.
Definition: bap.h:1312
void(* disable)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_disable().
Definition: bap.h:1269
void(* start)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_start().
Definition: bap.h:1241
void(* location)(struct bt_conn *conn, enum bt_audio_dir dir, enum bt_audio_location loc)
Remote Unicast Server Audio Locations.
Definition: bap.h:1172
void(* metadata)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_metadata().
Definition: bap.h:1282
void(* release)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_release().
Definition: bap.h:1295
void(* stop)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_stop().
Definition: bap.h:1256
void(* available_contexts)(struct bt_conn *conn, enum bt_audio_context snk_ctx, enum bt_audio_context src_ctx)
Remote Unicast Server Available Contexts.
Definition: bap.h:1186
void(* endpoint)(struct bt_conn *conn, enum bt_audio_dir dir, struct bt_bap_ep *ep)
Remote Audio Stream Endoint (ASE) discovered.
Definition: bap.h:1326
void(* config)(struct bt_bap_stream *stream, enum bt_bap_ascs_rsp_code rsp_code, enum bt_bap_ascs_reason reason)
Callback function for bt_bap_stream_config() and bt_bap_stream_reconfig().
Definition: bap.h:1198
Definition: bap.h:1064
uint8_t packing
Unicast Group packing mode.
Definition: bap.h:1077
size_t params_count
The number of parameters in params.
Definition: bap.h:1066
struct bt_bap_unicast_group_stream_pair_param * params
Array of stream parameters.
Definition: bap.h:1069
Parameter struct for the unicast group functions.
Definition: bap.h:1056
struct bt_bap_unicast_group_stream_param * rx_param
Pointer to a receiving stream parameters.
Definition: bap.h:1058
struct bt_bap_unicast_group_stream_param * tx_param
Pointer to a transmiting stream parameters.
Definition: bap.h:1061
Parameter struct for each stream in the unicast group.
Definition: bap.h:1043
struct bt_audio_codec_qos * qos
The QoS settings for the stream object.
Definition: bap.h:1048
struct bt_bap_stream * stream
Pointer to a stream object.
Definition: bap.h:1045
Unicast Server callback structure.
Definition: bap.h:833
int(* reconfig)(struct bt_bap_stream *stream, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp)
Stream reconfig request callback.
Definition: bap.h:872
int(* disable)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp)
Stream Disable request callback.
Definition: bap.h:948
int(* start)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp)
Stream Start request callback.
Definition: bap.h:919
int(* metadata)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp)
Stream Metadata update request callback.
Definition: bap.h:934
int(* enable)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp)
Stream Enable request callback.
Definition: bap.h:905
int(* qos)(struct bt_bap_stream *stream, const struct bt_audio_codec_qos *qos, struct bt_bap_ascs_rsp *rsp)
Stream QoS request callback.
Definition: bap.h:889
int(* stop)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp)
Stream Stop callback.
Definition: bap.h:961
int(* release)(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp)
Stream release callback.
Definition: bap.h:975
int(* config)(struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp)
Endpoint config request callback.
Definition: bap.h:852
Bluetooth data.
Definition: bluetooth.h:454
Broadcast Isochronous Group (BIG) information.
Definition: iso.h:567
ISO Channel structure.
Definition: iso.h:154
ISO Meta Data structure for received ISO packets.
Definition: iso.h:292
ISO Meta Data structure for transmitted ISO packets.
Definition: iso.h:307
LE advertisement and scan response packet information.
Definition: bluetooth.h:2100
Simple network buffer representation.
Definition: buf.h:87
Network buffer representation.
Definition: buf.h:1004