Zephyr API Documentation 4.4.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
36#include <zephyr/net_buf.h>
37#include <zephyr/sys/util.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
50#define BT_PBP_MIN_PBA_SIZE (BT_UUID_SIZE_16 + 1 + 1)
51
61
74int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len,
75 enum bt_pbp_announcement_feature features,
76 struct net_buf_simple *pba_data_buf);
77
94 uint8_t **meta);
95
96#ifdef __cplusplus
97}
98#endif
99
103
104#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_ */
Bluetooth Audio handling.
Bluetooth subsystem core APIs.
Bluetooth UUID handling.
Bluetooth data types and helpers.
bt_pbp_announcement_feature
Public Broadcast Announcement features.
Definition pbp.h:53
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:57
@ BT_PBP_ANNOUNCEMENT_FEATURE_HIGH_QUALITY
High Quality Public Broadcast Audio configuration.
Definition pbp.h:59
@ BT_PBP_ANNOUNCEMENT_FEATURE_ENCRYPTION
Broadcast Streams encryption status.
Definition pbp.h:55
#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 data.h:40
Simple network buffer representation.
Definition net_buf.h:89
Misc utilities.
Macro utilities.