Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Data Structures

struct  bt_bap_unicast_server_cb
 Unicast Server callback structure. More...
 

Typedefs

typedef void(* bt_bap_ep_func_t) (struct bt_bap_ep *ep, void *user_data)
 The callback function called for each endpoint.
 

Functions

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

Detailed Description

Typedef Documentation

◆ bt_bap_ep_func_t

bt_bap_ep_func_t

#include <zephyr/bluetooth/audio/bap.h>

The callback function called for each endpoint.

Parameters
epThe structure object with endpoint info.
user_dataData to pass to the function.

Function Documentation

◆ bt_bap_unicast_server_config_ase()

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 
)

#include <zephyr/bluetooth/audio/bap.h>

Initialize and configure a new ASE.

Parameters
connConnection object
streamConfigured stream object to be attached to the ASE
codec_cfgCodec configuration
qos_prefAudio Stream Quality of Service Preference
Returns
0 in case of success or negative value in case of error.

◆ bt_bap_unicast_server_foreach_ep()

void bt_bap_unicast_server_foreach_ep ( struct bt_conn *  conn,
bt_bap_ep_func_t  func,
void *  user_data 
)

#include <zephyr/bluetooth/audio/bap.h>

Iterate through all endpoints of the given connection.

Parameters
connConnection object
funcFunction to call for each endpoint.
user_dataData to pass to the callback function.

◆ bt_bap_unicast_server_register_cb()

int bt_bap_unicast_server_register_cb ( const struct bt_bap_unicast_server_cb cb)

#include <zephyr/bluetooth/audio/bap.h>

Register unicast server callbacks.

Only one callback structure can be registered, and attempting to registering more than one will result in an error.

Parameters
cbUnicast server callback structure.
Returns
0 in case of success or negative value in case of error.

◆ bt_bap_unicast_server_unregister_cb()

int bt_bap_unicast_server_unregister_cb ( const struct bt_bap_unicast_server_cb cb)

#include <zephyr/bluetooth/audio/bap.h>

Unregister unicast server callbacks.

May only unregister a callback structure that has previously been registered by bt_bap_unicast_server_register_cb().

Parameters
cbUnicast server callback structure.
Returns
0 in case of success or negative value in case of error.