riot_sys

Type Alias ztimer_clock_t

Source
pub type ztimer_clock_t = ztimer_clock;
Expand description

@brief ztimer device structure

Aliased Type§

struct ztimer_clock_t {
    pub list: ztimer_base,
    pub ops: *const ztimer_ops_t,
    pub last: *mut ztimer_base,
    pub adjust_set: u16,
    pub adjust_sleep: u16,
    pub max_value: u32,
    pub lower_last: u32,
    pub checkpoint: u32,
}

Fields§

§list: ztimer_base

< list of active timers

§ops: *const ztimer_ops_t

< pointer to methods structure

§last: *mut ztimer_base

< last timer in queue, for _is_set()

§adjust_set: u16

< will be subtracted on every set()

§adjust_sleep: u16

< will be subtracted on every sleep(), in addition to adjust_set

§max_value: u32

< maximum relative timer value

§lower_last: u32

< timer value at last now() call

§checkpoint: u32

< cumulated time at last now() call

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes

Trait Implementations

Source§

impl Clone for ztimer_clock

Source§

fn clone(&self) -> ztimer_clock

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ztimer_clock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ztimer_clock

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for ztimer_clock