Struct r3_portkit::tickless::TicklessStatelessCore
source · pub struct TicklessStatelessCore;
Expand description
The stateless and tickless implementation of
r3_kernel::PortTimer
.
The stateless algorithm is chosen if the hardware ticks and OS ticks “line up” periodically with a period shorter than the representable ranges of both tick counts.
Trait Implementations§
source§impl Clone for TicklessStatelessCore
impl Clone for TicklessStatelessCore
source§fn clone(&self) -> TicklessStatelessCore
fn clone(&self) -> TicklessStatelessCore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TicklessStatelessCore
impl Debug for TicklessStatelessCore
source§impl TicklessStateTrait for TicklessStatelessCore
impl TicklessStateTrait for TicklessStatelessCore
source§fn reset(&mut self, _cfg: &TicklessCfg, _hw_tick_count: u32)
fn reset(&mut self, _cfg: &TicklessCfg, _hw_tick_count: u32)
Mark the given hardware tick count as the origin (where
OS tick count is exactly zero). Read more
source§fn mark_reference(&mut self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
fn mark_reference(&mut self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
Mark a reference point. Returns the reference point’s OS tick count
(in range
0..=cfg.
max_tick_count
()
). Read moresource§fn tick_count_to_hw_tick_count(&self, cfg: &TicklessCfg, tick_count: u32) -> u32
fn tick_count_to_hw_tick_count(&self, cfg: &TicklessCfg, tick_count: u32) -> u32
Calculate the earliest hardware tick count representing a point of time
that coincides or follows the one represented by the specified OS tick
count. Read more
source§fn tick_count(&self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
fn tick_count(&self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
source§fn mark_reference_and_measure(
&mut self,
cfg: &TicklessCfg,
hw_tick_count: u32,
ticks: u32
) -> Measurement
fn mark_reference_and_measure( &mut self, cfg: &TicklessCfg, hw_tick_count: u32, ticks: u32 ) -> Measurement
Mark a reference point and start measuring the specified time interval
ticks
(measured in OS ticks = microseconds). Read more