Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dsensor.c11 struct calibration_coeffs *cal_coeffs) in calculate_temperature() argument
16 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)cal_coeffs->par_t1 << 1); in calculate_temperature()
17 var2 = (var1 * (int32_t)cal_coeffs->par_t2) >> 11; in calculate_temperature()
19 var3 = ((var3) * ((int32_t)cal_coeffs->par_t3 << 4)) >> 14; in calculate_temperature()
30 struct calibration_coeffs *cal_coeffs) in calculate_pressure() argument
39 var2 = ((((var1 >> 2) * (var1 >> 2)) >> 11) * (int32_t)cal_coeffs->par_p6) >> 2; in calculate_pressure()
40 var2 = var2 + ((var1 * (int32_t)cal_coeffs->par_p5) << 1); in calculate_pressure()
41 var2 = (var2 >> 2) + ((int32_t)cal_coeffs->par_p4 << 16); in calculate_pressure()
42 var1 = (((((var1 >> 2) * (var1 >> 2)) >> 13) * ((int32_t)cal_coeffs->par_p3 << 5)) >> 3) + in calculate_pressure()
43 (((int32_t)cal_coeffs->par_p2 * var1) >> 1); in calculate_pressure()
[all …]
Dsensor.h147 struct calibration_coeffs *cal_coeffs);
154 struct calibration_coeffs *cal_coeffs);
161 struct calibration_coeffs *cal_coeffs);
Dmain.c17 static struct calibration_coeffs cal_coeffs; variable
272 read_calibration_coeffs(&cal_coeffs); in ZTEST()
284 calculate_temperature(read_adc_temperature(), &t_fine, &cal_coeffs); in ZTEST()
285 pressure = calculate_pressure(read_adc_pressure(), t_fine, &cal_coeffs); in ZTEST()
286 humidity = calculate_humidity(read_adc_humidity(), t_fine, &cal_coeffs); in ZTEST()