zephyr::raw

Function sys_timepoint_calc

source
pub unsafe extern "C" fn sys_timepoint_calc(
    timeout: k_timeout_t,
) -> k_timepoint_t
Expand description

@brief Calculate a timepoint value

Returns a timepoint corresponding to the expiration (relative to an unlocked “now”!) of a timeout object. When used correctly, this should be called once, synchronously with the user passing a new timeout value. It should not be used iteratively to adjust a timeout (see sys_timepoint_timeout() for that purpose).

@param timeout Timeout value relative to current time (may also be K_FOREVER or K_NO_WAIT). @retval Timepoint value corresponding to given timeout

@see sys_timepoint_timeout() @see sys_timepoint_expired()