Struct riot_sys::ztimer_ops_t[][src]

#[repr(C)]
pub struct ztimer_ops_t { pub set: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t, val: u32)>, pub now: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t) -> u32>, pub cancel: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t)>, }
Expand description

@brief ztimer backend method structure

This table contains pointers to the virtual methods for a ztimer clock.

These functions used by ztimer core to interact with the underlying clock.

Fields

set: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t, val: u32)>

@brief Set a new timer target @param clock ztimer clock to set the new target @param val Relative target (e.g. fire at value now() + val)

now: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t) -> u32>

@brief Get the current count of the timer @param clock ztimer clock to get the current time from

cancel: Option<unsafe extern "C" fn(clock: *mut ztimer_clock_t)>

@brief Cancel any set target @param clock ztimer clock to cancel a pending alarm, if any

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

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.