Searched refs:conv_val (Results 1 – 7 of 7) sorted by relevance
23 int64_t conv_val; in mpu6050_convert_accel() local25 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu6050_convert_accel()26 val->val1 = conv_val / 1000000; in mpu6050_convert_accel()27 val->val2 = conv_val % 1000000; in mpu6050_convert_accel()34 int64_t conv_val; in mpu6050_convert_gyro() local36 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu6050_convert_gyro()38 val->val1 = conv_val / 1000000; in mpu6050_convert_gyro()39 val->val2 = conv_val % 1000000; in mpu6050_convert_gyro()
36 int32_t conv_val; in hts221_channel_get() local43 conv_val = (int32_t)(data->t1_degc_x8 - data->t0_degc_x8) * in hts221_channel_get()49 val->val1 = conv_val / 8; in hts221_channel_get()50 val->val2 = (conv_val % 8) * (1000000 / 8); in hts221_channel_get()52 conv_val = (int32_t)(data->h1_rh_x2 - data->h0_rh_x2) * in hts221_channel_get()58 val->val1 = conv_val / 2; in hts221_channel_get()59 val->val2 = (conv_val % 2) * 500000; in hts221_channel_get()
61 int64_t conv_val; in mpu9250_convert_accel() local63 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in mpu9250_convert_accel()64 val->val1 = conv_val / 1000000; in mpu9250_convert_accel()65 val->val2 = conv_val % 1000000; in mpu9250_convert_accel()72 int64_t conv_val; in mpu9250_convert_gyro() local74 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu9250_convert_gyro()76 val->val1 = conv_val / 1000000; in mpu9250_convert_gyro()77 val->val2 = conv_val % 1000000; in mpu9250_convert_gyro()
53 int32_t conv_val; in ak8975_convert() local55 conv_val = sample * AK8975_MICRO_GAUSS_PER_BIT * in ak8975_convert()57 val->val1 = conv_val / 1000000; in ak8975_convert()58 val->val2 = conv_val % 1000000; in ak8975_convert()
31 int64_t conv_val; in icm42605_convert_accel() local33 conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in icm42605_convert_accel()34 val->val1 = conv_val / 1000000; in icm42605_convert_accel()35 val->val2 = conv_val % 1000000; in icm42605_convert_accel()43 int64_t conv_val; in icm42605_convert_gyro() local45 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in icm42605_convert_gyro()47 val->val1 = conv_val / 1000000; in icm42605_convert_gyro()48 val->val2 = conv_val % 1000000; in icm42605_convert_gyro()
86 int64_t conv_val = sample * AKM09918C_MICRO_GAUSS_PER_BIT; in akm09918c_convert() local88 val->val1 = conv_val / 1000000; in akm09918c_convert()89 val->val2 = conv_val - (val->val1 * 1000000); in akm09918c_convert()
310 int64_t conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in icm42670_convert_accel() local312 val->val1 = conv_val / 1000000LL; in icm42670_convert_accel()313 val->val2 = conv_val % 1000000LL; in icm42670_convert_accel()320 int64_t conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / (sensitivity_x10 * 180LL); in icm42670_convert_gyro() local322 val->val1 = conv_val / 1000000LL; in icm42670_convert_gyro()323 val->val2 = conv_val % 1000000LL; in icm42670_convert_gyro()