#[repr(C)]pub struct bt_le_per_adv_sync_cb {
pub synced: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *mut bt_le_per_adv_sync_synced_info)>,
pub term: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_term_info)>,
pub recv: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_recv_info, _: *mut net_buf_simple)>,
pub state_changed: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_state_info)>,
pub biginfo: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_iso_biginfo)>,
pub cte_report_cb: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_df_per_adv_sync_iq_samples_report)>,
pub node: _snode,
}
Fields§
§synced: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *mut bt_le_per_adv_sync_synced_info)>
@brief The periodic advertising has been successfully synced.
This callback notifies the application that the periodic advertising set has been successfully synced, and will now start to receive periodic advertising reports.
@param sync The periodic advertising sync object. @param info Information about the sync event.
term: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_term_info)>
@brief The periodic advertising sync has been terminated.
This callback notifies the application that the periodic advertising sync has been terminated, either by local request, remote request or because due to missing data, e.g. by being out of range or sync.
@param sync The periodic advertising sync object.
recv: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_recv_info, _: *mut net_buf_simple)>
@brief Periodic advertising data received.
This callback notifies the application of an periodic advertising report.
@param sync The advertising set object. @param info Information about the periodic advertising event. @param buf Buffer containing the periodic advertising data. NULL if the controller failed to receive a subevent indication. Only happens if @kconfig{CONFIG_BT_PER_ADV_SYNC_RSP} is enabled.
state_changed: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_le_per_adv_sync_state_info)>
@brief The periodic advertising sync state has changed.
This callback notifies the application about changes to the sync state. Initialize sync and termination is handled by their individual callbacks, and won’t be notified here.
@param sync The periodic advertising sync object. @param info Information about the state change.
biginfo: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_iso_biginfo)>
@brief BIGInfo advertising report received.
This callback notifies the application of a BIGInfo advertising report. This is received if the advertiser is broadcasting isochronous streams in a BIG. See iso.h for more information.
@param sync The advertising set object. @param biginfo The BIGInfo report.
cte_report_cb: Option<unsafe extern "C" fn(_: *mut bt_le_per_adv_sync, _: *const bt_df_per_adv_sync_iq_samples_report)>
@brief Callback for IQ samples report collected when sampling CTE received with periodic advertising PDU.
@param sync The periodic advertising sync object. @param info Information about the sync event.
node: _snode