Lines Matching full:accel
37 struct inv_icm42600_fifo_sensor_data accel; member
44 ssize_t inv_icm42600_fifo_decode_packet(const void *packet, const void **accel, in inv_icm42600_fifo_decode_packet() argument
54 *accel = NULL; in inv_icm42600_fifo_decode_packet()
69 /* accel + gyro */ in inv_icm42600_fifo_decode_packet()
72 *accel = &pack2->accel; in inv_icm42600_fifo_decode_packet()
79 /* accel only */ in inv_icm42600_fifo_decode_packet()
81 *accel = &pack1->data; in inv_icm42600_fifo_decode_packet()
90 *accel = NULL; in inv_icm42600_fifo_decode_packet()
111 period_accel = inv_icm42600_odr_to_period(st->conf.accel.odr); in inv_icm42600_buffer_update_fifo_period()
188 * set for gyro and accel sensors. Since watermark is all about acceptable data
192 * 1) compute gyro and accel latencies and choose the smallest value.
193 * 2) adapt the choosen latency so that it is a multiple of both gyro and accel
195 * example with gyro @100Hz wm 4 and accel @100Hz with wm 6, choosing the
196 * value of 4 will not meet accel latency requirement because 6 is not a
217 wm_accel = inv_icm42600_wm_truncate(st->fifo.watermark.accel, packet_size); in inv_icm42600_buffer_update_watermark()
220 period_accel = inv_icm42600_odr_to_period(st->conf.accel.odr) / 1000UL; in inv_icm42600_buffer_update_watermark()
406 watermark = &st->fifo.watermark.accel; in inv_icm42600_buffer_postdisable()
461 const void *accel, *gyro, *timestamp; in inv_icm42600_buffer_fifo_read() local
469 st->fifo.nb.accel = 0; in inv_icm42600_buffer_fifo_read()
501 &accel, &gyro, &temp, ×tamp, &odr); in inv_icm42600_buffer_fifo_read()
506 if (accel != NULL && inv_icm42600_fifo_is_data_valid(accel)) in inv_icm42600_buffer_fifo_read()
507 st->fifo.nb.accel++; in inv_icm42600_buffer_fifo_read()
535 if (st->fifo.nb.accel > 0) { in inv_icm42600_buffer_fifo_parse()
538 st->timestamp.accel); in inv_icm42600_buffer_fifo_parse()
574 if (st->fifo.nb.accel > 0) { in inv_icm42600_buffer_hwfifo_flush()
576 inv_sensors_timestamp_interrupt(ts, st->fifo.nb.accel, accel_ts); in inv_icm42600_buffer_hwfifo_flush()