Reformated csip_set_member to use atomic flags for notifications instead of a pending notification array. This better conforms the style of the code to how its done in other LE Audio services. Signed-off-by: Fredrik Danebjer <frdn@demant.com>
26 lines
642 B
C
26 lines
642 B
C
/**
|
|
* @file
|
|
* @brief Internal APIs for Bluetooth CSIP
|
|
*
|
|
* Copyright (c) 2021-2022 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/bluetooth/audio/csip.h>
|
|
|
|
|
|
#define BT_CSIP_SIRK_TYPE_ENCRYPTED 0x00
|
|
#define BT_CSIP_SIRK_TYPE_PLAIN 0x01
|
|
|
|
#define BT_CSIP_RELEASE_VALUE 0x01
|
|
#define BT_CSIP_LOCK_VALUE 0x02
|
|
|
|
struct bt_csip_set_sirk {
|
|
uint8_t type;
|
|
uint8_t value[BT_CSIP_SET_SIRK_SIZE];
|
|
} __packed;
|
|
|
|
struct bt_csip_set_coordinator_csis_inst *bt_csip_set_coordinator_csis_inst_by_handle(
|
|
struct bt_conn *conn, uint16_t start_handle);
|