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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.