Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
epoch_units.h File Reference

Conversion between epoch ticks and other units. More...

#include <zephyr/sys/time_units.h>

Go to the source code of this file.

Macros

#define k_sec_to_epoch_floor32(t)
 Convert seconds to epoch ticks.
 
#define k_sec_to_epoch_floor64(t)
 Convert seconds to epoch ticks.
 
#define k_sec_to_epoch_near32(t)
 Convert seconds to epoch ticks.
 
#define k_sec_to_epoch_near64(t)
 Convert seconds to epoch ticks.
 
#define k_sec_to_epoch_ceil32(t)
 Convert seconds to epoch ticks.
 
#define k_sec_to_epoch_ceil64(t)
 Convert seconds to epoch ticks.
 
#define k_ms_to_epoch_floor32(t)
 Convert milliseconds to epoch ticks.
 
#define k_ms_to_epoch_floor64(t)
 Convert milliseconds to epoch ticks.
 
#define k_ms_to_epoch_near32(t)
 Convert milliseconds to epoch ticks.
 
#define k_ms_to_epoch_near64(t)
 Convert milliseconds to epoch ticks.
 
#define k_ms_to_epoch_ceil32(t)
 Convert milliseconds to epoch ticks.
 
#define k_ms_to_epoch_ceil64(t)
 Convert milliseconds to epoch ticks.
 
#define k_us_to_epoch_floor32(t)
 Convert microseconds to epoch ticks.
 
#define k_us_to_epoch_floor64(t)
 Convert microseconds to epoch ticks.
 
#define k_us_to_epoch_near32(t)
 Convert microseconds to epoch ticks.
 
#define k_us_to_epoch_near64(t)
 Convert microseconds to epoch ticks.
 
#define k_us_to_epoch_ceil32(t)
 Convert microseconds to epoch ticks.
 
#define k_us_to_epoch_ceil64(t)
 Convert microseconds to epoch ticks.
 
#define k_ns_to_epoch_floor32(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ns_to_epoch_floor64(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ns_to_epoch_near32(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ns_to_epoch_near64(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ns_to_epoch_ceil32(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ns_to_epoch_ceil64(t)
 Convert nanoseconds to epoch ticks.
 
#define k_ticks_to_epoch_floor32(t)
 Convert ticks to epoch ticks.
 
#define k_ticks_to_epoch_floor64(t)
 Convert ticks to epoch ticks.
 
#define k_ticks_to_epoch_near32(t)
 Convert ticks to epoch ticks.
 
#define k_ticks_to_epoch_near64(t)
 Convert ticks to epoch ticks.
 
#define k_ticks_to_epoch_ceil32(t)
 Convert ticks to epoch ticks.
 
#define k_ticks_to_epoch_ceil64(t)
 Convert ticks to epoch ticks.
 
#define k_epoch_to_sec_floor32(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_sec_floor64(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_sec_near32(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_sec_near64(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_sec_ceil32(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_sec_ceil64(t)
 Convert epoch ticks to seconds.
 
#define k_epoch_to_ms_floor32(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_ms_floor64(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_ms_near32(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_ms_near64(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_ms_ceil32(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_ms_ceil64(t)
 Convert epoch ticks to milliseconds.
 
#define k_epoch_to_us_floor32(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_us_floor64(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_us_near32(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_us_near64(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_us_ceil32(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_us_ceil64(t)
 Convert epoch ticks to microseconds.
 
#define k_epoch_to_ns_floor32(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ns_floor64(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ns_near32(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ns_near64(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ns_ceil32(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ns_ceil64(t)
 Convert epoch ticks to nanoseconds.
 
#define k_epoch_to_ticks_floor32(t)
 Convert epoch ticks to ticks.
 
#define k_epoch_to_ticks_floor64(t)
 Convert epoch ticks to ticks.
 
#define k_epoch_to_ticks_near32(t)
 Convert epoch ticks to ticks.
 
#define k_epoch_to_ticks_near64(t)
 Convert epoch ticks to ticks.
 
#define k_epoch_to_ticks_ceil32(t)
 Convert epoch ticks to ticks.
 
#define k_epoch_to_ticks_ceil64(t)
 Convert epoch ticks to ticks.
 

Detailed Description

Conversion between epoch ticks and other units.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2

Equivalent functionality to zephyr/sys/time_units.h for epoch times. Generated with the script from that file.

Macro Definition Documentation

◆ k_epoch_to_ms_ceil32

#define k_epoch_to_ms_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ms, true, true, false)

Convert epoch ticks to milliseconds.

32 bits. Rounds up.

Converts time values in epoch ticks to milliseconds. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint32_t

◆ k_epoch_to_ms_ceil64

#define k_epoch_to_ms_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ms, true, true, false)

Convert epoch ticks to milliseconds.

64 bits. Rounds up.

