riot_sys::bindgen

Function ztimer_set_timeout_flag

Source
pub unsafe extern "C" fn ztimer_set_timeout_flag(
    clock: *mut ztimer_clock_t,
    timer: *mut ztimer_t,
    timeout: u32,
)
Expand description

@brief Set timeout thread flag after @p timeout

This function will set THREAD_FLAG_TIMEOUT on the current thread after @p timeout usec have passed.

@param[in] clock ztimer clock to operate on @param[in] timer timer struct to use @param[in] timeout timeout in ztimer_clock’s ticks