drivers/sensor/mpu6050/mpu6050.c
/* see "Accelerometer Measurements" section from register map description */
see "Accelerometer Measurements" section from register map description
see " Accelerometer Measurements " section from register map description
static void mpu6050_convert_accel(struct sensor_value *val, s16_t raw_val,
				  u16_t sensitivity_shift)
{
	s64_t conv_val;
	conv_val = ((s64_t)raw_val * SENSOR_G) >> sensitivity_shift;
	val->val1 = conv_val / 1000000;
	val->val2 = conv_val % 1000000;
}
static void mpu6050_convert_accel ( struct sensor_value * val , s16_t raw_val , u16_t sensitivity_shift ) { s64_t conv_val ; conv_val = ( ( s64_t ) raw_val * SENSOR_G ) >> sensitivity_shift ; val -> val1 = conv_val / 1000000 ; val -> val2 = conv_val % 1000000 ; }
see "Accelerometer Measurements" section from register map description
see " Accelerometer Measurements " section from register map description