Searched refs:ref_Hz (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.5.0/samples/boards/nrf/clock_skew/src/ |
D | main.c | 34 return z_tmcvt(ref, sync_config.ref_Hz, USEC_PER_SEC, false, in ref_to_us() 224 sync_config.ref_Hz = counter_get_frequency(timer0); in main() 225 if (sync_config.ref_Hz == 0) { in main() 248 timer0->name, sync_config.ref_Hz, sync_config.local_Hz); in main() 250 (uint32_t)(BIT64(32) / sync_config.ref_Hz)); in main()
|
/Zephyr-Core-3.5.0/tests/unit/timeutil/ |
D | test_sync.c | 14 .ref_Hz = USEC_PER_SEC, 19 .ref_Hz = NSEC_PER_SEC, 26 return (uint64_t)factor * (uint64_t)cfg->ref_Hz; in scale_ref() 160 .ref = cfg1.ref_Hz, in test_estimate_skew() 163 .ref = si0.ref + cfg1.ref_Hz, in test_estimate_skew() 282 zassert_equal(ref, ss.base.ref + cfg->ref_Hz, in tref_from_local() 374 .ref_Hz = 1000, in test_large_linearity()
|
/Zephyr-Core-3.5.0/lib/os/ |
D | timeutil.c | 124 rv = ref_delta * cfg->local_Hz / local_delta / cfg->ref_Hz; in timeutil_sync_estimate_skew() 144 int64_t ref_delta = local_delta * cfg->ref_Hz / cfg->local_Hz; in timeutil_sync_ref_from_local() 169 int64_t local_delta = (ref_delta * cfg->local_Hz) / cfg->ref_Hz; in timeutil_sync_local_from_ref()
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | timeutil.h | 91 uint32_t ref_Hz; member
|