/* Bluetooth Audio Content Control Identifier */ /* * Copyright (c) 2020 Bose Corporation * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_BLUETOOTH_CCID_H_ #define ZEPHYR_INCLUDE_BLUETOOTH_CCID_H_ #include #include /** * @brief Gets a free CCID value. * * The maximum number of CCID values that can retrieved on the device is 0xFE, * one less than per the GSS specification. * * @return uint8_t A content control ID value. */ uint8_t bt_ccid_get_value(void); /** * @brief Get the GATT attribute of a CCID value * * Searches the current GATT database for a CCID characteristic that has the supplied CCID value. * * @param ccid The CCID the search for * * @retval NULL if none was found * @retval A pointer to a GATT attribute if found */ const struct bt_gatt_attr *bt_ccid_find_attr(uint8_t ccid); #endif /* ZEPHYR_INCLUDE_BLUETOOTH_CCID_H_ */