Home
last modified time | relevance | path

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

/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dfeedback_nrf53.c52 #define FEEDBACK_P 1 macro
54 #define FEEDBACK_P 5 macro
219 clks_per_edge = sof_cc / (SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
227 if (framestart_cc > (SAMPLES_PER_SOF << FEEDBACK_P)/2) { in update_sof_offset()
228 sof_offset = framestart_cc - (SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
243 base_change = -(SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
246 base_change = SAMPLES_PER_SOF << FEEDBACK_P; in update_sof_offset()
253 if (abs_diff > (SAMPLES_PER_SOF << FEEDBACK_P)/2) { in update_sof_offset()
263 return -(offset / BIT(FEEDBACK_P)) * BIT(FEEDBACK_FS_SHIFT); in offset_to_correction()
276 int32_t PV = BIT(10 - FEEDBACK_P) * sof_offset; in pi_update()
[all …]