Struct bt_le_per_adv_sync_recv_info

Source
#[repr(C)]
pub struct bt_le_per_adv_sync_recv_info { pub addr: *const bt_addr_le_t, pub sid: u8, pub tx_power: i8, pub rssi: i8, pub cte_type: u8, }
Expand description

@brief Information about a received periodic advertising report.

@details This struct holds information about a periodic advertising event that has been received. It contains details such as the advertiser’s address, SID, transmit power, RSSI, CTE type, and additional information depending on the configuration (e.g., event counter and subevent in case of a subevent indication). This information is provided in the callback when periodic advertising data is received.

@note Used in @ref bt_le_per_adv_sync_cb structure.

Fields§

§addr: *const bt_addr_le_t

Advertiser LE address and type.

§sid: u8

Advertiser SID

§tx_power: i8

The TX power of the advertisement.

§rssi: i8

The RSSI of the advertisement excluding any CTE.

§cte_type: u8

The Constant Tone Extension (CTE) of the advertisement (@ref bt_df_cte_type)

Trait Implementations§

Source§

impl Debug for bt_le_per_adv_sync_recv_info

Source§

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

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.