Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Bluetooth Content Control Identifier (CCID) . More...
Macros | |
#define | BT_CCID_MIN 0 |
Minimum CCID value. | |
#define | BT_CCID_MAX 255 |
Maximum CCID value. | |
Functions | |
int | bt_ccid_alloc_value (void) |
Allocates a CCID value. | |
const struct bt_gatt_attr * | bt_ccid_find_attr (uint8_t ccid) |
Get the GATT attribute of a CCID value. | |
Bluetooth Content Control Identifier (CCID) .
The Content Control Identifier (CCID) API manages CCIDs for BT_UUID_CCID characteristics.
#define BT_CCID_MAX 255 |
#include <zephyr/bluetooth/audio/ccid.h>
Maximum CCID value.
#define BT_CCID_MIN 0 |
#include <zephyr/bluetooth/audio/ccid.h>
Minimum CCID value.
int bt_ccid_alloc_value | ( | void | ) |
#include <zephyr/bluetooth/audio/ccid.h>
Allocates a CCID value.
This should always be called right before registering a GATT service that contains a BT_UUID_CCID characteristic. Allocating a CCID without registering the characteristic may (in very rare cases) result in duplicated CCIDs on the device.
Requires that
CONFIG_BT_CONN
is enabled.
ccid | 8-bit unsigned CCID value on success |
-ENOMEM | No more CCIDs can be allocated |
const struct bt_gatt_attr * bt_ccid_find_attr | ( | uint8_t | ccid | ) |
#include <zephyr/bluetooth/audio/ccid.h>
Get the GATT attribute of a CCID value.
Searches the current GATT database for a CCID characteristic that has the supplied CCID value.
Requires that
CONFIG_BT_CONN
is enabled.
ccid | The CCID to search for |
NULL | None was found |
attr | Pointer to a GATT attribute |