Lines Matching refs:int32_t
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()
74 var3 = ((var3) * ((int32_t)data->par_t3 << 4)) >> 14; in bme680_calc_temp()
81 int32_t var1, var2, var3, calc_press; in bme680_calc_press()
83 var1 = (((int32_t)data->t_fine) >> 1) - 64000; in bme680_calc_press()
85 (int32_t)data->par_p6) >> 2; in bme680_calc_press()
86 var2 = var2 + ((var1 * (int32_t)data->par_p5) << 1); in bme680_calc_press()
87 var2 = (var2 >> 2) + ((int32_t)data->par_p4 << 16); in bme680_calc_press()
89 ((int32_t)data->par_p3 << 5)) >> 3) in bme680_calc_press()
90 + (((int32_t)data->par_p2 * var1) >> 1); in bme680_calc_press()
92 var1 = ((32768 + var1) * (int32_t)data->par_p1) >> 15; in bme680_calc_press()
100 if (calc_press >= (int32_t)0x40000000) { in bme680_calc_press()
105 var1 = ((int32_t)data->par_p9 * in bme680_calc_press()
106 (int32_t)(((calc_press >> 3) in bme680_calc_press()
108 var2 = ((int32_t)(calc_press >> 2) * (int32_t)data->par_p8) >> 13; in bme680_calc_press()
109 var3 = ((int32_t)(calc_press >> 8) * (int32_t)(calc_press >> 8) in bme680_calc_press()
110 * (int32_t)(calc_press >> 8) in bme680_calc_press()
111 * (int32_t)data->par_p10) >> 17; in bme680_calc_press()
115 + ((int32_t)data->par_p7 << 7)) >> 4); in bme680_calc_press()
120 int32_t var1, var2_1, var2_2, var2, var3, var4, var5, var6; in bme680_calc_humidity()
121 int32_t temp_scaled, calc_hum; in bme680_calc_humidity()
123 temp_scaled = (((int32_t)data->t_fine * 5) + 128) >> 8; in bme680_calc_humidity()
124 var1 = (int32_t)(adc_humidity - ((int32_t)((int32_t)data->par_h1 * 16))) - in bme680_calc_humidity()
125 (((temp_scaled * (int32_t)data->par_h3) in bme680_calc_humidity()
126 / ((int32_t)100)) >> 1); in bme680_calc_humidity()
127 var2_1 = (int32_t)data->par_h2; in bme680_calc_humidity()
128 var2_2 = ((temp_scaled * (int32_t)data->par_h4) / (int32_t)100) in bme680_calc_humidity()
129 + (((temp_scaled * ((temp_scaled * (int32_t)data->par_h5) in bme680_calc_humidity()
130 / ((int32_t)100))) >> 6) / ((int32_t)100)) in bme680_calc_humidity()
131 + (int32_t)(1 << 14); in bme680_calc_humidity()
134 var4 = (int32_t)data->par_h6 << 7; in bme680_calc_humidity()
135 var4 = ((var4) + ((temp_scaled * (int32_t)data->par_h7) / in bme680_calc_humidity()
136 ((int32_t)100))) >> 4; in bme680_calc_humidity()
139 calc_hum = (((var3 + var6) >> 10) * ((int32_t)1000)) >> 12; in bme680_calc_humidity()
178 int32_t var1, var2, var3, var4, var5; in bme680_calc_res_heat()
179 int32_t heatr_res_x100; in bme680_calc_res_heat()
180 int32_t amb_temp = 25; /* Assume ambient temperature to be 25 deg C */ in bme680_calc_res_heat()