Zephyr API 3.6.99
Loading...
Searching...
No Matches
time_units.h File Reference
#include <zephyr/toolchain.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Macros

#define SYS_FOREVER_MS   (-1)
 System-wide macro to denote "forever" in milliseconds.
 
#define SYS_FOREVER_US   (-1)
 System-wide macro to denote "forever" in microseconds.
 
#define SYS_TIMEOUT_MS(ms)
 System-wide macro to convert milliseconds to kernel timeouts.
 
#define TIME_CONSTEXPR
 
#define sys_clock_hw_cycles_per_sec()
 Get the system timer frequency.
 
#define k_sec_to_cyc_floor32(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_cyc_floor64(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_cyc_near32(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_cyc_near64(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_cyc_ceil32(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_cyc_ceil64(t)
 Convert seconds to hardware cycles.
 
#define k_sec_to_ticks_floor32(t)
 Convert seconds to ticks.
 
#define k_sec_to_ticks_floor64(t)
 Convert seconds to ticks.
 
#define k_sec_to_ticks_near32(t)
 Convert seconds to ticks.
 
#define k_sec_to_ticks_near64(t)
 Convert seconds to ticks.
 
#define k_sec_to_ticks_ceil32(t)
 Convert seconds to ticks.
 
#define k_sec_to_ticks_ceil64(t)
 Convert seconds to ticks.
 
#define k_ms_to_cyc_floor32(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_cyc_floor64(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_cyc_near32(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_cyc_near64(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_cyc_ceil32(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_cyc_ceil64(t)
 Convert milliseconds to hardware cycles.
 
#define k_ms_to_ticks_floor32(t)
 Convert milliseconds to ticks.
 
#define k_ms_to_ticks_floor64(t)
 Convert milliseconds to ticks.
 
#define k_ms_to_ticks_near32(t)
 Convert milliseconds to ticks.
 
#define k_ms_to_ticks_near64(t)
 Convert milliseconds to ticks.
 
#define k_ms_to_ticks_ceil32(t)
 Convert milliseconds to ticks.
 
#define k_ms_to_ticks_ceil64(t)
 Convert milliseconds to ticks.
 
#define k_us_to_cyc_floor32(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_cyc_floor64(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_cyc_near32(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_cyc_near64(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_cyc_ceil32(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_cyc_ceil64(t)
 Convert microseconds to hardware cycles.
 
#define k_us_to_ticks_floor32(t)
 Convert microseconds to ticks.
 
#define k_us_to_ticks_floor64(t)
 Convert microseconds to ticks.
 
#define k_us_to_ticks_near32(t)
 Convert microseconds to ticks.
 
#define k_us_to_ticks_near64(t)
 Convert microseconds to ticks.
 
#define k_us_to_ticks_ceil32(t)
 Convert microseconds to ticks.
 
#define k_us_to_ticks_ceil64(t)
 Convert microseconds to ticks.
 
#define k_ns_to_cyc_floor32(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_cyc_floor64(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_cyc_near32(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_cyc_near64(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_cyc_ceil32(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_cyc_ceil64(t)
 Convert nanoseconds to hardware cycles.
 
#define k_ns_to_ticks_floor32(t)
 Convert nanoseconds to ticks.
 
#define k_ns_to_ticks_floor64(t)
 Convert nanoseconds to ticks.
 
#define k_ns_to_ticks_near32(t)
 Convert nanoseconds to ticks.
 
#define k_ns_to_ticks_near64(t)
 Convert nanoseconds to ticks.
 
#define k_ns_to_ticks_ceil32(t)
 Convert nanoseconds to ticks.
 
#define k_ns_to_ticks_ceil64(t)
 Convert nanoseconds to ticks.
 
#define k_cyc_to_sec_floor32(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_sec_floor64(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_sec_near32(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_sec_near64(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_sec_ceil32(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_sec_ceil64(t)
 Convert hardware cycles to seconds.
 
#define k_cyc_to_ms_floor32(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_ms_floor64(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_ms_near32(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_ms_near64(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_ms_ceil32(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_ms_ceil64(t)
 Convert hardware cycles to milliseconds.
 
#define k_cyc_to_us_floor32(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_us_floor64(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_us_near32(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_us_near64(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_us_ceil32(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_us_ceil64(t)
 Convert hardware cycles to microseconds.
 
#define k_cyc_to_ns_floor32(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ns_floor64(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ns_near32(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ns_near64(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ns_ceil32(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ns_ceil64(t)
 Convert hardware cycles to nanoseconds.
 
#define k_cyc_to_ticks_floor32(t)
 Convert hardware cycles to ticks.
 
#define k_cyc_to_ticks_floor64(t)
 Convert hardware cycles to ticks.
 
#define k_cyc_to_ticks_near32(t)
 Convert hardware cycles to ticks.
 
#define k_cyc_to_ticks_near64(t)
 Convert hardware cycles to ticks.
 
#define k_cyc_to_ticks_ceil32(t)
 Convert hardware cycles to ticks.
 
#define k_cyc_to_ticks_ceil64(t)
 Convert hardware cycles to ticks.
 
#define k_ticks_to_sec_floor32(t)
 Convert ticks to seconds.
 
#define k_ticks_to_sec_floor64(t)
 Convert ticks to seconds.
 
#define k_ticks_to_sec_near32(t)
 Convert ticks to seconds.
 
#define k_ticks_to_sec_near64(t)
 Convert ticks to seconds.
 
#define k_ticks_to_sec_ceil32(t)
 Convert ticks to seconds.
 
#define k_ticks_to_sec_ceil64(t)
 Convert ticks to seconds.
 
#define k_ticks_to_ms_floor32(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_ms_floor64(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_ms_near32(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_ms_near64(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_ms_ceil32(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_ms_ceil64(t)
 Convert ticks to milliseconds.
 
#define k_ticks_to_us_floor32(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_us_floor64(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_us_near32(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_us_near64(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_us_ceil32(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_us_ceil64(t)
 Convert ticks to microseconds.
 
#define k_ticks_to_ns_floor32(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_ns_floor64(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_ns_near32(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_ns_near64(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_ns_ceil32(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_ns_ceil64(t)
 Convert ticks to nanoseconds.
 
#define k_ticks_to_cyc_floor32(t)
 Convert ticks to hardware cycles.
 
#define k_ticks_to_cyc_floor64(t)
 Convert ticks to hardware cycles.
 
#define k_ticks_to_cyc_near32(t)
 Convert ticks to hardware cycles.
 
#define k_ticks_to_cyc_near64(t)
 Convert ticks to hardware cycles.
 
#define k_ticks_to_cyc_ceil32(t)
 Convert ticks to hardware cycles.
 
#define k_ticks_to_cyc_ceil64(t)
 Convert ticks to hardware cycles.