nRF Connect SDK API 2.8.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
7#ifndef _UNICAST_SERVER_H_
8#define _UNICAST_SERVER_H_
9
10#include "bt_le_audio_tx.h"
11#include "le_audio.h"
12
13#include <audio_defines.h>
14
28int unicast_server_config_get(struct bt_conn *conn, enum bt_audio_dir dir, uint32_t *bitrate,
29 uint32_t *sampling_rate_hz, uint32_t *pres_delay_us);
30
40int unicast_server_uuid_populate(struct net_buf_simple *uuid_buf);
41
52int unicast_server_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant);
53
62
69
78int unicast_server_enable(le_audio_receive_cb rx_cb, enum bt_audio_location location);
79
80#endif /* _UNICAST_SERVER_H_ */
Globally accessible audio related defines.
void(* le_audio_receive_cb)(const uint8_t *const data, size_t size, bool bad_frame, uint32_t sdu_ref, enum audio_channel channel_index, size_t desired_size)
Callback for receiving Bluetooth LE Audio data.
Definition le_audio.h:54
Encoded audio data and information.
Definition le_audio.h:63
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_send(struct le_audio_encoded_audio enc_audio)
Send data from the LE Audio unicast (CIS) server, if configured as a source.
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_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant)
Put the advertising data from this module into the buffer.