Converts time values in epoch ticks to milliseconds. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint64_t

◆ k_epoch_to_ms_floor32

#define k_epoch_to_ms_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ms, true, false, false)

Convert epoch ticks to milliseconds.

32 bits. Truncates.

Converts time values in epoch ticks to milliseconds. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint32_t

◆ k_epoch_to_ms_floor64

#define k_epoch_to_ms_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ms, true, false, false)

Convert epoch ticks to milliseconds.

64 bits. Truncates.

Converts time values in epoch ticks to milliseconds. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint64_t

◆ k_epoch_to_ms_near32

#define k_epoch_to_ms_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ms, true, false, true)

Convert epoch ticks to milliseconds.

32 bits. Round nearest.

Converts time values in epoch ticks to milliseconds. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint32_t

◆ k_epoch_to_ms_near64

#define k_epoch_to_ms_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ms, true, false, true)

Convert epoch ticks to milliseconds.

64 bits. Round nearest.

Converts time values in epoch ticks to milliseconds. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in milliseconds. uint64_t

◆ k_epoch_to_ns_ceil32

#define k_epoch_to_ns_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ns, true, true, false)

Convert epoch ticks to nanoseconds.

32 bits. Rounds up.

Converts time values in epoch ticks to nanoseconds. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint32_t

◆ k_epoch_to_ns_ceil64

#define k_epoch_to_ns_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ns, true, true, false)

Convert epoch ticks to nanoseconds.

64 bits. Rounds up.

Converts time values in epoch ticks to nanoseconds. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint64_t

◆ k_epoch_to_ns_floor32

#define k_epoch_to_ns_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ns, true, false, false)

Convert epoch ticks to nanoseconds.

32 bits. Truncates.

Converts time values in epoch ticks to nanoseconds. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint32_t

◆ k_epoch_to_ns_floor64

#define k_epoch_to_ns_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ns, true, false, false)

Convert epoch ticks to nanoseconds.

64 bits. Truncates.

Converts time values in epoch ticks to nanoseconds. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint64_t

◆ k_epoch_to_ns_near32

#define k_epoch_to_ns_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ns, true, false, true)

Convert epoch ticks to nanoseconds.

32 bits. Round nearest.

Converts time values in epoch ticks to nanoseconds. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint32_t

◆ k_epoch_to_ns_near64

#define k_epoch_to_ns_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ns, true, false, true)

Convert epoch ticks to nanoseconds.

64 bits. Round nearest.

Converts time values in epoch ticks to nanoseconds. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in nanoseconds. uint64_t

◆ k_epoch_to_sec_ceil32

#define k_epoch_to_sec_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_sec, true, true, false)

Convert epoch ticks to seconds.

32 bits. Rounds up.

Converts time values in epoch ticks to seconds. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint32_t

◆ k_epoch_to_sec_ceil64

#define k_epoch_to_sec_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_sec, true, true, false)

Convert epoch ticks to seconds.

64 bits. Rounds up.

Converts time values in epoch ticks to seconds. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint64_t

◆ k_epoch_to_sec_floor32

#define k_epoch_to_sec_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_sec, true, false, false)

Convert epoch ticks to seconds.

32 bits. Truncates.

Converts time values in epoch ticks to seconds. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint32_t

◆ k_epoch_to_sec_floor64

#define k_epoch_to_sec_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_sec, true, false, false)

Convert epoch ticks to seconds.

64 bits. Truncates.

Converts time values in epoch ticks to seconds. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint64_t

◆ k_epoch_to_sec_near32

#define k_epoch_to_sec_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_sec, true, false, true)

Convert epoch ticks to seconds.

32 bits. Round nearest.

Converts time values in epoch ticks to seconds. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint32_t

◆ k_epoch_to_sec_near64

#define k_epoch_to_sec_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_sec, true, false, true)

Convert epoch ticks to seconds.

64 bits. Round nearest.

Converts time values in epoch ticks to seconds. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in seconds. uint64_t

◆ k_epoch_to_ticks_ceil32

#define k_epoch_to_ticks_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ticks, true, true, false)

Convert epoch ticks to ticks.

32 bits. Rounds up.

Converts time values in epoch ticks to ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint32_t

◆ k_epoch_to_ticks_ceil64

#define k_epoch_to_ticks_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ticks, true, true, false)

Convert epoch ticks to ticks.

64 bits. Rounds up.

Converts time values in epoch ticks to ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint64_t

◆ k_epoch_to_ticks_floor32

#define k_epoch_to_ticks_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ticks, true, false, false)

Convert epoch ticks to ticks.

32 bits. Truncates.

Converts time values in epoch ticks to ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint32_t

◆ k_epoch_to_ticks_floor64

#define k_epoch_to_ticks_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ticks, true, false, false)

Convert epoch ticks to ticks.

64 bits. Truncates.

