Lines Matching refs:scale

321 			const int32_t scale = accel_scaler[header->accel_fs];  in lsm6dsv16x_decode_fifo()  local
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()
352 const int32_t scale = gyro_scaler[header->gyro_fs]; in lsm6dsv16x_decode_fifo() local
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()
470 const int32_t scale = gyro_scaler[LSM6DSV16X_DT_FS_125DPS]; in lsm6dsv16x_decode_fifo() local
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()
564 const int32_t scale = accel_scaler[header->accel_fs]; in lsm6dsv16x_decode_sample() local
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()
587 const int32_t scale = gyro_scaler[header->gyro_fs]; in lsm6dsv16x_decode_sample() local
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()