Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cap.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) 2022-2025 Nordic Semiconductor ASA
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CAP_H_
13#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CAP_H_
14
33#include <stdbool.h>
34#include <stddef.h>
35#include <stdint.h>
36
44#include <zephyr/net_buf.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
51struct bt_cap_broadcast_source;
52
54struct bt_cap_unicast_group;
55
75 struct bt_csip_set_member_svc_inst **svc_inst);
76
79#if defined(CONFIG_BT_BAP_UNICAST_CLIENT) || defined(__DOXYGEN__)
94 struct bt_conn *conn, int err,
95 const struct bt_csip_set_coordinator_set_member *member,
96 const struct bt_csip_set_coordinator_csis_inst *csis_inst);
97
108 void (*unicast_start_complete)(int err, struct bt_conn *conn);
109
120 void (*unicast_update_complete)(int err, struct bt_conn *conn);
121
132 void (*unicast_stop_complete)(int err, struct bt_conn *conn);
133#endif /* CONFIG_BT_BAP_UNICAST_CLIENT */
134#if defined(CONFIG_BT_BAP_BROADCAST_SOURCE)
140 void (*broadcast_started)(struct bt_cap_broadcast_source *source);
141
148 void (*broadcast_stopped)(struct bt_cap_broadcast_source *source, uint8_t reason);
149#endif /* CONFIG_BT_BAP_BROADCAST_SOURCE */
150};
151
165int bt_cap_initiator_unicast_discover(struct bt_conn *conn);
166
174
178 struct bt_conn *member;
179
182};
183
197
207
223int bt_cap_stream_send(struct bt_cap_stream *stream, struct net_buf *buf, uint16_t seq_num);
224
242int bt_cap_stream_send_ts(struct bt_cap_stream *stream, struct net_buf *buf, uint16_t seq_num,
243 uint32_t ts);
244
259
268
282
287
290
299
300#if defined(CONFIG_BT_ISO_TEST_PARAMS) || defined(__DOXYGEN__)
310
320
329#endif /* CONFIG_BT_ISO_TEST_PARAMS */
330};
331
346 struct bt_cap_unicast_group **unicast_group);
347
363int bt_cap_unicast_group_reconfig(struct bt_cap_unicast_group *unicast_group,
364 const struct bt_cap_unicast_group_param *param);
365
385int bt_cap_unicast_group_add_streams(struct bt_cap_unicast_group *unicast_group,
386 const struct bt_cap_unicast_group_stream_pair_param params[],
387 size_t num_param);
388
399int bt_cap_unicast_group_delete(struct bt_cap_unicast_group *unicast_group);
400
410 void *user_data);
411
423int bt_cap_unicast_group_foreach_stream(struct bt_cap_unicast_group *unicast_group,
425 void *user_data);
426
450
462
478
490
505
514
524
544
559
577
602
620
635
640
643
646
655
658
672
673#if defined(CONFIG_BT_ISO_TEST_PARAMS) || defined(__DOXYGEN__)
682
691
700#endif /* CONFIG_BT_ISO_TEST_PARAMS */
701};
702
723 const struct bt_cap_initiator_broadcast_create_param *param,
724 struct bt_cap_broadcast_source **broadcast_source);
725
745int bt_cap_initiator_broadcast_audio_start(struct bt_cap_broadcast_source *broadcast_source,
746 struct bt_le_ext_adv *adv);
761int bt_cap_initiator_broadcast_audio_update(struct bt_cap_broadcast_source *broadcast_source,
762 const uint8_t meta[], size_t meta_len);
763
776int bt_cap_initiator_broadcast_audio_stop(struct bt_cap_broadcast_source *broadcast_source);
777
795int bt_cap_initiator_broadcast_audio_delete(struct bt_cap_broadcast_source *broadcast_source);
796
812int bt_cap_initiator_broadcast_get_base(struct bt_cap_broadcast_source *broadcast_source,
813 struct net_buf_simple *base_buf);
814
842
860 struct bt_cap_broadcast_source **source);
861
869 struct bt_cap_broadcast_source *broadcast_source;
870
873
881 size_t count;
882
885};
886
904 struct bt_bap_unicast_group **unicast_group);
905
921 void (*discovery_complete)(struct bt_conn *conn, int err,
922 const struct bt_csip_set_coordinator_set_member *member,
923 const struct bt_csip_set_coordinator_csis_inst *csis_inst);
924
925#if defined(CONFIG_BT_VCP_VOL_CTLR) || defined(__DOXYGEN__)
936 void (*volume_changed)(struct bt_conn *conn, int err);
937
948 void (*volume_mute_changed)(struct bt_conn *conn, int err);
949
950#if defined(CONFIG_BT_VCP_VOL_CTLR_VOCS) || defined(__DOXYGEN__)
961 void (*volume_offset_changed)(struct bt_conn *conn, int err);
962#endif /* CONFIG_BT_VCP_VOL_CTLR_VOCS */
963#endif /* CONFIG_BT_VCP_VOL_CTLR */
964#if defined(CONFIG_BT_MICP_MIC_CTLR) || defined(__DOXYGEN__)
975 void (*microphone_mute_changed)(struct bt_conn *conn, int err);
976#if defined(CONFIG_BT_MICP_MIC_CTLR_AICS) || defined(__DOXYGEN__)
987 void (*microphone_gain_changed)(struct bt_conn *conn, int err);
988#endif /* CONFIG_BT_MICP_MIC_CTLR_AICS */
989#endif /* CONFIG_BT_MICP_MIC_CTLR */
990
991#if defined(CONFIG_BT_BAP_BROADCAST_ASSISTANT) || defined(__DOXYGEN__)
1002 void (*broadcast_reception_start)(struct bt_conn *conn, int err);
1013 void (*broadcast_reception_stop)(struct bt_conn *conn, int err);
1024 void (*distribute_broadcast_code)(struct bt_conn *conn, int err);
1025#endif /* CONFIG_BT_BAP_BROADCAST_ASSISTANT */
1026};
1027
1038
1048
1067int bt_cap_commander_discover(struct bt_conn *conn);
1068
1093
1128
1140
1151
1163
1175
1186
1195
1219
1230
1245
1254
1270
1282
1292
1311
1321
1340
1350
1362
1374
1384#ifdef __cplusplus
1385}
1386#endif
1387
1392#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CAP_H_ */
Bluetooth device address definitions and utilities.
Header for Bluetooth BAP.
Bluetooth Audio handling.
Bluetooth subsystem core APIs.
Bluetooth connection handling.
Bluetooth Coordinated Set Identification Profile (CSIP) APIs.
#define BT_BAP_BASS_MAX_SUBGROUPS
Maximum number of subgroups supported in the BAP Scan Delegator API.
Definition bap.h:48
int bt_cap_commander_discover(struct bt_conn *conn)
Discovers audio support on a remote device.
int bt_cap_commander_change_microphone_mute_state(const struct bt_cap_commander_change_microphone_mute_state_param *param)
Change the microphone mute state on one or more Common Audio Profile Acceptors.
int bt_cap_stream_send_ts(struct bt_cap_stream *stream, struct net_buf *buf, uint16_t seq_num, uint32_t ts)
Send data to Common Audio Profile stream with timestamp.
int bt_cap_commander_broadcast_reception_start(const struct bt_cap_commander_broadcast_reception_start_param *param)
Starts the reception of broadcast audio on one or more remote Common Audio Profile Acceptors.
int bt_cap_unicast_group_create(const struct bt_cap_unicast_group_param *param, struct bt_cap_unicast_group **unicast_group)
Create unicast group.
int bt_cap_initiator_broadcast_audio_start(struct bt_cap_broadcast_source *broadcast_source, struct bt_le_ext_adv *adv)
Start Common Audio Profile broadcast source.
int bt_cap_stream_send(struct bt_cap_stream *stream, struct net_buf *buf, uint16_t seq_num)
Send data to Common Audio Profile stream without timestamp.
int bt_cap_initiator_broadcast_to_unicast(const struct bt_cap_broadcast_to_unicast_param *param, struct bt_bap_unicast_group **unicast_group)
Hands over the data streams in a broadcast source to a unicast group.
int bt_cap_commander_unregister_cb(const struct bt_cap_commander_cb *cb)
Unregister Common Audio Profile Commander callbacks.
int bt_cap_initiator_register_cb(const struct bt_cap_initiator_cb *cb)
Register Common Audio Profile Initiator callbacks.
int bt_cap_initiator_unicast_to_broadcast(const struct bt_cap_unicast_to_broadcast_param *param, struct bt_cap_broadcast_source **source)
Hands over the data streams in a unicast group to a broadcast source.
int bt_cap_unicast_group_foreach_stream(struct bt_cap_unicast_group *unicast_group, bt_cap_unicast_group_foreach_stream_func_t func, void *user_data)
Iterate through all streams in a unicast group.
int bt_cap_unicast_group_reconfig(struct bt_cap_unicast_group *unicast_group, const struct bt_cap_unicast_group_param *param)
Reconfigure unicast group.
int bt_cap_initiator_broadcast_get_base(struct bt_cap_broadcast_source *broadcast_source, struct net_buf_simple *base_buf)
Get the Broadcast Audio Stream Endpoint of a Common Audio Profile broadcast source.
int bt_cap_initiator_broadcast_audio_create(const struct bt_cap_initiator_broadcast_create_param *param, struct bt_cap_broadcast_source **broadcast_source)
Create a Common Audio Profile broadcast source.
int bt_cap_commander_cancel(void)
Cancel any current Common Audio Profile commander procedure.
int bt_cap_unicast_group_add_streams(struct bt_cap_unicast_group *unicast_group, const struct bt_cap_unicast_group_stream_pair_param params[], size_t num_param)
Add streams to a unicast group as a unicast client.
int bt_cap_stream_get_tx_sync(struct bt_cap_stream *stream, struct bt_iso_tx_info *info)
Get ISO transmission timing info for a Common Audio Profile stream.
int bt_cap_initiator_broadcast_audio_update(struct bt_cap_broadcast_source *broadcast_source, const uint8_t meta[], size_t meta_len)
Update broadcast audio streams for a Common Audio Profile broadcast source.
int bt_cap_initiator_unicast_audio_update(const struct bt_cap_unicast_audio_update_param *param)
Update unicast audio streams.
int bt_cap_commander_change_microphone_gain_setting(const struct bt_cap_commander_change_microphone_gain_setting_param *param)
Change the microphone gain setting on one or more Common Audio Profile Acceptors.
int bt_cap_unicast_group_delete(struct bt_cap_unicast_group *unicast_group)
Delete audio unicast group.
int bt_cap_initiator_unicast_audio_cancel(void)
Cancel any current Common Audio Profile procedure.
int bt_cap_initiator_unregister_cb(const struct bt_cap_initiator_cb *cb)
Unregister Common Audio Profile Initiator callbacks.
int bt_cap_commander_register_cb(const struct bt_cap_commander_cb *cb)
Register Common Audio Profile Commander callbacks.
int bt_cap_initiator_unicast_discover(struct bt_conn *conn)
Discovers audio support on a remote device.
int bt_cap_commander_broadcast_reception_stop(const struct bt_cap_commander_broadcast_reception_stop_param *param)
Stops the reception of broadcast audio on one or more remote Common Audio Profile Acceptors.
int bt_cap_commander_change_volume_mute_state(const struct bt_cap_commander_change_volume_mute_state_param *param)
Change the volume mute state on one or more Common Audio Profile Acceptors.
void bt_cap_stream_ops_register(struct bt_cap_stream *stream, struct bt_bap_stream_ops *ops)
Register Audio operations for a Common Audio Profile stream.
int bt_cap_initiator_broadcast_audio_delete(struct bt_cap_broadcast_source *broadcast_source)
Delete Common Audio Profile broadcast source.
bt_cap_set_type
Type of CAP set.
Definition cap.h:168
int bt_cap_initiator_unicast_audio_start(const struct bt_cap_unicast_audio_start_param *param)
Setup and start unicast audio streams for a set of devices.
int bt_cap_commander_change_volume_offset(const struct bt_cap_commander_change_volume_offset_param *param)
Change the volume offset on one or more Common Audio Profile Acceptors.
int bt_cap_initiator_broadcast_audio_stop(struct bt_cap_broadcast_source *broadcast_source)
Stop broadcast audio streams for a Common Audio Profile broadcast source.
bool(* bt_cap_unicast_group_foreach_stream_func_t)(struct bt_cap_stream *stream, void *user_data)
Callback function for bt_bap_unicast_group_foreach_stream()
Definition cap.h:409
int bt_cap_commander_distribute_broadcast_code(const struct bt_cap_commander_distribute_broadcast_code_param *param)
Distributes the broadcast code on one or more remote Common Audio Profile Acceptors.
int bt_cap_acceptor_register(const struct bt_csip_set_member_register_param *param, struct bt_csip_set_member_svc_inst **svc_inst)
Register the Common Audio Service.
int bt_cap_initiator_unicast_audio_stop(const struct bt_cap_unicast_audio_stop_param *param)
Stop unicast audio streams.
int bt_cap_commander_change_volume(const struct bt_cap_commander_change_volume_param *param)
Change the volume on one or more Common Audio Profile Acceptors.
@ BT_CAP_SET_TYPE_CSIP
The set is a CSIP Coordinated Set.
Definition cap.h:172
@ BT_CAP_SET_TYPE_AD_HOC
The set is an ad-hoc set.
Definition cap.h:170
#define BT_ISO_BROADCAST_CODE_SIZE
Broadcast code size.
Definition iso.h:141
Bluetooth ISO handling.
Buffer management.
#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
__INT8_TYPE__ int8_t
Definition stdint.h:72
__INT16_TYPE__ int16_t
Definition stdint.h:73
Bluetooth LE Device Address.
Definition addr.h:49
Codec specific configuration structure.
Definition audio.h:718
Struct to hold subgroup specific information for the receive state.
Definition bap.h:641
QoS configuration structure.
Definition bap.h:232
Stream operation.
Definition bap.h:933
Basic Audio Profile stream structure.
Definition bap.h:890
Parameters for bt_cap_initiator_broadcast_to_unicast()
Definition cap.h:863
union bt_cap_set_member ** members
Coordinated or ad-hoc set members.
Definition cap.h:884
enum bt_cap_set_type type
The type of the set.
Definition cap.h:872
size_t count
The number of set members in members.
Definition cap.h:881
struct bt_cap_broadcast_source * broadcast_source
The source broadcast source with the streams.
Definition cap.h:869
Parameters part of bt_cap_commander_broadcast_reception_start_param for bt_cap_commander_broadcast_re...
Definition cap.h:1098
size_t num_subgroups
Number of subgroups.
Definition cap.h:1126
uint16_t pa_interval
Periodic advertising interval in milliseconds.
Definition cap.h:1113
struct bt_bap_bass_subgroup subgroups[BT_BAP_BASS_MAX_SUBGROUPS]
Pointer to array of subgroups.
Definition cap.h:1123
uint32_t broadcast_id
24-bit broadcast ID
Definition cap.h:1116
bt_addr_le_t addr
Address of the advertiser.
Definition cap.h:1103
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:1100
uint8_t adv_sid
SID of the advertising set.
Definition cap.h:1106
Parameters for starting broadcast reception
Definition cap.h:1130
struct bt_cap_commander_broadcast_reception_start_member_param * param
The set of devices for this procedure.
Definition cap.h:1135
size_t count
The number of parameters in param.
Definition cap.h:1138
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1132
Member parameters for stopping broadcast reception
Definition cap.h:1153
uint8_t src_id
Source ID of the receive state.
Definition cap.h:1158
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:1155
size_t num_subgroups
Number of subgroups.
Definition cap.h:1161
Parameters for stopping broadcast reception.
Definition cap.h:1165
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1167
struct bt_cap_commander_broadcast_reception_stop_member_param * param
The set of devices for this procedure.
Definition cap.h:1170
size_t count
The number of parameters in param.
Definition cap.h:1173
Callback structure for CAP procedures.
Definition cap.h:907
void(* broadcast_reception_start)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_broadcast_reception_start().
Definition cap.h:1002
void(* microphone_gain_changed)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_change_microphone_gain_setting().
Definition cap.h:987
void(* broadcast_reception_stop)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_broadcast_reception_stop().
Definition cap.h:1013
void(* volume_changed)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_change_volume().
Definition cap.h:936
void(* volume_offset_changed)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_change_volume_offset().
Definition cap.h:961
void(* distribute_broadcast_code)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_distribute_broadcast_code().
Definition cap.h:1024
void(* microphone_mute_changed)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_change_microphone_mute_state().
Definition cap.h:975
void(* volume_mute_changed)(struct bt_conn *conn, int err)
Callback for bt_cap_commander_change_volume_mute_state().
Definition cap.h:948
void(* discovery_complete)(struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst)
Callback for bt_cap_initiator_unicast_discover().
Definition cap.h:921
Parameters part of bt_cap_commander_change_microphone_gain_setting_param for bt_cap_commander_change_...
Definition cap.h:1355
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:1357
int8_t gain
The microphone gain setting to set.
Definition cap.h:1360
Parameters for changing microphone mute state.
Definition cap.h:1364
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1366
struct bt_cap_commander_change_microphone_gain_setting_member_param * param
The set of devices for this procedure.
Definition cap.h:1369
size_t count
The number of parameters in param.
Definition cap.h:1372
Parameters for changing microphone mute state.
Definition cap.h:1323
bool mute
The microphone mute state to set.
Definition cap.h:1338
size_t count
The number of members in members.
Definition cap.h:1331
union bt_cap_set_member * members
Coordinated or ad-hoc set member.
Definition cap.h:1328
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1325
Parameters for changing volume mute state.
Definition cap.h:1294
size_t count
The number of members in members.
Definition cap.h:1302
bool mute
The volume mute state to set.
Definition cap.h:1309
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1296
union bt_cap_set_member * members
Coordinated or ad-hoc set member.
Definition cap.h:1299
Parameters part of bt_cap_commander_change_volume_offset_param for bt_cap_commander_change_volume_off...
Definition cap.h:1259
int16_t offset
The offset to set.
Definition cap.h:1268
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:1261
Parameters for changing volume offset.
Definition cap.h:1272
struct bt_cap_commander_change_volume_offset_member_param * param
The set of devices for this procedure.
Definition cap.h:1277
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1274
size_t count
The number of parameters in param.
Definition cap.h:1280
Parameters for changing absolute volume
Definition cap.h:1232
size_t count
The number of members in members.
Definition cap.h:1240
union bt_cap_set_member * members
Coordinated or ad-hoc set member.
Definition cap.h:1237
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1234
uint8_t volume
The absolute volume to set.
Definition cap.h:1243
Member parameters for distributing broadcast code.
Definition cap.h:1188
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:1190
uint8_t src_id
Source ID of the receive state.
Definition cap.h:1193
Parameters for distributing broadcast code.
Definition cap.h:1197
struct bt_cap_commander_distribute_broadcast_code_member_param * param
The set of devices for this procedure.
Definition cap.h:1202
size_t count
The number of parameters in param.
Definition cap.h:1205
enum bt_cap_set_type type
The type of the set.
Definition cap.h:1199
uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]
16-octet broadcast code.
Definition cap.h:1217
Parameters for * bt_cap_initiator_broadcast_audio_create()
Definition cap.h:637
uint8_t pto
Pre-transmission offset.
Definition cap.h:690
struct bt_bap_qos_cfg * qos
Quality of Service configuration.
Definition cap.h:645
struct bt_cap_initiator_broadcast_subgroup_param * subgroup_params
Array of stream parameters.
Definition cap.h:642
bool encryption
Whether or not to encrypt the streams.
Definition cap.h:657
uint8_t irc
Immediate Repetition Count.
Definition cap.h:681
uint16_t iso_interval
ISO interval.
Definition cap.h:699
uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]
16-octet broadcast code.
Definition cap.h:671
uint8_t packing
Broadcast Source packing mode.
Definition cap.h:654
size_t subgroup_count
The number of parameters in subgroup_params.
Definition cap.h:639
Parameters part of bt_cap_initiator_broadcast_subgroup_param for bt_cap_initiator_broadcast_audio_cre...
Definition cap.h:607
uint8_t * data
BIS Codec Specific Configuration.
Definition cap.h:618
struct bt_cap_stream * stream
Audio stream.
Definition cap.h:609
size_t data_len
The length of the p data array.
Definition cap.h:615
Parameters part of bt_cap_initiator_broadcast_create_param for bt_cap_initiator_broadcast_audio_creat...
Definition cap.h:625
struct bt_cap_initiator_broadcast_stream_param * stream_params
Array of stream parameters.
Definition cap.h:630
size_t stream_count
The number of parameters in stream_params.
Definition cap.h:627
struct bt_audio_codec_cfg * codec_cfg
Subgroup Codec configuration.
Definition cap.h:633
Callback structure for CAP procedures.
Definition cap.h:78
void(* unicast_stop_complete)(int err, struct bt_conn *conn)
Callback for bt_cap_initiator_unicast_audio_stop().
Definition cap.h:132
void(* unicast_discovery_complete)(struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst)
Callback for bt_cap_initiator_unicast_discover().
Definition cap.h:93
void(* unicast_update_complete)(int err, struct bt_conn *conn)
Callback for bt_cap_initiator_unicast_audio_update().
Definition cap.h:120
void(* unicast_start_complete)(int err, struct bt_conn *conn)
Callback for bt_cap_initiator_unicast_audio_start().
Definition cap.h:108
Common Audio Profile stream structure.
Definition cap.h:190
struct bt_bap_stream_ops * ops
Audio stream operations.
Definition cap.h:195
struct bt_bap_stream bap_stream
The underlying BAP audio stream.
Definition cap.h:192
Parameters for the bt_cap_initiator_unicast_audio_start() function.
Definition cap.h:452
enum bt_cap_set_type type
The type of the set.
Definition cap.h:454
size_t count
The number of parameters in stream_params.
Definition cap.h:457
struct bt_cap_unicast_audio_start_stream_param * stream_params
Array of stream parameters.
Definition cap.h:460
Stream specific parameters for the bt_cap_initiator_unicast_audio_start() function.
Definition cap.h:428
struct bt_cap_stream * stream
Stream for the member.
Definition cap.h:433
struct bt_audio_codec_cfg * codec_cfg
Codec configuration.
Definition cap.h:448
union bt_cap_set_member member
Coordinated or ad-hoc set member.
Definition cap.h:430
struct bt_bap_ep * ep
Endpoint reference for the stream.
Definition cap.h:436
Parameters for the bt_cap_initiator_unicast_audio_stop() function.
Definition cap.h:492
size_t count
The number of streams in streams.
Definition cap.h:497
bool release
Whether to release the streams after they have stopped.
Definition cap.h:503
enum bt_cap_set_type type
The type of the set.
Definition cap.h:494
struct bt_cap_stream ** streams
Array of streams to stop.
Definition cap.h:500
Parameters for the bt_cap_initiator_unicast_audio_update() function.
Definition cap.h:480
struct bt_cap_unicast_audio_update_stream_param * stream_params
Array of stream parameters.
Definition cap.h:488
enum bt_cap_set_type type
The type of the set.
Definition cap.h:482
size_t count
The number of parameters in stream_params.
Definition cap.h:485
Stream specific parameters for the bt_cap_initiator_unicast_audio_update() function.
Definition cap.h:464
size_t meta_len
The length of meta.
Definition cap.h:469
struct bt_cap_stream * stream
Stream to update.
Definition cap.h:466
uint8_t * meta
The new metadata.
Definition cap.h:476
Parameters for the creating unicast groups with bt_cap_unicast_group_create()
Definition cap.h:284
struct bt_cap_unicast_group_stream_pair_param * params
Array of stream parameters.
Definition cap.h:289
uint8_t packing
Unicast Group packing mode.
Definition cap.h:298
uint8_t p_to_c_ft
Peripheral to Central flush timeout.
Definition cap.h:319
size_t params_count
The number of parameters in params.
Definition cap.h:286
uint16_t iso_interval
ISO interval.
Definition cap.h:328
uint8_t c_to_p_ft
Central to Peripheral flush timeout.
Definition cap.h:309
Parameter struct for the unicast group functions.
Definition cap.h:275
struct bt_cap_unicast_group_stream_param * rx_param
Pointer to a receiving stream parameters.
Definition cap.h:277
struct bt_cap_unicast_group_stream_param * tx_param
Pointer to a transmitting stream parameters.
Definition cap.h:280
Parameter struct for each stream in the unicast group.
Definition cap.h:261
struct bt_cap_stream * stream
Pointer to a stream object.
Definition cap.h:263
struct bt_bap_qos_cfg * qos_cfg
The QoS settings for the stream object.
Definition cap.h:266
Parameters for bt_cap_initiator_unicast_to_broadcast()
Definition cap.h:816
struct bt_bap_unicast_group * unicast_group
The source unicast group with the streams.
Definition cap.h:818
uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]
16-octet broadcast code.
Definition cap.h:840
bool encrypt
Whether or not to encrypt the streams.
Definition cap.h:826
Struct representing a coordinated set instance on a remote device.
Definition csip.h:357
Struct representing a remote device as a set member.
Definition csip.h:366
Register structure for Coordinated Set Identification Service.
Definition csip.h:134
ISO Meta Data structure for transmitted ISO packets.
Definition iso.h:373
Simple network buffer representation.
Definition net_buf.h:89
Network buffer representation.
Definition net_buf.h:1006
Represents a Common Audio Set member that are either in a Coordinated or ad-hoc set.
Definition cap.h:176
struct bt_conn * member
Connection pointer if the type is BT_CAP_SET_TYPE_AD_HOC.
Definition cap.h:178
struct bt_csip_set_coordinator_csis_inst * csip
CSIP Coordinated Set struct used if type is BT_CAP_SET_TYPE_CSIP.
Definition cap.h:181