Converts time values in epoch ticks to ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint64_t

◆ k_epoch_to_ticks_near32

#define k_epoch_to_ticks_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_ticks, true, false, true)

Convert epoch ticks to ticks.

32 bits. Round nearest.

Converts time values in epoch ticks to ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint32_t

◆ k_epoch_to_ticks_near64

#define k_epoch_to_ticks_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_ticks, true, false, true)

Convert epoch ticks to ticks.

64 bits. Round nearest.

Converts time values in epoch ticks to ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in ticks. uint64_t

◆ k_epoch_to_us_ceil32

#define k_epoch_to_us_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_us, true, true, false)

Convert epoch ticks to microseconds.

32 bits. Rounds up.

Converts time values in epoch ticks to microseconds. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint32_t

◆ k_epoch_to_us_ceil64

#define k_epoch_to_us_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_us, true, true, false)

Convert epoch ticks to microseconds.

64 bits. Rounds up.

Converts time values in epoch ticks to microseconds. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint64_t

◆ k_epoch_to_us_floor32

#define k_epoch_to_us_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_us, true, false, false)

Convert epoch ticks to microseconds.

32 bits. Truncates.

Converts time values in epoch ticks to microseconds. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint32_t

◆ k_epoch_to_us_floor64

#define k_epoch_to_us_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_us, true, false, false)

Convert epoch ticks to microseconds.

64 bits. Truncates.

Converts time values in epoch ticks to microseconds. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint64_t

◆ k_epoch_to_us_near32

#define k_epoch_to_us_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_epoch, Z_HZ_us, true, false, true)

Convert epoch ticks to microseconds.

32 bits. Round nearest.

Converts time values in epoch ticks to microseconds. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint32_t

◆ k_epoch_to_us_near64

#define k_epoch_to_us_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_epoch, Z_HZ_us, true, false, true)

Convert epoch ticks to microseconds.

64 bits. Round nearest.

Converts time values in epoch ticks to microseconds. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in epoch ticks. uint64_t
Returns
The converted time value in microseconds. uint64_t

◆ k_ms_to_epoch_ceil32

#define k_ms_to_epoch_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ms, Z_HZ_epoch, true, true, false)

Convert milliseconds to epoch ticks.

32 bits. Rounds up.

Converts time values in milliseconds to epoch ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ms_to_epoch_ceil64

#define k_ms_to_epoch_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ms, Z_HZ_epoch, true, true, false)

Convert milliseconds to epoch ticks.

64 bits. Rounds up.

Converts time values in milliseconds to epoch ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ms_to_epoch_floor32

#define k_ms_to_epoch_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ms, Z_HZ_epoch, true, false, false)

Convert milliseconds to epoch ticks.

32 bits. Truncates.

Converts time values in milliseconds to epoch ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ms_to_epoch_floor64

#define k_ms_to_epoch_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ms, Z_HZ_epoch, true, false, false)

Convert milliseconds to epoch ticks.

64 bits. Truncates.

Converts time values in milliseconds to epoch ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ms_to_epoch_near32

#define k_ms_to_epoch_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ms, Z_HZ_epoch, true, false, true)

Convert milliseconds to epoch ticks.

32 bits. Round nearest.

Converts time values in milliseconds to epoch ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ms_to_epoch_near64

#define k_ms_to_epoch_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ms, Z_HZ_epoch, true, false, true)

Convert milliseconds to epoch ticks.

64 bits. Round nearest.

Converts time values in milliseconds to epoch ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in milliseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ns_to_epoch_ceil32

#define k_ns_to_epoch_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ns, Z_HZ_epoch, true, true, false)

Convert nanoseconds to epoch ticks.

32 bits. Rounds up.

Converts time values in nanoseconds to epoch ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ns_to_epoch_ceil64

#define k_ns_to_epoch_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ns, Z_HZ_epoch, true, true, false)

Convert nanoseconds to epoch ticks.

64 bits. Rounds up.

Converts time values in nanoseconds to epoch ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ns_to_epoch_floor32

#define k_ns_to_epoch_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ns, Z_HZ_epoch, true, false, false)

Convert nanoseconds to epoch ticks.

32 bits. Truncates.

Converts time values in nanoseconds to epoch ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ns_to_epoch_floor64

#define k_ns_to_epoch_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ns, Z_HZ_epoch, true, false, false)

Convert nanoseconds to epoch ticks.

64 bits. Truncates.

Converts time values in nanoseconds to epoch ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ns_to_epoch_near32

#define k_ns_to_epoch_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ns, Z_HZ_epoch, true, false, true)

Convert nanoseconds to epoch ticks.

32 bits. Round nearest.

Converts time values in nanoseconds to epoch ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ns_to_epoch_near64

#define k_ns_to_epoch_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ns, Z_HZ_epoch, true, false, true)

Convert nanoseconds to epoch ticks.

