Searched refs:rh (Results 1 – 7 of 7) sorted by relevance
41 uint16_t set_cmd, clear_cmd, reg_val, temp, rh; in sht3xd_attr_set() local55 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()
53 uint64_t rh; in ens160_set_humidity() local62 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()
388 float rh; in iis2iclx_hum_convert() local403 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()
564 float rh; in ism330dhcx_hum_convert() local579 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()
557 float rh; in lsm6dso_hum_convert() local572 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()
590 float rh; in lsm6dso16is_hum_convert() local605 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()
794 float rh; in lsm6dsv16x_hum_convert() local809 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()