Home
last modified time | relevance | path

Searched refs:skew (Results 1 – 11 of 11) sorted by relevance

/Zephyr-Core-2.7.6/tests/unit/timeutil/
Dtest_sync.c52 zassert_equal(ss.skew, 0, in test_state_update()
63 zassert_equal(ss.skew, 1.0, in test_state_update()
105 float skew = 0.99; in test_state_set_skew() local
110 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
116 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
122 zassert_equal(ss.skew, 1.0, in test_state_set_skew()
125 rv = timeutil_sync_state_set_skew(&ss, skew, NULL); in test_state_set_skew()
128 zassert_equal(ss.skew, skew, in test_state_set_skew()
135 skew = 1.01; in test_state_set_skew()
139 rv = timeutil_sync_state_set_skew(&ss, skew, &si); in test_state_set_skew()
[all …]
/Zephyr-Core-2.7.6/tests/bluetooth/ctrl_sw_privacy_unit/src/
Dmain.c38 void helper_privacy_add(int skew) in helper_privacy_add() argument
51 ex_pos = (1 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; in helper_privacy_add()
56 ex_pos = (2 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; in helper_privacy_add()
61 ex_pos = (3 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; in helper_privacy_add()
67 ex_pos = (4 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; in helper_privacy_add()
73 ex_pos = (1 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; in helper_privacy_add()
97 for (uint8_t skew = 0; skew < CONFIG_BT_CTLR_RPA_CACHE_SIZE; skew++) { in test_privacy_add_stress() local
98 for (uint8_t i = 0; i < skew; i++) { in test_privacy_add_stress()
104 helper_privacy_add(skew); in test_privacy_add_stress()
/Zephyr-Core-2.7.6/lib/os/
Dtimeutil.c85 tsp->skew = 1.0f; in timeutil_sync_state_update()
96 int timeutil_sync_state_set_skew(struct timeutil_sync_state *tsp, float skew, in timeutil_sync_state_set_skew() argument
101 if (skew > 0) { in timeutil_sync_state_set_skew()
102 tsp->skew = skew; in timeutil_sync_state_set_skew()
134 if ((tsp->skew > 0) && (tsp->base.ref > 0) && (refp != NULL)) { in timeutil_sync_ref_from_local()
140 if (tsp->skew != 1.0f) { in timeutil_sync_ref_from_local()
141 local_delta *= (double)tsp->skew; in timeutil_sync_ref_from_local()
150 rv = (int)(tsp->skew != 1.0f); in timeutil_sync_ref_from_local()
162 if ((tsp->skew > 0) && (tsp->base.ref > 0) && (localp != NULL)) { in timeutil_sync_local_from_ref()
170 if (tsp->skew != 1.0f) { in timeutil_sync_local_from_ref()
[all …]
/Zephyr-Core-2.7.6/include/sys/
Dtimeutil.h166 float skew; member
213 int timeutil_sync_state_set_skew(struct timeutil_sync_state *tsp, float skew,
298 int32_t timeutil_sync_skew_to_ppb(float skew);
/Zephyr-Core-2.7.6/samples/boards/nrf/clock_skew/src/
Dmain.c161 float skew = timeutil_sync_estimate_skew(&sync_state); in sync_work_handler() local
171 (void)timeutil_sync_state_set_skew(&st2, skew, NULL); in sync_work_handler()
189 printf("Skew %f ; err %d ppb\n", skew, in sync_work_handler()
190 timeutil_sync_skew_to_ppb(skew)); in sync_work_handler()
/Zephyr-Core-2.7.6/include/audio/
Ddmic.h232 static inline uint32_t dmic_build_clk_skew_map(uint8_t pdm, uint8_t skew) in dmic_build_clk_skew_map() argument
234 return ((skew & BIT_MASK(4)) << ((pdm & BIT_MASK(3)) * 4U)); in dmic_build_clk_skew_map()
/Zephyr-Core-2.7.6/samples/boards/nrf/clock_skew/
DREADME.rst1 .. _nrf-clock-skew-sample:
10 skew between HFCLK (used for the CPU) and LFCLK (used for system time).
11 It also shows how to use this skew to correct durations measured in the
/Zephyr-Core-2.7.6/drivers/audio/
Dintel_dmic.c726 uint8_t skew; in configure_registers() local
849 skew = dmic_parse_clk_skew_map(config->io.pdm_clk_skew, i); in configure_registers()
851 MIC_CONTROL_PDM_SKEW(skew) | in configure_registers()
/Zephyr-Core-2.7.6/doc/reference/misc/
Dtimeutil.rst99 recently received second observation, and a skew that can adjust for
103 to another taking into account skew that can be estimated from the two
/Zephyr-Core-2.7.6/doc/reference/kernel/timing/
Dclocks.rst164 be correct over time and subject to minimal skew vs. other counters
176 fractional tick gets "reset" incorrectly and causes clock skew.
/Zephyr-Core-2.7.6/drivers/timer/
DKconfig370 bool "Timer allowed to skew uptime clock during idle"