zephyr::raw

Type Alias k_timer_expiry_t

source
pub type k_timer_expiry_t = Option<unsafe extern "C" fn(_: *mut k_timer)>;
Expand description

@typedef k_timer_expiry_t @brief Timer expiry function type.

A timer’s expiry function is executed by the system clock interrupt handler each time the timer expires. The expiry function is optional, and is only invoked if the timer has been initialized with one.

@param timer Address of timer.

Aliased Type§

enum k_timer_expiry_t {
    None,
    Some(unsafe extern "C" fn(_: *mut k_timer)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut k_timer))

Some value of type T.