Home
last modified time | relevance | path

Searched refs:t_sample (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/drivers/sensor/renesas/hs300x/
Dhs300x.c26 int16_t t_sample; member
30 static int hs300x_read_sample(const struct device *dev, uint16_t *t_sample, uint16_t *rh_sample) in hs300x_read_sample() argument
48 *t_sample = sys_get_be16(&rx_buf[2]); in hs300x_read_sample()
51 *t_sample >>= 2; in hs300x_read_sample()
88 rc = hs300x_read_sample(dev, &data->t_sample, &data->rh_sample); in hs300x_sample_fetch()
131 hs300x_temp_convert(val, data->t_sample); in hs300x_channel_get()
/Zephyr-latest/drivers/sensor/renesas/hs400x/
Dhs400x.c28 int16_t t_sample; member
32 static int hs400x_read_sample(const struct device *dev, uint16_t *t_sample, uint16_t *rh_sample) in hs400x_read_sample() argument
45 *t_sample = sys_get_be16(&rx_buf[2]); in hs400x_read_sample()
87 rc = hs400x_read_sample(dev, &data->t_sample, &data->rh_sample); in hs400x_sample_fetch()
130 hs400x_temp_convert(val, data->t_sample); in hs400x_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd.c81 uint16_t t_sample, rh_sample; in sht3xd_sample_fetch() local
112 t_sample = sys_get_be16(&rx_buf[0]); in sht3xd_sample_fetch()
113 if (sht3xd_compute_crc(t_sample) != rx_buf[2]) { in sht3xd_sample_fetch()
124 data->t_sample = t_sample; in sht3xd_sample_fetch()
143 tmp = (uint64_t)data->t_sample * 175U; in sht3xd_channel_get()
Dsht3xd.h56 uint16_t t_sample; member
/Zephyr-latest/drivers/sensor/sensirion/sht4x/
Dsht4x.c41 uint16_t *t_sample, in sht4x_read_sample() argument
54 *t_sample = sys_get_be16(rx_buf); in sht4x_read_sample()
55 if (sht4x_compute_crc(*t_sample) != rx_buf[2]) { in sht4x_read_sample()
84 rc = sht4x_read_sample(dev, &data->t_sample, &data->rh_sample); in sht4x_fetch_with_heater()
114 rc = sht4x_read_sample(dev, &data->t_sample, &data->rh_sample); in sht4x_sample_fetch()
136 tmp = data->t_sample * 175; in sht4x_channel_get()
Dsht4x.h33 uint16_t t_sample; member
/Zephyr-latest/drivers/sensor/th02/
Dth02.c92 drv_data->t_sample = get_temp(&cfg->i2c); in th02_sample_fetch()
93 LOG_INF("temp: %u", drv_data->t_sample); in th02_sample_fetch()
111 val->val1 = drv_data->t_sample / 32U - 50; in th02_channel_get()
112 val->val2 = (drv_data->t_sample % 32) * (1000000 / 32); in th02_channel_get()
Dth02.h32 uint16_t t_sample; member
/Zephyr-latest/drivers/sensor/aosong/dht20/
Ddht20.c59 uint32_t t_sample; member
157 static int dht20_read_sample(const struct device *dev, uint32_t *t_sample, uint32_t *rh_sample) in dht20_read_sample() argument
189 *t_sample = sys_get_be24(&rx_buf[3]) & 0x0FFFFF; in dht20_read_sample()
243 rc = dht20_read_sample(dev, &data->t_sample, &data->rh_sample); in dht20_sample_fetch()
288 dht20_temp_convert(val, data->t_sample); in dht20_channel_get()
/Zephyr-latest/drivers/sensor/ti/ti_hdc/
Dti_hdc.h30 uint16_t t_sample; member
Dti_hdc.c66 drv_data->t_sample = (buf[0] << 8) + buf[1]; in ti_hdc_sample_fetch()
87 tmp = (uint64_t)drv_data->t_sample * 165U; in ti_hdc_channel_get()
/Zephyr-latest/drivers/sensor/ti/ti_hdc20xx/
Dti_hdc20xx.c55 uint16_t t_sample; member
100 data->t_sample = sys_le16_to_cpu(buf[0]); in ti_hdc20xx_sample_fetch()
118 tmp = data->t_sample * TI_HDC20XX_TEMP_SCALE + TI_HDC20XX_TEMP_OFFSET; in ti_hdc20xx_channel_get()
/Zephyr-latest/drivers/sensor/st/hts221/
Dhts221.h31 int16_t t_sample; member
Dhts221.c43 (data->t_sample - data->t0_out) / in hts221_channel_get()
85 data->t_sample = buf[2] | (buf[3] << 8); in hts221_sample_fetch()