Struct bluetooth_hci::host::ConnectionParameters[][src]

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,
}

Parameters for the le_create_connection event.

Fields

Recommendation from the host on how frequently the Controller should scan.

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.

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.

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.

Defines the minimum and maximum allowed connection interval, latency, and supervision timeout.

Informative parameters providing the Controller with the expected minimum and maximum length of the connection events.

Trait Implementations

impl Clone for ConnectionParameters
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConnectionParameters
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations