Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pbp.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
8#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
9
22#include <zephyr/sys/util.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* PBA Service UUID + Public Broadcast Announcement features + Metadata Length */
30#define BT_PBP_MIN_PBA_SIZE (BT_UUID_SIZE_16 + 1 + 1)
31
40};
41
54int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len,
55 enum bt_pbp_announcement_feature features,
56 struct net_buf_simple *pba_data_buf);
57
74 uint8_t **meta);
75
76#ifdef __cplusplus
77}
78#endif
79
84#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_ */
Bluetooth Audio handling.
bt_pbp_announcement_feature
Public Broadcast Announcement features.
Definition: pbp.h:33
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:37
@ BT_PBP_ANNOUNCEMENT_FEATURE_HIGH_QUALITY
High Quality Public Broadcast Audio configuration.
Definition: pbp.h:39
@ BT_PBP_ANNOUNCEMENT_FEATURE_ENCRYPTION
Broadcast Streams encryption status.
Definition: pbp.h:35
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition: util_macro.h:44
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Bluetooth data.
Definition: bluetooth.h:454
Simple network buffer representation.
Definition: buf.h:87
Misc utilities.