feat(ble_audio): Support using PAST in the cap/acceptor example

This commit is contained in:
Linyan Liu
2026-05-14 20:43:07 +08:00
committed by Liu Linyan
parent 0f96f27d35
commit 3b70c1a856
50 changed files with 1210 additions and 562 deletions
@@ -78,10 +78,18 @@ struct bt_le_per_adv_sync {
/** Advertiser PHY */
uint8_t phy;
/** ACL conn that delivered PAST; BT_CONN_HANDLE_INVALID for non-PAST sync. */
uint16_t conn_handle;
/** Flags */
ATOMIC_DEFINE(flags, BT_PER_ADV_SYNC_NUM_FLAGS);
};
/* Port-level invalid conn_handle sentinel; matches NimBLE BLE_HS_CONN_HANDLE_NONE.
* Use in adapter-agnostic code that cannot reference NimBLE headers.
*/
#define BT_CONN_HANDLE_INVALID 0xffff
struct bt_dev_le {
/* LE features */
uint8_t features[8];
@@ -97,6 +105,9 @@ struct bt_dev {
extern struct bt_dev bt_dev;
#define BT_LE_FEAT_SET(feat, n) (feat[(n) >> 3] |= BIT((n) & 7))
#define BT_LE_FEAT_UNSET(feat, n) (feat[(n) >> 3] &= ~BIT((n) & 7))
/* Data type to store state related with command to be updated
* when command completes successfully.
*/