Struct r3_portkit::tickless::TicklessCfg
source · pub struct TicklessCfg { /* private fields */ }
Expand description
The precomputed parameters for the tickless implementation of
r3_kernel::PortTimer
.
Implementations§
source§impl TicklessCfg
impl TicklessCfg
sourcepub const fn new(_: TicklessOptions) -> Result<Self, CfgError>
pub const fn new(_: TicklessOptions) -> Result<Self, CfgError>
Construct a TicklessCfg
.
sourcepub const fn hw_max_tick_count(&self) -> u32
pub const fn hw_max_tick_count(&self) -> u32
Get the maximum hardware tick count (period minus one cycle).
sourcepub const fn max_tick_count(&self) -> u32
pub const fn max_tick_count(&self) -> u32
Get the maximum OS tick count (period minus one cycle).
sourcepub const fn max_timeout(&self) -> u32
pub const fn max_timeout(&self) -> u32
Get the maximum time interval that can be reliably measured, taking an interrupt latency into account.
Trait Implementations§
source§impl Clone for TicklessCfg
impl Clone for TicklessCfg
source§fn clone(&self) -> TicklessCfg
fn clone(&self) -> TicklessCfg
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 TicklessCfg
impl Debug for TicklessCfg
source§impl PartialEq<TicklessCfg> for TicklessCfg
impl PartialEq<TicklessCfg> for TicklessCfg
source§fn eq(&self, other: &TicklessCfg) -> bool
fn eq(&self, other: &TicklessCfg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.