Struct rubble::link::llcp::ConnectionParamRequest [−][src]
pub struct ConnectionParamRequest {
interval_min: u16,
interval_max: u16,
slave_latency: u16,
supervision_timeout: u16,
preferred_periodicity: u8,
reference_conn_event_count: u16,
offsets: [u16; 6],
}
Expand description
A connection parameter update request or response (LL_CONNECTION_PARAM_REQ
/
LL_CONNECTION_PARAM_RSP
).
Fields
interval_min: u16
interval_max: u16
slave_latency: u16
supervision_timeout: u16
preferred_periodicity: u8
connInterval
is preferred to be a multiple of this value (in 1.25 ms steps).
reference_conn_event_count: u16
offsets: [u16; 6]
Implementations
Creates a new connection update request structure filled with default values.
The returned structure will use conservative (maximally permissive) default values that will not usually result in a change in connection parameters, so users of this function likely want to call a setter afterwards.
Sets the minimum and maximum requested connection interval.
Parameters
min
: Minimum connection interval to request.max
: Maximum connection interval to request.
Both min
and max
must be in range 7.5ms to 4s, or they will be constrained to lie in
that range.
Both min
and max
will be rounded down to units of 1.25 ms.
Panics
This will panic if min > max
.
Returns the minimum requested connection interval.
Returns the maximum requested connection interval.
Returns the slave latency in number of connection events.
Returns the supervision timeout.
Trait Implementations
Decode a Self
from a byte slice, advancing bytes
to point past the data that was read. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConnectionParamRequest
impl Send for ConnectionParamRequest
impl Sync for ConnectionParamRequest
impl Unpin for ConnectionParamRequest
impl UnwindSafe for ConnectionParamRequest
Blanket Implementations
Mutably borrows from an owned value. Read more