Lines Matching refs:raw_temp
33 uint16_t raw_temp; member
43 const uint16_t raw_temp = data->raw_temp; in sensor_ds3231_temp_from_raw() local
44 uint8_t frac = raw_temp & 3; in sensor_ds3231_temp_from_raw()
46 val->val1 = (int8_t)(raw_temp & GENMASK(8, 2)) >> 2; in sensor_ds3231_temp_from_raw()
50 int sensor_ds3231_read_temp(const struct device *dev, uint16_t *raw_temp) in sensor_ds3231_read_temp() argument
56 *raw_temp = ((uint16_t)((buf[0]) << 2) | (buf[1] >> 6)); in sensor_ds3231_read_temp()
70 int err = sensor_ds3231_read_temp(dev, &(data->raw_temp)); in sensor_ds3231_sample_fetch()
104 uint16_t raw_temp; member
133 uint16_t raw_temp; in sensor_ds3231_submit_sync() local
135 rc = sensor_ds3231_read_temp(dev, &raw_temp); in sensor_ds3231_submit_sync()
142 edata->raw_temp = raw_temp; in sensor_ds3231_submit_sync()
219 const uint16_t raw_temp = edata->raw_temp; in sensor_ds3231_decoder_decode() local
222 out->readings[0].temperature = (q31_t)raw_temp << (32 - 10); in sensor_ds3231_decoder_decode()