Home
last modified time | relevance | path

Searched refs:rh_sample (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-3.7.0/drivers/sensor/hs300x/
Dhs300x.c27 uint16_t rh_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
47 *rh_sample = sys_get_be16(rx_buf); in hs300x_read_sample()
88 rc = hs300x_read_sample(dev, &data->t_sample, &data->rh_sample); in hs300x_sample_fetch()
133 hs300x_rh_convert(val, data->rh_sample); in hs300x_channel_get()
/Zephyr-Core-3.7.0/drivers/sensor/sensirion/sht3xd/
Dsht3xd.c81 uint16_t t_sample, rh_sample; in sht3xd_sample_fetch() local
118 rh_sample = sys_get_be16(&rx_buf[3]); in sht3xd_sample_fetch()
119 if (sht3xd_compute_crc(rh_sample) != rx_buf[5]) { in sht3xd_sample_fetch()
125 data->rh_sample = rh_sample; in sht3xd_sample_fetch()
148 uint32_t tmp2 = (uint32_t)data->rh_sample * 100U; in sht3xd_channel_get()
Dsht3xd.h57 uint16_t rh_sample; member
/Zephyr-Core-3.7.0/drivers/sensor/sensirion/sht4x/
Dsht4x.c42 uint16_t *rh_sample) in sht4x_read_sample() argument
60 *rh_sample = sys_get_be16(&rx_buf[3]); in sht4x_read_sample()
61 if (sht4x_compute_crc(*rh_sample) != rx_buf[5]) { 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()
142 tmp = data->rh_sample * 125U; in sht4x_channel_get()
Dsht4x.h34 uint16_t rh_sample; member
/Zephyr-Core-3.7.0/drivers/sensor/th02/
Dth02.c94 drv_data->rh_sample = get_humi(&cfg->i2c); in th02_sample_fetch()
95 LOG_INF("rh: %u", drv_data->rh_sample); in th02_sample_fetch()
115 val->val1 = drv_data->rh_sample / 16U - 24; in th02_channel_get()
116 val->val2 = (drv_data->rh_sample % 16) * (1000000 / 16); in th02_channel_get()
Dth02.h33 uint16_t rh_sample; member
/Zephyr-Core-3.7.0/drivers/sensor/aosong/dht20/
Ddht20.c60 uint32_t rh_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
187 *rh_sample = sys_get_be24(&rx_buf[1]) >> 4; in dht20_read_sample()
243 rc = dht20_read_sample(dev, &data->t_sample, &data->rh_sample); in dht20_sample_fetch()
290 dht20_rh_convert(val, data->rh_sample); in dht20_channel_get()
/Zephyr-Core-3.7.0/drivers/sensor/ti/ti_hdc/
Dti_hdc.h31 uint16_t rh_sample; member
Dti_hdc.c67 drv_data->rh_sample = (buf[2] << 8) + buf[3]; in ti_hdc_sample_fetch()
92 tmp = (uint64_t)drv_data->rh_sample * 100U; in ti_hdc_channel_get()
/Zephyr-Core-3.7.0/drivers/sensor/ti/ti_hdc20xx/
Dti_hdc20xx.c56 uint16_t rh_sample; member
101 data->rh_sample = sys_le16_to_cpu(buf[1]); in ti_hdc20xx_sample_fetch()
125 tmp = data->rh_sample * TI_HDC20XX_RH_SCALE; in ti_hdc20xx_channel_get()
/Zephyr-Core-3.7.0/drivers/sensor/st/hts221/
Dhts221.h30 int16_t rh_sample; member
Dhts221.c53 (data->rh_sample - data->h0_t0_out) / in hts221_channel_get()
85 data->rh_sample = sys_le16_to_cpu(buf[0] | (buf[1] << 8)); in hts221_sample_fetch()