Struct bt_le_per_adv_subevent_data_params

Source
#[repr(C)]
pub struct bt_le_per_adv_subevent_data_params { pub subevent: u8, pub response_slot_start: u8, pub response_slot_count: u8, pub data: *const net_buf_simple, }
Expand description

@brief Parameters for setting data for a specific periodic advertising with response subevent.

@details This struct provides the necessary information to set the data for a specific subevent in a Periodic Advertising with Response (PAwR) scenario. It specifies the subevent number, the range of response slots to listen to, and the actual data to send. This is used to respond to data request from an advertiser by sending back the data in the specified subevent.

@note Used in @ref bt_le_per_adv_set_subevent_data function.

Fields§

§subevent: u8

The subevent to set data for

§response_slot_start: u8

The first response slot to listen to

§response_slot_count: u8

The number of response slots to listen to

§data: *const net_buf_simple

The data to send

Trait Implementations§

Source§

impl Debug for bt_le_per_adv_subevent_data_params

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.