Struct AdvSetConfig

Source
pub struct AdvSetConfig {
Show 13 fields pub adv_mode: AdvertisingMode, pub adv_handle: AdvertisingHandle, pub adv_event_properties: AdvertisingEvent, pub adv_interval: ExtendedAdvertisingInterval, pub primary_adv_channel_map: Channels, pub own_addr_type: OwnAddressType, pub peer_addr: BdAddrType, pub adv_filter_policy: AdvertisingFilterPolicy, pub adv_tx_power: u8, pub secondary_adv_max_skip: u8, pub secondary_adv_phy: AdvertisingPhy, pub adv_sid: u8, pub scan_req_notification_enable: bool,
}
Expand description

Params for the adv_set_config command

Fields§

§adv_mode: AdvertisingMode

Bitmap of extended advertising modes

§adv_handle: AdvertisingHandle

Used to identify an advertising set

§adv_event_properties: AdvertisingEvent

Type of advertising event

§adv_interval: ExtendedAdvertisingInterval

Advertising interval

§primary_adv_channel_map: Channels

Advertising channel map

§own_addr_type: OwnAddressType

Own address type.

If privacy is disabled, the address can be public or static random, otherwise, it can be a resolvable private address or a non-resolvabble private address.

§peer_addr: BdAddrType

Public device address, random device addressm public identity address, or random (static) identity address of the device to be connected.

§adv_filter_policy: AdvertisingFilterPolicy

Advertising filter policy

§adv_tx_power: u8

Advertising TX power. Units; dBm.

Values;

  • -127 .. 20
§secondary_adv_max_skip: u8

Secondary advertising maximum skip.

Values:

  • 0x00: AUX_QDV_IND shall be sent prior to the next advertising event
  • 0x01 .. 0xFF: Maximum advertising events to the Controller can skip before sending the AUX_QDV_IND packets on the secondary physical channel.
§secondary_adv_phy: AdvertisingPhy

Secondary advertising PHY

§adv_sid: u8

Value of advertising SID subfield in the ADI field of the PDU.

Values:

  • 0x00 .. 0x0F
§scan_req_notification_enable: bool

Scan request notifications

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.