riot_sys::bindgen

Function event_timeout_set

Source
pub unsafe extern "C" fn event_timeout_set(
    event_timeout: *mut event_timeout_t,
    timeout: u32,
)
Expand description

@brief Set a timeout

This will make the event as configured in @p event_timeout be triggered after @p timeout microseconds (if using @ref xtimer) or the @ref ztimer_clock_t ticks.

@note: the used event_timeout struct must stay valid until after the timeout event has been processed!

@param[in] event_timeout event_timout context object to use @param[in] timeout timeout in microseconds or the ztimer_clock_t ticks units