Struct r3_portkit::tickless::TicklessOptions
source · pub struct TicklessOptions {
pub hw_freq_num: u64,
pub hw_freq_denom: u64,
pub hw_headroom_ticks: u32,
pub force_full_hw_period: bool,
pub resettable: bool,
}Expand description
The parameters of the tickless timing algorithm.
It can be passed to TicklessCfg::new to construct TicklessCfg.
Fields§
§hw_freq_num: u64The numerator of the hardware timer frequency.
hw_freq_denom: u64The denominator of the hardware timer frequency.
hw_headroom_ticks: u32The headroom for interrupt latency, measured in hardware timer cycles.
force_full_hw_period: boolForces hw_max_tick_count to be u32::MAX. This might require the
use of a less-efficient algorithm.
resettable: boolAllow the use of TicklessStateTrait::reset.
Trait Implementations§
source§impl Clone for TicklessOptions
impl Clone for TicklessOptions
source§fn clone(&self) -> TicklessOptions
fn clone(&self) -> TicklessOptions
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 TicklessOptions
impl Debug for TicklessOptions
source§impl PartialEq<TicklessOptions> for TicklessOptions
impl PartialEq<TicklessOptions> for TicklessOptions
source§fn eq(&self, other: &TicklessOptions) -> bool
fn eq(&self, other: &TicklessOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.