Zephyr Project API 4.0.99
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
29#include <stddef.h>
30#include <stdint.h>
31
35#include <zephyr/net_buf.h>
36#include <zephyr/sys/util.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
49#define BT_PBP_MIN_PBA_SIZE (BT_UUID_SIZE_16 + 1 + 1)
50
60
73int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len,
74 enum bt_pbp_announcement_feature features,
75 struct net_buf_simple *pba_data_buf);
76
93 uint8_t **meta);
94
95#ifdef __cplusplus
96}
97#endif
98
103#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_ */
Bluetooth Audio handling.
Bluetooth subsystem core APIs.
bt_pbp_announcement_feature
Public Broadcast Announcement features.
Definition pbp.h:52
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:56
@ BT_PBP_ANNOUNCEMENT_FEATURE_HIGH_QUALITY
High Quality Public Broadcast Audio configuration.
Definition pbp.h:58
@ BT_PBP_ANNOUNCEMENT_FEATURE_ENCRYPTION
Broadcast Streams encryption status.
Definition pbp.h:54
#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:456
Simple network buffer representation.
Definition net_buf.h:89
Misc utilities.
Macro utilities.
Bluetooth UUID handling.