riot_sys::bindgen

Function ztimer_set_msg

Source
pub unsafe extern "C" fn ztimer_set_msg(
    clock: *mut ztimer_clock_t,
    timer: *mut ztimer_t,
    offset: u32,
    msg: *mut msg_t,
    target_pid: kernel_pid_t,
)
Expand description

@brief Post a message after a delay

This function sets a timer that will send a message @p offset ticks from now.

@note The memory pointed to by @p timer and @p msg will not be copied, i.e. *timer and *msg needs to remain valid until the timer has triggered.

@param[in] clock ztimer clock to operate on @param[in] timer ztimer timer struct to use @param[in] offset ticks from now @param[in] msg pointer to msg that will be sent @param[in] target_pid pid the message will be sent to