64 bits. Round nearest.

Converts time values in nanoseconds to epoch ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in nanoseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_sec_to_epoch_ceil32

#define k_sec_to_epoch_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_sec, Z_HZ_epoch, true, true, false)

Convert seconds to epoch ticks.

32 bits. Rounds up.

Converts time values in seconds to epoch ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_sec_to_epoch_ceil64

#define k_sec_to_epoch_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_sec, Z_HZ_epoch, true, true, false)

Convert seconds to epoch ticks.

64 bits. Rounds up.

Converts time values in seconds to epoch ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_sec_to_epoch_floor32

#define k_sec_to_epoch_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_sec, Z_HZ_epoch, true, false, false)

Convert seconds to epoch ticks.

32 bits. Truncates.

Converts time values in seconds to epoch ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_sec_to_epoch_floor64

#define k_sec_to_epoch_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_sec, Z_HZ_epoch, true, false, false)

Convert seconds to epoch ticks.

64 bits. Truncates.

Converts time values in seconds to epoch ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_sec_to_epoch_near32

#define k_sec_to_epoch_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_sec, Z_HZ_epoch, true, false, true)

Convert seconds to epoch ticks.

32 bits. Round nearest.

Converts time values in seconds to epoch ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_sec_to_epoch_near64

#define k_sec_to_epoch_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_sec, Z_HZ_epoch, true, false, true)

Convert seconds to epoch ticks.

64 bits. Round nearest.

Converts time values in seconds to epoch ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in seconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ticks_to_epoch_ceil32

#define k_ticks_to_epoch_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_epoch, true, true, false)

Convert ticks to epoch ticks.

32 bits. Rounds up.

Converts time values in ticks to epoch ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ticks_to_epoch_ceil64

#define k_ticks_to_epoch_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_epoch, true, true, false)

Convert ticks to epoch ticks.

64 bits. Rounds up.

Converts time values in ticks to epoch ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ticks_to_epoch_floor32

#define k_ticks_to_epoch_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_epoch, true, false, false)

Convert ticks to epoch ticks.

32 bits. Truncates.

Converts time values in ticks to epoch ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ticks_to_epoch_floor64

#define k_ticks_to_epoch_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_epoch, true, false, false)

Convert ticks to epoch ticks.

64 bits. Truncates.

Converts time values in ticks to epoch ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_ticks_to_epoch_near32

#define k_ticks_to_epoch_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_ticks, Z_HZ_epoch, true, false, true)

Convert ticks to epoch ticks.

32 bits. Round nearest.

Converts time values in ticks to epoch ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_ticks_to_epoch_near64

#define k_ticks_to_epoch_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_epoch, true, false, true)

Convert ticks to epoch ticks.

64 bits. Round nearest.

Converts time values in ticks to epoch ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in ticks. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_us_to_epoch_ceil32

#define k_us_to_epoch_ceil32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_us, Z_HZ_epoch, true, true, false)

Convert microseconds to epoch ticks.

32 bits. Rounds up.

Converts time values in microseconds to epoch ticks. Computes result in 32 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_us_to_epoch_ceil64

#define k_us_to_epoch_ceil64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_us, Z_HZ_epoch, true, true, false)

Convert microseconds to epoch ticks.

64 bits. Rounds up.

Converts time values in microseconds to epoch ticks. Computes result in 64 bit precision. Rounds up to the next highest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_us_to_epoch_floor32

#define k_us_to_epoch_floor32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_us, Z_HZ_epoch, true, false, false)

Convert microseconds to epoch ticks.

32 bits. Truncates.

Converts time values in microseconds to epoch ticks. Computes result in 32 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_us_to_epoch_floor64

#define k_us_to_epoch_floor64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_us, Z_HZ_epoch, true, false, false)

Convert microseconds to epoch ticks.

64 bits. Truncates.

Converts time values in microseconds to epoch ticks. Computes result in 64 bit precision. Truncates to the next lowest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t

◆ k_us_to_epoch_near32

#define k_us_to_epoch_near32 ( t)
Value:
z_tmcvt_32(t, Z_HZ_us, Z_HZ_epoch, true, false, true)

Convert microseconds to epoch ticks.

32 bits. Round nearest.

Converts time values in microseconds to epoch ticks. Computes result in 32 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint32_t

◆ k_us_to_epoch_near64

#define k_us_to_epoch_near64 ( t)
Value:
z_tmcvt_64(t, Z_HZ_us, Z_HZ_epoch, true, false, true)

Convert microseconds to epoch ticks.

64 bits. Round nearest.

Converts time values in microseconds to epoch ticks. Computes result in 64 bit precision. Rounds to the nearest output unit.

Warning
Generated. Do not edit. See above.
Parameters
tSource time in microseconds. uint64_t
Returns
The converted time value in epoch ticks. uint64_t