Home
last modified time | relevance | path

Searched refs:conv_val (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/drivers/sensor/mpu6050/
Dmpu6050.c23 int64_t conv_val; in mpu6050_convert_accel() local
25 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() local
36 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()
/Zephyr-Core-3.5.0/drivers/sensor/hts221/
Dhts221.c36 int32_t conv_val; in hts221_channel_get() local
43 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()
/Zephyr-Core-3.5.0/drivers/sensor/mpu9250/
Dmpu9250.c61 int64_t conv_val; in mpu9250_convert_accel() local
63 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() local
74 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()
/Zephyr-Core-3.5.0/drivers/sensor/ak8975/
Dak8975.c53 int32_t conv_val; in ak8975_convert() local
55 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()
/Zephyr-Core-3.5.0/drivers/sensor/icm42605/
Dicm42605.c31 int64_t conv_val; in icm42605_convert_accel() local
33 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() local
45 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()
/Zephyr-Core-3.5.0/drivers/sensor/akm09918c/
Dakm09918c.c86 int64_t conv_val = sample * AKM09918C_MICRO_GAUSS_PER_BIT; in akm09918c_convert() local
88 val->val1 = conv_val / 1000000; in akm09918c_convert()
89 val->val2 = conv_val - (val->val1 * 1000000); in akm09918c_convert()
/Zephyr-Core-3.5.0/drivers/sensor/icm42670/
Dicm42670.c310 int64_t conv_val = ((int64_t)raw_val * SENSOR_G) >> sensitivity_shift; in icm42670_convert_accel() local
312 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() local
322 val->val1 = conv_val / 1000000LL; in icm42670_convert_gyro()
323 val->val2 = conv_val % 1000000LL; in icm42670_convert_gyro()