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: u64
The numerator of the hardware timer frequency.
hw_freq_denom: u64
The denominator of the hardware timer frequency.
hw_headroom_ticks: u32
The headroom for interrupt latency, measured in hardware timer cycles.
force_full_hw_period: bool
Forces hw_max_tick_count
to be u32::MAX
. This might require the
use of a less-efficient algorithm.
resettable: bool
Allow the use of TicklessStateTrait::reset
.
Trait Implementations
sourceimpl Clone for TicklessOptions
impl Clone for TicklessOptions
sourcefn clone(&self) -> TicklessOptions
fn clone(&self) -> TicklessOptions
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 TicklessOptions
impl Debug for TicklessOptions
sourceimpl PartialEq<TicklessOptions> for TicklessOptions
impl PartialEq<TicklessOptions> for TicklessOptions
sourcefn eq(&self, other: &TicklessOptions) -> bool
fn eq(&self, other: &TicklessOptions) -> bool
impl Copy for TicklessOptions
impl Eq for TicklessOptions
impl StructuralEq for TicklessOptions
impl StructuralPartialEq for TicklessOptions
Auto Trait Implementations
impl RefUnwindSafe for TicklessOptions
impl Send for TicklessOptions
impl Sync for TicklessOptions
impl Unpin for TicklessOptions
impl UnwindSafe for TicklessOptions
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