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: AdvertisingModeBitmap of extended advertising modes
adv_handle: AdvertisingHandleUsed to identify an advertising set
adv_event_properties: AdvertisingEventType of advertising event
adv_interval: ExtendedAdvertisingIntervalAdvertising interval
primary_adv_channel_map: ChannelsAdvertising channel map
own_addr_type: OwnAddressTypeOwn 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: BdAddrTypePublic device address, random device addressm public identity address, or random (static) identity address of the device to be connected.
adv_filter_policy: AdvertisingFilterPolicyAdvertising filter policy
adv_tx_power: u8Advertising TX power. Units; dBm.
Values;
- -127 .. 20
secondary_adv_max_skip: u8Secondary advertising maximum skip.
Values:
- 0x00:
AUX_QDV_INDshall be sent prior to the next advertising event - 0x01 .. 0xFF: Maximum advertising events to the Controller can skip
before sending the
AUX_QDV_INDpackets on the secondary physical channel.
secondary_adv_phy: AdvertisingPhySecondary advertising PHY
adv_sid: u8Value of advertising SID subfield in the ADI field of the PDU.
Values:
- 0x00 .. 0x0F
scan_req_notification_enable: boolScan request notifications
Auto Trait Implementations§
impl Freeze for AdvSetConfig
impl RefUnwindSafe for AdvSetConfig
impl Send for AdvSetConfig
impl Sync for AdvSetConfig
impl Unpin for AdvSetConfig
impl UnwindSafe for AdvSetConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more