Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dsensor.c35 int32_t pressure_comp; in calculate_pressure() local
46 pressure_comp = 1048576 - pres_adc; in calculate_pressure()
47 pressure_comp = (int32_t)((pressure_comp - (var2 >> 12)) * ((uint32_t)3125)); in calculate_pressure()
48 if (pressure_comp >= pres_ovf_check) { in calculate_pressure()
49 pressure_comp = ((pressure_comp / var1) << 1); in calculate_pressure()
51 pressure_comp = ((pressure_comp << 1) / var1); in calculate_pressure()
55 (int32_t)(((pressure_comp >> 3) * (pressure_comp >> 3)) >> 13)) >> in calculate_pressure()
57 var2 = ((int32_t)(pressure_comp >> 2) * (int32_t)cal_coeffs->par_p8) >> 13; in calculate_pressure()
58 var3 = ((int32_t)(pressure_comp >> 8) * (int32_t)(pressure_comp >> 8) * in calculate_pressure()
59 (int32_t)(pressure_comp >> 8) * (int32_t)cal_coeffs->par_p10) >> in calculate_pressure()
[all …]