pub struct ConnectionParameters {
pub scan_window: ScanWindow,
pub initiator_filter_policy: ConnectionFilterPolicy,
pub peer_address: PeerAddrType,
pub own_address_type: OwnAddressType,
pub conn_interval: ConnectionInterval,
pub expected_connection_length: ExpectedConnectionLength,
}
Expand description
Parameters for the le_create_connection
event.
Fields§
§scan_window: ScanWindow
Recommendation from the host on how frequently the Controller should scan.
initiator_filter_policy: ConnectionFilterPolicy
Determines whether the White List is used. If the White List is not used, peer_address
specifies the address type and address of the advertising device to connect to.
peer_address: PeerAddrType
Indicates the type and value of the address used in the connectable advertisement sent by
the peer. The Host shall not use PublicIdentityAddress
or
RandomIdentityAddress
(both introduced in v4.2) if both the Host and the
Controller support the le_set_privacy_mode
command (introduced in v5.0). If a Controller
that supports the LE Set Privacy Mode command receives the
le_create_connection
command with peer_address
set to
either PublicIdentityAddress
or RandomIdentityAddress
,
it may use either device privacy mode or network privacy mode for that peer device.
own_address_type: OwnAddressType
The type of address being used in the connection request packets.
If this is Random
and the random address for the device has not
been initialized, the Controller shall return the error code
Status::InvalidParameters
.
If this is PrivateFallbackRemote
, initiator_filter_policy
is
UseAddress
, the controller’s resolving list did not
contain a matching entry, and the random address for the device has not been initialized,
the Controller shall return the error code Status::InvalidParameters
.
If this is set PrivateFallbackRandom
, initiator_filter_policy
is
WhiteList
, and the random address for the device has
not been initialized, the Controller shall return the error code
Status::InvalidParameters
.
conn_interval: ConnectionInterval
Defines the minimum and maximum allowed connection interval, latency, and supervision timeout.
expected_connection_length: ExpectedConnectionLength
Informative parameters providing the Controller with the expected minimum and maximum length of the connection events.
Trait Implementations§
Source§impl Clone for ConnectionParameters
impl Clone for ConnectionParameters
Source§fn clone(&self) -> ConnectionParameters
fn clone(&self) -> ConnectionParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more