Lines Matching refs:period
46 /* save chip parameters and compute min and max clock period */
51 /* current multiplier and period values after reset */
53 ts->period = chip->init_period;
55 /* use theoretical value for chip period */
61 uint32_t period, bool fifo)
67 ts->new_mult = period / ts->chip.clock_period;
73 static bool inv_validate_period(struct inv_sensors_timestamp *ts, uint32_t period, uint32_t mult)
77 /* check that period is acceptable */
80 if (period > period_min && period < period_max)
87 uint32_t mult, uint32_t period)
91 if (!inv_validate_period(ts, period, mult))
94 /* update chip internal period estimation */
95 new_chip_period = period / mult;
97 ts->period = ts->mult * ts->chip_period.val;
111 jitter = INV_SENSORS_TIMESTAMP_JITTER((int64_t)ts->period, ts->chip.jitter);
129 uint32_t period;
141 /* compute period: delta time divided by number of samples */
142 period = div_s64(delta, fifo_nb);
143 valid = inv_update_chip_period(ts, fifo_mult, period);
148 /* elapsed time: sensor period * sensor samples number */
149 interval = (int64_t)ts->period * (int64_t)sensor_nb;
170 /* update to new multiplier and update period */
173 ts->period = ts->mult * ts->chip_period.val;
178 * timestamp from the current interrupt using the new FIFO period, the
182 /* compute measured fifo period */