|
Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
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. | |
| bt_bap_ep_func_t |
#include <include/zephyr/bluetooth/audio/bap.h>
The callback function called for each endpoint.
| ep | The structure object with endpoint info. |
| user_data | Data to pass to the function. |
| 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 <include/zephyr/bluetooth/audio/bap.h>
Initialize and configure a new ASE.
| conn | Connection object |
| stream | Configured stream object to be attached to the ASE |
| codec_cfg | Codec configuration |
| qos_pref | Audio Stream Quality of Service Preference |
| void bt_bap_unicast_server_foreach_ep | ( | struct bt_conn * | conn, |
| bt_bap_ep_func_t | func, | ||
| void * | user_data | ||
| ) |
#include <include/zephyr/bluetooth/audio/bap.h>
Iterate through all endpoints of the given connection.
| conn | Connection object |
| func | Function to call for each endpoint. |
| user_data | Data to pass to the callback function. |
| int bt_bap_unicast_server_register_cb | ( | const struct bt_bap_unicast_server_cb * | cb | ) |
#include <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.
| cb | Unicast server callback structure. |
| int bt_bap_unicast_server_unregister_cb | ( | const struct bt_bap_unicast_server_cb * | cb | ) |
#include <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().
| cb | Unicast server callback structure. |