Struct bt_le_per_adv_param

Source
#[repr(C)]
pub struct bt_le_per_adv_param { pub interval_min: u16, pub interval_max: u16, pub options: u32, }
Expand description

@brief Parameters for configuring periodic advertising.

@details This struct is used to configure the parameters for periodic advertising, including the minimum and maximum advertising intervals, options, and settings for subevents if periodic advertising responses are supported. The intervals are specified in units of 1.25 ms, and the options field can be used to modify other advertising behaviors. For extended advertisers, the periodic advertising parameters can be set or updated using this structure. Some parameters are conditional based on whether the device supports periodic advertising responses (configured via @kconfig{CONFIG_BT_PER_ADV_RSP}).

@note Used in @ref bt_le_per_adv_set_param function.

Fields§

§interval_min: u16

@brief Minimum Periodic Advertising Interval (N * 1.25 ms)

Shall be greater or equal to BT_GAP_PER_ADV_MIN_INTERVAL and less or equal to interval_max.

§interval_max: u16

@brief Maximum Periodic Advertising Interval (N * 1.25 ms)

Shall be less or equal to BT_GAP_PER_ADV_MAX_INTERVAL and greater or equal to interval_min.

§options: u32

Bit-field of periodic advertising options, see the @ref bt_le_adv_opt field.

Trait Implementations§

Source§

impl Debug for bt_le_per_adv_param

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.