Lines Matching refs:reading
152 enum sensor_channel chan, struct bme280_reading *reading) in bme280_sample_fetch_helper() argument
194 reading->comp_temp = bme280_compensate_temp(dev_data, adc_temp); in bme280_sample_fetch_helper()
195 reading->comp_press = bme280_compensate_press(dev_data, adc_press); in bme280_sample_fetch_helper()
199 reading->comp_humidity = bme280_compensate_humidity(dev_data, adc_humidity); in bme280_sample_fetch_helper()
209 return bme280_sample_fetch_helper(dev, chan, &data->reading); in bme280_sample_fetch()
224 val->val1 = data->reading.comp_temp / 100; in bme280_channel_get()
225 val->val2 = data->reading.comp_temp % 100 * 10000; in bme280_channel_get()
233 val->val1 = (data->reading.comp_press >> 8) / 1000U; in bme280_channel_get()
234 val->val2 = (data->reading.comp_press >> 8) % 1000 * 1000U + in bme280_channel_get()
235 (((data->reading.comp_press & 0xff) * 1000U) >> 8); in bme280_channel_get()
247 val->val1 = (data->reading.comp_humidity >> 10); in bme280_channel_get()
248 val->val2 = (((data->reading.comp_humidity & 0x3ff) * 1000U * 1000U) >> 10); in bme280_channel_get()