Home
last modified time | relevance | path

Searched refs:rh (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd_trigger.c41 uint16_t set_cmd, clear_cmd, reg_val, temp, rh; in sht3xd_attr_set() local
55 rh = data->rh_low; in sht3xd_attr_set()
68 rh = data->rh_high; in sht3xd_attr_set()
73 reg_val = (rh & 0xFE00) | ((temp & 0xFF80) >> 7); in sht3xd_attr_set()
/Zephyr-latest/drivers/sensor/ens160/
Dens160.c53 uint64_t rh; in ens160_set_humidity() local
62 rh = sensor_value_to_micro(val); in ens160_set_humidity()
64 rh *= 512; in ens160_set_humidity()
65 sys_put_le16(DIV_ROUND_CLOSEST(rh, 1000000U), buf); in ens160_set_humidity()
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.c388 float rh; in iis2iclx_hum_convert() local
403 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in iis2iclx_hum_convert()
404 rh /= (ht->x1 - ht->x0); in iis2iclx_hum_convert()
407 val->val1 = rh; in iis2iclx_hum_convert()
408 val->val2 = rh * 1000000; in iis2iclx_hum_convert()
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.c564 float rh; in ism330dhcx_hum_convert() local
579 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in ism330dhcx_hum_convert()
580 rh /= (ht->x1 - ht->x0); in ism330dhcx_hum_convert()
583 val->val1 = rh; in ism330dhcx_hum_convert()
584 val->val2 = rh * 1000000; in ism330dhcx_hum_convert()
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c557 float rh; in lsm6dso_hum_convert() local
572 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in lsm6dso_hum_convert()
573 rh /= (ht->x1 - ht->x0); in lsm6dso_hum_convert()
576 val->val1 = rh; in lsm6dso_hum_convert()
577 val->val2 = rh * 1000000; in lsm6dso_hum_convert()
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c590 float rh; in lsm6dso16is_hum_convert() local
605 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in lsm6dso16is_hum_convert()
606 rh /= (ht->x1 - ht->x0); in lsm6dso16is_hum_convert()
609 val->val1 = rh; in lsm6dso16is_hum_convert()
610 val->val2 = rh * 1000000; in lsm6dso16is_hum_convert()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x.c794 float rh; in lsm6dsv16x_hum_convert() local
809 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in lsm6dsv16x_hum_convert()
810 rh /= (ht->x1 - ht->x0); in lsm6dsv16x_hum_convert()
813 val->val1 = rh; in lsm6dsv16x_hum_convert()
814 val->val2 = rh * 1000000; in lsm6dsv16x_hum_convert()