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
sourceimpl Clone for TicklessStatelessCore
impl Clone for TicklessStatelessCore
sourcefn clone(&self) -> TicklessStatelessCore
fn clone(&self) -> TicklessStatelessCore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TicklessStatelessCore
impl Debug for TicklessStatelessCore
sourceimpl Init for TicklessStatelessCore
impl Init for TicklessStatelessCore
sourceimpl TicklessStateTrait for TicklessStatelessCore
impl TicklessStateTrait for TicklessStatelessCore
sourcefn 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
sourcefn 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 moresourcefn 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
sourcefn tick_count(&self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
fn tick_count(&self, cfg: &TicklessCfg, hw_tick_count: u32) -> u32
sourcefn 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 moreimpl Copy for TicklessStatelessCore
Auto Trait Implementations
impl RefUnwindSafe for TicklessStatelessCore
impl Send for TicklessStatelessCore
impl Sync for TicklessStatelessCore
impl Unpin for TicklessStatelessCore
impl UnwindSafe for TicklessStatelessCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more