zephyr::raw

Struct bt_le_per_adv_sync_cb

source
#[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

Trait Implementations§

source§

impl Debug for bt_le_per_adv_sync_cb

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.