Searched refs:adc_temp (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280.c | 68 static int32_t bme280_compensate_temp(struct bme280_data *data, int32_t adc_temp) in bme280_compensate_temp() argument 72 var1 = (((adc_temp >> 3) - ((int32_t)data->dig_t1 << 1)) * in bme280_compensate_temp() 74 var2 = (((((adc_temp >> 4) - ((int32_t)data->dig_t1)) * in bme280_compensate_temp() 75 ((adc_temp >> 4) - ((int32_t)data->dig_t1))) >> 12) * in bme280_compensate_temp() 156 int32_t adc_press, adc_temp, adc_humidity; in bme280_sample_fetch_helper() local 192 adc_temp = (buf[3] << 12) | (buf[4] << 4) | (buf[5] >> 4); in bme280_sample_fetch_helper() 194 reading->comp_temp = bme280_compensate_temp(dev_data, adc_temp); in bme280_sample_fetch_helper()
|
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/ |
D | sensor.c | 10 int32_t calculate_temperature(uint32_t adc_temp, int32_t *t_fine, in calculate_temperature() argument 16 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)cal_coeffs->par_t1 << 1); in calculate_temperature()
|
D | sensor.h | 146 int32_t calculate_temperature(uint32_t adc_temp, int32_t *t_fine,
|
/Zephyr-latest/drivers/sensor/bosch/bme680/ |
D | bme680.c | 67 static void bme680_calc_temp(struct bme680_data *data, uint32_t adc_temp) in bme680_calc_temp() argument 71 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)data->par_t1 << 1); in bme680_calc_temp() 222 uint32_t adc_temp, adc_press; in bme680_sample_fetch() local 258 adc_temp = sys_get_be24(data_regs.temperature) >> 4; in bme680_sample_fetch() 264 bme680_calc_temp(data, adc_temp); in bme680_sample_fetch()
|