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