Lines Matching refs:out
319 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local
335 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
342 out->shift = accel_range[header->accel_fs]; in lsm6dsv16x_decode_fifo()
344 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo()
345 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo()
346 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo()
350 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local
366 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
373 out->shift = gyro_range[header->gyro_fs]; in lsm6dsv16x_decode_fifo()
375 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo()
376 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo()
377 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo()
382 struct sensor_q31_data *out = data_out; in lsm6dsv16x_decode_fifo() local
398 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
404 out->shift = temp_range; in lsm6dsv16x_decode_fifo()
406 out->readings[count].temperature = Q31_SHIFT_MICROVAL(t_uC, out->shift); in lsm6dsv16x_decode_fifo()
411 struct sensor_game_rotation_vector_data *out = data_out; in lsm6dsv16x_decode_fifo() local
427 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
457 out->shift = 0; in lsm6dsv16x_decode_fifo()
459 out->readings[count].x = Q31_SHIFT_VAL(x.f, out->shift); in lsm6dsv16x_decode_fifo()
460 out->readings[count].y = Q31_SHIFT_VAL(y.f, out->shift); in lsm6dsv16x_decode_fifo()
461 out->readings[count].z = Q31_SHIFT_VAL(z.f, out->shift); in lsm6dsv16x_decode_fifo()
462 out->readings[count].w = Q31_SHIFT_VAL(w, out->shift); in lsm6dsv16x_decode_fifo()
468 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local
484 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
491 out->shift = gyro_range[LSM6DSV16X_DT_FS_125DPS]; in lsm6dsv16x_decode_fifo()
493 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo()
494 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo()
495 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo()
500 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_fifo() local
515 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo()
522 out->shift = 12; in lsm6dsv16x_decode_fifo()
524 out->readings[count].x = Q31_SHIFT_VAL(x, out->shift); in lsm6dsv16x_decode_fifo()
525 out->readings[count].y = Q31_SHIFT_VAL(y, out->shift); in lsm6dsv16x_decode_fifo()
526 out->readings[count].z = Q31_SHIFT_VAL(z, out->shift); in lsm6dsv16x_decode_fifo()
570 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_sample() local
572 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
573 out->header.reading_count = 1; in lsm6dsv16x_decode_sample()
575 out->shift = accel_range[header->accel_fs]; 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()
593 struct sensor_three_axis_data *out = data_out; in lsm6dsv16x_decode_sample() local
595 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
596 out->header.reading_count = 1; in lsm6dsv16x_decode_sample()
598 out->shift = gyro_range[header->gyro_fs]; 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()
614 struct sensor_q31_data *out = data_out; in lsm6dsv16x_decode_sample() local
616 out->header.base_timestamp_ns = edata->header.timestamp; in lsm6dsv16x_decode_sample()
617 out->header.reading_count = 1; in lsm6dsv16x_decode_sample()
619 out->shift = temp_range; in lsm6dsv16x_decode_sample()
624 out->readings[0].temperature = Q31_SHIFT_MICROVAL(t_uC, out->shift); in lsm6dsv16x_decode_sample()