nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
unicast_server.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef _UNICAST_SERVER_H_
16#define _UNICAST_SERVER_H_
17
18#include "bt_le_audio_tx.h"
19#include "le_audio.h"
20
21#include <audio_defines.h>
22
30int unicast_server_pd_min_set(uint32_t dly_min_in_us);
31
45int unicast_server_config_get(struct bt_conn *conn, enum bt_audio_dir dir, uint32_t *bitrate,
46 uint32_t *sampling_rate_hz, uint32_t *pres_delay_us);
47
57int unicast_server_uuid_populate(struct net_buf_simple *uuid_buf);
58
69int unicast_server_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant);
70
78int unicast_server_send(struct net_buf const *const audio_frame);
79
86
95int unicast_server_enable(le_audio_receive_cb rx_cb, enum bt_audio_location location);
96
102#endif /* _UNICAST_SERVER_H_ */
Globally accessible audio related defines.
void(* le_audio_receive_cb)(struct net_buf *audio_frame, struct audio_metadata *meta, uint8_t location_index)
Callback for receiving Bluetooth LE Audio data.
Definition le_audio.h:66
int unicast_server_disable(void)
Disable the Bluetooth LE Audio unicast (CIS) server.
int unicast_server_enable(le_audio_receive_cb rx_cb, enum bt_audio_location location)
Enable the Bluetooth LE Audio unicast (CIS) server.
int unicast_server_config_get(struct bt_conn *conn, enum bt_audio_dir dir, uint32_t *bitrate, uint32_t *sampling_rate_hz, uint32_t *pres_delay_us)
Get configuration for audio stream.
int unicast_server_uuid_populate(struct net_buf_simple *uuid_buf)
Put the UUIDs from this module into the buffer.
int unicast_server_pd_min_set(uint32_t dly_min_in_us)
Set the minimum presentation delay for audio streams.
int unicast_server_send(struct net_buf const *const audio_frame)
Send data from the LE Audio unicast (CIS) server, if configured as a source.
int unicast_server_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant)
Put the advertising data from this module into the buffer.