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§
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