pub struct TschTimeslotTimings { /* private fields */ }Expand description
A TSCH time slot timings (figure 6-30 in IEEE 802.15.4-2020).
If the time slot ID is 0, the default timings are used.
+----+------------+-----+-----------+-----------+--------------+--------------+---------+----------+-------+---------+--------+------------------+
| ID | CCA offset | CCA | TX offset | RX offset | RX ACK delay | TX ACK delay | RX wait | ACK wait | RX/TX | Max ACK | Max TX | Time slot length |
+----+------------+-----+-----------+-----------+--------------+--------------+---------+----------+-------+---------+--------+------------------+Implementations§
Source§impl TschTimeslotTimings
impl TschTimeslotTimings
Sourcepub const DEFAULT_GUARD_TIME: Duration = _
pub const DEFAULT_GUARD_TIME: Duration = _
The default guard time (2200us) in microseconds.
Sourcepub const fn cca_offset(&self) -> Duration
pub const fn cca_offset(&self) -> Duration
Return the CCA offset in microseconds.
Sourcepub fn set_cca_offset(&mut self, cca_offset: Duration)
pub fn set_cca_offset(&mut self, cca_offset: Duration)
Set the CCA offset in microseconds.
Sourcepub fn set_tx_offset(&mut self, tx_offset: Duration)
pub fn set_tx_offset(&mut self, tx_offset: Duration)
Set the TX offset in microseconds.
Sourcepub fn set_rx_offset(&mut self, rx_offset: Duration)
pub fn set_rx_offset(&mut self, rx_offset: Duration)
Set the RX offset in microseconds.
Sourcepub const fn rx_ack_delay(&self) -> Duration
pub const fn rx_ack_delay(&self) -> Duration
Return the RX ACK delay in microseconds.
Sourcepub fn set_rx_ack_delay(&mut self, rx_ack_delay: Duration)
pub fn set_rx_ack_delay(&mut self, rx_ack_delay: Duration)
Set the RX ACK delay in microseconds.
Sourcepub const fn tx_ack_delay(&self) -> Duration
pub const fn tx_ack_delay(&self) -> Duration
Return the TX ACK delay in microseconds.
Sourcepub fn set_tx_ack_delay(&mut self, tx_ack_delay: Duration)
pub fn set_tx_ack_delay(&mut self, tx_ack_delay: Duration)
Set the TX ACK delay in microseconds.
Sourcepub fn set_rx_wait(&mut self, rx_wait: Duration)
pub fn set_rx_wait(&mut self, rx_wait: Duration)
Set the RX wait in microseconds.
Sourcepub fn set_ack_wait(&mut self, ack_wait: Duration)
pub fn set_ack_wait(&mut self, ack_wait: Duration)
Set the ACK wait in microseconds.
Sourcepub fn set_max_ack(&mut self, max_ack: Duration)
pub fn set_max_ack(&mut self, max_ack: Duration)
Set the maximum ACK in microseconds.
Sourcepub fn set_max_tx(&mut self, max_tx: Duration)
pub fn set_max_tx(&mut self, max_tx: Duration)
Set the maximum TX in microseconds.
Sourcepub const fn time_slot_length(&self) -> Duration
pub const fn time_slot_length(&self) -> Duration
Return the time slot length in microseconds.
Sourcepub fn set_time_slot_length(&mut self, time_slot_length: Duration)
pub fn set_time_slot_length(&mut self, time_slot_length: Duration)
Set the time slot length in microseconds.
Trait Implementations§
Source§impl Debug for TschTimeslotTimings
impl Debug for TschTimeslotTimings
Source§impl Default for TschTimeslotTimings
impl Default for TschTimeslotTimings
Auto Trait Implementations§
impl Freeze for TschTimeslotTimings
impl RefUnwindSafe for TschTimeslotTimings
impl Send for TschTimeslotTimings
impl Sync for TschTimeslotTimings
impl Unpin for TschTimeslotTimings
impl UnwindSafe for TschTimeslotTimings
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