Zephyr API 3.6.99
|
Immutable state for synchronizing two clocks. More...
#include <timeutil.h>
Data Fields | |
uint32_t | ref_Hz |
The nominal instance counter rate in Hz. | |
uint32_t | local_Hz |
The nominal local counter rate in Hz. | |
Immutable state for synchronizing two clocks.
Values required to convert durations between two time scales.
uint32_t timeutil_sync_config::local_Hz |
The nominal local counter rate in Hz.
This value is assumed to be inaccurate but reasonably stable. For a local clock driven by a crystal oscillator an error of 25 ppm is common; for an RC oscillator larger errors should be expected. The timeutil_sync infrastructure can calculate the skew between the local and reference clocks and apply it when converting between time scales.
The value must be positive.
uint32_t timeutil_sync_config::ref_Hz |
The nominal instance counter rate in Hz.
This value is assumed to be precise, but may drift depending on the reference clock source.
The value must be positive.