Lines Matching refs:edata
171 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decoder_get_frame_count() local
182 buffer_end = buffer + LSM6DSV16X_FIFO_SIZE(edata->fifo_count); in lsm6dsv16x_decoder_get_frame_count()
258 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decode_fifo() local
260 const struct lsm6dsv16x_decoder_header *header = &edata->header; in lsm6dsv16x_decode_fifo()
279 buffer_end = buffer + LSM6DSV16X_FIFO_SIZE(edata->fifo_count); in lsm6dsv16x_decode_fifo()
288 edata->header.timestamp - in lsm6dsv16x_decode_fifo()
289 (tot_chan_fifo_words - 1) * accel_period_ns[edata->accel_batch_odr]; in lsm6dsv16x_decode_fifo()
292 edata->header.timestamp - in lsm6dsv16x_decode_fifo()
293 (tot_chan_fifo_words - 1) * gyro_period_ns[edata->gyro_batch_odr]; in lsm6dsv16x_decode_fifo()
297 edata->header.timestamp - in lsm6dsv16x_decode_fifo()
298 (tot_chan_fifo_words - 1) * temp_period_ns[edata->temp_batch_odr]; in lsm6dsv16x_decode_fifo()
304 edata->header.timestamp - in lsm6dsv16x_decode_fifo()
305 (tot_chan_fifo_words - 1) * sflp_period_ns[edata->sflp_batch_odr]; in lsm6dsv16x_decode_fifo()
336 (xl_count - 1) * accel_period_ns[edata->accel_batch_odr]; in lsm6dsv16x_decode_fifo()
367 (gy_count - 1) * gyro_period_ns[edata->gyro_batch_odr]; in lsm6dsv16x_decode_fifo()
399 (temp_count - 1) * temp_period_ns[edata->temp_batch_odr]; in lsm6dsv16x_decode_fifo()
428 (game_rot_count - 1) * sflp_period_ns[edata->sflp_batch_odr]; in lsm6dsv16x_decode_fifo()
485 (gbias_count - 1) * sflp_period_ns[edata->sflp_batch_odr]; in lsm6dsv16x_decode_fifo()
516 (gravity_count - 1) * sflp_period_ns[edata->sflp_batch_odr]; in lsm6dsv16x_decode_fifo()
549 const struct lsm6dsv16x_rtio_data *edata = (const struct lsm6dsv16x_rtio_data *)buffer; in lsm6dsv16x_decode_sample() local
550 const struct lsm6dsv16x_decoder_header *header = &edata->header; in lsm6dsv16x_decode_sample()
566 if (edata->has_accel == 0) { in lsm6dsv16x_decode_sample()
572 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
577 out->readings[0].x = Q31_SHIFT_MICROVAL(scale * edata->acc[0], out->shift); in lsm6dsv16x_decode_sample()
578 out->readings[0].y = Q31_SHIFT_MICROVAL(scale * edata->acc[1], out->shift); in lsm6dsv16x_decode_sample()
579 out->readings[0].z = Q31_SHIFT_MICROVAL(scale * edata->acc[2], out->shift); in lsm6dsv16x_decode_sample()
589 if (edata->has_gyro == 0) { in lsm6dsv16x_decode_sample()
595 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
600 out->readings[0].x = Q31_SHIFT_MICROVAL(scale * edata->gyro[0], out->shift); in lsm6dsv16x_decode_sample()
601 out->readings[0].y = Q31_SHIFT_MICROVAL(scale * edata->gyro[1], out->shift); in lsm6dsv16x_decode_sample()
602 out->readings[0].z = Q31_SHIFT_MICROVAL(scale * edata->gyro[2], out->shift); in lsm6dsv16x_decode_sample()
610 if (edata->has_temp == 0) { in lsm6dsv16x_decode_sample()
616 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
622 t_uC = SENSOR_TEMP_UCELSIUS(edata->temp); in lsm6dsv16x_decode_sample()