riot_sys

Type Alias evtimer_msg_t

Source
pub type evtimer_msg_t = evtimer_t;
Expand description

@brief Event timer

Aliased Type§

struct evtimer_msg_t {
    pub timer: ztimer_t,
    pub base: u32,
    pub callback: Option<unsafe extern "C" fn(_: *mut evtimer_event)>,
    pub events: *mut evtimer_event,
}

Fields§

§timer: ztimer_t

< Timer

§base: u32

< Absolute time the first event is built on

§callback: Option<unsafe extern "C" fn(_: *mut evtimer_event)>

< Handler function for this evtimer’s event type

§events: *mut evtimer_event

< Event queue

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: 28 bytes

Trait Implementations

Source§

impl Clone for evtimer_t

Source§

fn clone(&self) -> evtimer_t

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 evtimer_t

Source§

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

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

impl Default for evtimer_t

Source§

fn default() -> Self

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

impl Copy for evtimer_t