mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(ble_audio): Miscellaneous update for verifying with PTS cases
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
|
||||
/* bt_dev flags: the flags defined here represent BT controller state */
|
||||
enum {
|
||||
/** The application either explicitly or implicitly instructed the stack to scan
|
||||
@@ -46,6 +48,12 @@ struct bt_le_ext_adv {
|
||||
/* Advertising handle */
|
||||
uint8_t handle;
|
||||
|
||||
/* Advertising address */
|
||||
bt_addr_le_t addr;
|
||||
|
||||
/* Advertising SID */
|
||||
uint8_t sid;
|
||||
|
||||
ATOMIC_DEFINE(flags, BT_ADV_NUM_FLAGS);
|
||||
};
|
||||
|
||||
|
||||
@@ -893,7 +893,10 @@ ssize_t bt_gatt_attr_read_chrc(struct bt_conn *conn,
|
||||
})), \
|
||||
BT_GATT_ATTRIBUTE(_uuid, _perm, _read, _write, _user_data)
|
||||
|
||||
#define BT_GATT_CCC_MAX (1)
|
||||
/* Depth of each CCC's subscriber-config pool: one slot per bonded peer (subscription
|
||||
* retained across disconnect for reconnect notify) + the active connection. A 1-deep
|
||||
* pool made a second bonded subscriber fail with CccNoFreeCfg. */
|
||||
#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_PAIRED + CONFIG_BT_MAX_CONN)
|
||||
|
||||
/** @brief GATT CCC configuration entry.
|
||||
*
|
||||
@@ -916,7 +919,8 @@ struct bt_gatt_ccc_cfg {
|
||||
/** Internal representation of CCC value */
|
||||
struct bt_gatt_ccc_managed_user_data {
|
||||
/** Configuration for each connection */
|
||||
struct bt_gatt_ccc_cfg cfg[BT_GATT_CCC_MAX];
|
||||
struct bt_gatt_ccc_cfg *cfg;
|
||||
uint8_t cfg_count;
|
||||
|
||||
/** Highest value of all connected peer's subscriptions */
|
||||
uint16_t value;
|
||||
@@ -1011,13 +1015,12 @@ ssize_t bt_gatt_attr_write_ccc(struct bt_conn *conn,
|
||||
* @param _match Configuration match callback.
|
||||
*/
|
||||
#define BT_GATT_CCC_MANAGED_USER_DATA_INIT(_changed, _write, _match) \
|
||||
{ \
|
||||
.cfg = { \
|
||||
[0 ... (BT_GATT_CCC_MAX - 1)] = {0}, \
|
||||
}, \
|
||||
.cfg_changed = _changed, \
|
||||
.cfg_write = _write, \
|
||||
.cfg_match = _match, \
|
||||
{ \
|
||||
.cfg = NULL, \
|
||||
.cfg_count = 0, \
|
||||
.cfg_changed = _changed, \
|
||||
.cfg_write = _write, \
|
||||
.cfg_match = _match, \
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4153,6 +4153,15 @@ struct bt_uuid_128 {
|
||||
*/
|
||||
#define BT_UUID_CSIS_RANK \
|
||||
BT_UUID_DECLARE_16(BT_UUID_CSIS_RANK_VAL)
|
||||
/**
|
||||
* @brief Coordinated Set Name value (CSIS v1.1)
|
||||
*/
|
||||
#define BT_UUID_CSIS_SET_NAME_VAL 0x2c1a
|
||||
/**
|
||||
* @brief Coordinated Set Name
|
||||
*/
|
||||
#define BT_UUID_CSIS_SET_NAME \
|
||||
BT_UUID_DECLARE_16(BT_UUID_CSIS_SET_NAME_VAL)
|
||||
/**
|
||||
* @brief GATT Characteristic Encrypted Data Key Material UUID Value
|
||||
*/
|
||||
|
||||
@@ -259,6 +259,8 @@ int k_work_reschedule(struct k_work_delayable *dwork, k_timeout_t delay);
|
||||
|
||||
int k_work_schedule_periodic(struct k_work_delayable *dwork, k_timeout_t period_ms);
|
||||
|
||||
int k_work_schedule_periodic_us(struct k_work_delayable *dwork, uint64_t period_us);
|
||||
|
||||
k_timeout_t k_work_delayable_remaining_get(struct k_work_delayable *dwork);
|
||||
|
||||
/* Slist */
|
||||
|
||||
Reference in New Issue
Block a user