Lines Matching refs:shift
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()
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()
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()
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()
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()
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()
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()
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()
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()