Function riot_sys::ztimer_set

source ·
pub unsafe extern "C" fn ztimer_set(
    clock: *mut ztimer_clock_t,
    timer: *mut ztimer_t,
    val: u32
) -> u32
Expand description

@brief Set a timer on a clock

This will place @p timer in the timer targets queue of @p clock.

@note The memory pointed to by @p timer is not copied and must remain in scope until the callback is fired or the timer is removed via @ref ztimer_remove

@param[in] clock ztimer clock to operate on @param[in] timer timer entry to set @param[in] val timer target (relative ticks from now)

@return The value of @ref ztimer_now() that @p timer was set against (now() + @p val = absolute trigger time).