2021-10-21 12:04:16 +02:00
|
|
|
/**
|
|
|
|
* @file
|
2022-10-11 13:53:49 +02:00
|
|
|
* @brief Internal APIs for Bluetooth CSIP
|
2021-10-21 12:04:16 +02:00
|
|
|
*
|
2022-10-11 13:53:49 +02:00
|
|
|
* Copyright (c) 2021-2022 Nordic Semiconductor ASA
|
2021-10-21 12:04:16 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-10-11 13:53:49 +02:00
|
|
|
#include <zephyr/bluetooth/audio/csip.h>
|
2021-10-21 12:04:16 +02:00
|
|
|
|
2021-11-24 12:40:30 +01:00
|
|
|
|
2022-10-11 13:53:49 +02:00
|
|
|
#define BT_CSIP_SIRK_TYPE_ENCRYPTED 0x00
|
|
|
|
#define BT_CSIP_SIRK_TYPE_PLAIN 0x01
|
2021-11-24 12:40:30 +01:00
|
|
|
|
2022-10-11 13:53:49 +02:00
|
|
|
#define BT_CSIP_RELEASE_VALUE 0x01
|
|
|
|
#define BT_CSIP_LOCK_VALUE 0x02
|
2021-11-24 12:40:30 +01:00
|
|
|
|
2022-10-11 13:53:49 +02:00
|
|
|
struct bt_csip_set_sirk {
|
2021-11-24 11:06:13 +01:00
|
|
|
uint8_t type;
|
2022-10-11 13:53:49 +02:00
|
|
|
uint8_t value[BT_CSIP_SET_SIRK_SIZE];
|
2021-11-24 11:06:13 +01:00
|
|
|
} __packed;
|
|
|
|
|
2022-10-11 13:53:49 +02:00
|
|
|
struct bt_csip_set_coordinator_csis_inst *bt_csip_set_coordinator_csis_inst_by_handle(
|
|
|
|
struct bt_conn *conn, uint16_t start_handle);
|