Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pacs.h
Go to the documentation of this file.
1/* @file
2 * @brief APIs for Audio Capabilities handling
3 *
4 * Copyright (c) 2021 Intel Corporation
5 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
6 *
7 * SPDX-License-Identifier: Apache-2.0
8 */
9
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PACS_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PACS_H_
12
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
23
24 /* Internally used list node */
25 sys_snode_t _node;
26};
27
37typedef bool (*bt_pacs_cap_foreach_func_t)(const struct bt_pacs_cap *cap,
38 void *user_data);
39
50 void *user_data);
51
62
73
82 enum bt_audio_location location);
83
92 enum bt_audio_context contexts);
93
101
117 enum bt_audio_context *contexts);
118
132 enum bt_audio_dir dir);
133
142 enum bt_audio_context contexts);
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PACS_H_ */
Bluetooth Audio handling.
bt_audio_dir
Audio Capability type.
Definition: audio.h:635
bt_audio_location
Location values for BT Audio.
Definition: audio.h:485
bt_audio_context
Audio Context Type for Generic Audio.
Definition: audio.h:282
struct _snode sys_snode_t
Single-linked list node structure.
Definition: slist.h:39
int bt_pacs_conn_set_available_contexts_for_conn(struct bt_conn *conn, enum bt_audio_dir dir, enum bt_audio_context *contexts)
Set the available contexts for a given connection.
int bt_pacs_cap_register(enum bt_audio_dir dir, struct bt_pacs_cap *cap)
Register Published Audio Capability.
int bt_pacs_set_available_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts)
Set the available contexts for an endpoint type.
void bt_pacs_cap_foreach(enum bt_audio_dir dir, bt_pacs_cap_foreach_func_t func, void *user_data)
Published Audio Capability iterator.
enum bt_audio_context bt_pacs_get_available_contexts(enum bt_audio_dir dir)
Get the available contexts for an endpoint type.
int bt_pacs_cap_unregister(enum bt_audio_dir dir, struct bt_pacs_cap *cap)
Unregister Published Audio Capability.
enum bt_audio_context bt_pacs_get_available_contexts_for_conn(struct bt_conn *conn, enum bt_audio_dir dir)
Get the available contexts for a given connection.
bool(* bt_pacs_cap_foreach_func_t)(const struct bt_pacs_cap *cap, void *user_data)
Published Audio Capability iterator callback.
Definition: pacs.h:37
int bt_pacs_set_supported_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts)
Set the supported contexts for an endpoint type.
int bt_pacs_set_location(enum bt_audio_dir dir, enum bt_audio_location location)
Set the location for an endpoint type.
#define bool
Definition: stdbool.h:13
Codec capability structure.
Definition: audio.h:550
Published Audio Capability structure.
Definition: pacs.h:20
const struct bt_audio_codec_cap * codec_cap
Codec capability reference.
Definition: pacs.h:22