Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pbp.h
Go to the documentation of this file.
1
5/*
6 * Copyright 2023 NXP
7 * Copyright (c) 2024 Nordic Semiconductor ASA
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
13#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
14
33#include <zephyr/net/buf.h>
34#include <zephyr/sys/util.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
47#define BT_PBP_MIN_PBA_SIZE (BT_UUID_SIZE_16 + 1 + 1)
48
58
71int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len,
72 enum bt_pbp_announcement_feature features,
73 struct net_buf_simple *pba_data_buf);
74
91 uint8_t **meta);
92
93#ifdef __cplusplus
94}
95#endif
96
101#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_ */
Bluetooth Audio handling.
Bluetooth subsystem core APIs.
bt_pbp_announcement_feature
Public Broadcast Announcement features.
Definition pbp.h:50
int bt_pbp_parse_announcement(struct bt_data *data, enum bt_pbp_announcement_feature *features, uint8_t **meta)
Parses the received advertising data corresponding to a Public Broadcast Announcement.
int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len, enum bt_pbp_announcement_feature features, struct net_buf_simple *pba_data_buf)
Creates a Public Broadcast Announcement based on the information received in the features parameter.
@ BT_PBP_ANNOUNCEMENT_FEATURE_STANDARD_QUALITY
Standard Quality Public Broadcast Audio configuration.
Definition pbp.h:54
@ BT_PBP_ANNOUNCEMENT_FEATURE_HIGH_QUALITY
High Quality Public Broadcast Audio configuration.
Definition pbp.h:56
@ BT_PBP_ANNOUNCEMENT_FEATURE_ENCRYPTION
Broadcast Streams encryption status.
Definition pbp.h:52
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
Buffer management.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Bluetooth data.
Definition bluetooth.h:454
Simple network buffer representation.
Definition buf.h:87
static fdata_t data[2]
Definition test_fifo_contexts.c:15
Misc utilities.
Macro utilities.
Bluetooth UUID handling.