2022-01-08 00:23:45 +08:00
|
|
|
/* @file
|
|
|
|
* @brief Internal APIs for PACS handling
|
|
|
|
*
|
|
|
|
* Copyright (c) 2020 Intel Corporation
|
|
|
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2024-05-21 01:40:04 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <zephyr/sys/util_macro.h>
|
2022-02-08 21:43:43 +08:00
|
|
|
|
|
|
|
#define BT_AUDIO_LOCATION_MASK BIT_MASK(28)
|
|
|
|
|
2022-01-08 00:23:45 +08:00
|
|
|
struct bt_pac_codec {
|
|
|
|
uint8_t id; /* Codec ID */
|
|
|
|
uint16_t cid; /* Company ID */
|
|
|
|
uint16_t vid; /* Vendor specific Codec ID */
|
|
|
|
} __packed;
|
|
|
|
|
2022-10-20 15:47:34 +08:00
|
|
|
struct bt_pac_ltv {
|
|
|
|
uint8_t len;
|
|
|
|
uint8_t type;
|
|
|
|
uint8_t value[0];
|
2022-01-08 00:23:45 +08:00
|
|
|
} __packed;
|
|
|
|
|
2022-10-20 15:47:34 +08:00
|
|
|
struct bt_pac_ltv_data {
|
|
|
|
uint8_t len;
|
|
|
|
struct bt_pac_ltv data[0];
|
2022-01-08 00:23:45 +08:00
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct bt_pacs_read_rsp {
|
|
|
|
uint8_t num_pac; /* Number of PAC Records*/
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct bt_pacs_context {
|
|
|
|
uint16_t snk;
|
|
|
|
uint16_t src;
|
|
|
|
} __packed;
|