Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dsensor.c14 int64_t var1, var2, var3; in calculate_temperature() local
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()
18 var3 = ((var1 >> 1) * (var1 >> 1)) >> 12; in calculate_temperature()
32 int32_t var1; in calculate_pressure() local
38 var1 = (((int32_t)t_fine) >> 1) - 64000; in calculate_pressure()
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()
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 …]
/Zephyr-latest/drivers/sensor/bosch/bme680/
Dbme680.c69 int64_t var1, var2, var3; in bme680_calc_temp() local
71 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)data->par_t1 << 1); in bme680_calc_temp()
72 var2 = (var1 * (int32_t)data->par_t2) >> 11; in bme680_calc_temp()
73 var3 = ((var1 >> 1) * (var1 >> 1)) >> 12; in bme680_calc_temp()
81 int32_t var1, var2, var3, calc_press; in bme680_calc_press() local
83 var1 = (((int32_t)data->t_fine) >> 1) - 64000; in bme680_calc_press()
84 var2 = ((((var1 >> 2) * (var1 >> 2)) >> 11) * in bme680_calc_press()
86 var2 = var2 + ((var1 * (int32_t)data->par_p5) << 1); in bme680_calc_press()
88 var1 = (((((var1 >> 2) * (var1 >> 2)) >> 13) * in bme680_calc_press()
90 + (((int32_t)data->par_p2 * var1) >> 1); in bme680_calc_press()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280.c70 int32_t var1, var2; in bme280_compensate_temp() local
72 var1 = (((adc_temp >> 3) - ((int32_t)data->dig_t1 << 1)) * in bme280_compensate_temp()
78 data->t_fine = var1 + var2; in bme280_compensate_temp()
84 int64_t var1, var2, p; in bme280_compensate_press() local
86 var1 = ((int64_t)data->t_fine) - 128000; in bme280_compensate_press()
87 var2 = var1 * var1 * (int64_t)data->dig_p6; in bme280_compensate_press()
88 var2 = var2 + ((var1 * (int64_t)data->dig_p5) << 17); in bme280_compensate_press()
90 var1 = ((var1 * var1 * (int64_t)data->dig_p3) >> 8) + in bme280_compensate_press()
91 ((var1 * (int64_t)data->dig_p2) << 12); in bme280_compensate_press()
92 var1 = (((((int64_t)1) << 47) + var1)) * ((int64_t)data->dig_p1) >> 33; in bme280_compensate_press()
[all …]
/Zephyr-latest/doc/kernel/usermode/
Dmemory_domain.rst262 /* The global variable var1 will be inside the bounds of my_partition
265 K_APP_DMEM(my_partition) int var1 = 37;
/Zephyr-latest/cmake/modules/
Dextensions.cmake3175 # zephyr_get(<variable> [MERGE [REVERSE]] [SYSBUILD [LOCAL|GLOBAL]] [VAR <var1> ...])