zephyr::raw

Function sys_timepoint_timeout

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

@brief Remaining time to given timepoint

Returns the timeout interval between current time and provided timepoint. If the timepoint is now in the past or if it was created with K_NO_WAIT then K_NO_WAIT is returned. If it was created with K_FOREVER then K_FOREVER is returned.

@param timepoint Timepoint for which a timeout value is wanted. @retval Corresponding timeout value.

@see sys_timepoint_calc()