Struct rubble::link::advertising::ConnectRequestData [−][src]
pub struct ConnectRequestData {
access_address: Hex<u32>,
crc_init: Hex<u32>,
win_size: Duration,
win_offset: Duration,
interval: Duration,
latency: u16,
timeout: Duration,
chm: ChannelMap,
hop: u8,
sca: SleepClockAccuracy,
}
Expand description
Connection parameters sent along with a ConnectRequest
PDU (also known as LLData
).
Fields
access_address: Hex<u32>
crc_init: Hex<u32>
win_size: Duration
Transmit window size in µs.
win_offset: Duration
Transmit window offset in µs.
interval: Duration
Connection interval in µs.
latency: u16
Slave latency (number of connection events).
timeout: Duration
Connection timeout.
chm: ChannelMap
hop: u8
sca: SleepClockAccuracy
Implementations
Returns the Access Address to use for data channel communication.
The address is randomly generated by the initiator (the device sending the connection request) according to the requirements in the Bluetooth specification.
Returns the initialization value for the CRC calculation.
The CRC polynomial is always the same.
Returns the channel map specified by the initiator.
Returns the end of the transmit window from reception of the CONNECT_REQ
containing
self
.
Returns the slave latency (as the number of connection events).
Returns the connection supervision timeout (connSupervisionTimeout
) to use for this
connection.
If no data packet is received for this duration, the connection should be considered lost.
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 ConnectRequestData
impl Send for ConnectRequestData
impl Sync for ConnectRequestData
impl Unpin for ConnectRequestData
impl UnwindSafe for ConnectRequestData
Blanket Implementations
Mutably borrows from an owned value. Read more