Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Struct to hold the Basic Audio Profile Scan Delegator callbacks. More...
#include <bap.h>
Data Fields | |
void(* | recv_state_updated )(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state) |
Receive state updated. | |
int(* | pa_sync_req )(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, bool past_avail, uint16_t pa_interval) |
Periodic advertising sync request. | |
int(* | pa_sync_term_req )(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state) |
Periodic advertising sync termination request. | |
void(* | broadcast_code )(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) |
Broadcast code received. | |
int(* | bis_sync_req )(struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint32_t bis_sync_req[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]) |
Broadcast Isochronous Stream synchronize request. | |
void(* | scanning_state )(struct bt_conn *conn, bool is_scanning) |
Broadcast Assistant scanning state callback. | |
Struct to hold the Basic Audio Profile Scan Delegator callbacks.
These can be registered for usage with bt_bap_scan_delegator_register().
int(* bt_bap_scan_delegator_cb::bis_sync_req) (struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint32_t bis_sync_req[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]) |
Broadcast Isochronous Stream synchronize request.
Request from Broadcast Assistant device to modify the Broadcast Isochronous Stream states. The request shall be fulfilled with accordance to the bis_sync_req
within reasonable time. The Broadcast Assistant may also request fewer, or none, indexes to be synchronized.
[in] | conn | Pointer to the connection of the Broadcast Assistant requesting the sync. |
[in] | recv_state | Pointer to the receive state that is being requested for the sync. |
[in] | bis_sync_req | Array of bitfields of which BIS indexes that is requested to sync for each subgroup by the Broadcast Assistant. A value of 0 indicates a request to terminate the BIG sync. |
void(* bt_bap_scan_delegator_cb::broadcast_code) (struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) |
Broadcast code received.
Broadcast code received from a broadcast assistant
conn | Pointer to the connection providing the broadcast code. |
recv_state | Pointer to the receive state the broadcast code is being provided for. |
broadcast_code | The 16-octet broadcast code |
int(* bt_bap_scan_delegator_cb::pa_sync_req) (struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state, bool past_avail, uint16_t pa_interval) |
Periodic advertising sync request.
Request from peer device to synchronize with the periodic advertiser denoted by the recv_state
. To notify the Broadcast Assistant about any pending sync
conn | Pointer to the connection requesting the periodic advertising sync. |
recv_state | Pointer to the receive state that is being requested for periodic advertising sync. |
past_avail | True if periodic advertising sync transfer is available. |
pa_interval | The periodic advertising interval. |
int(* bt_bap_scan_delegator_cb::pa_sync_term_req) (struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state) |
Periodic advertising sync termination request.
Request from peer device to terminate the periodic advertiser sync denoted by the recv_state
.
conn | Pointer to the connection requesting the periodic advertising sync termination. |
recv_state | Pointer to the receive state that is being requested for periodic advertising sync. |
void(* bt_bap_scan_delegator_cb::recv_state_updated) (struct bt_conn *conn, const struct bt_bap_scan_delegator_recv_state *recv_state) |
Receive state updated.
conn | Pointer to the connection to a remote device if the change was caused by it, otherwise NULL. |
recv_state | Pointer to the receive state that was updated. |
void(* bt_bap_scan_delegator_cb::scanning_state) (struct bt_conn *conn, bool is_scanning) |
Broadcast Assistant scanning state callback.
Callback triggered when a Broadcast Assistant notifies the Scan Delegator about the assistants scanning state.
conn | Pointer to the connection that initiated the scan. |
is_scanning | true if scanning started, false if scanning stopped. |