zephyr::raw

Type Alias k_timer_stop_t

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

@typedef k_timer_stop_t @brief Timer stop function type.

A timer’s stop function is executed if the timer is stopped prematurely. The function runs in the context of call that stops the timer. As k_timer_stop() can be invoked from an ISR, the stop function must be callable from interrupt context (isr-ok).

The stop 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_stop_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.