Home
last modified time | relevance | path

Searched refs:temp_frac (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/ams/ens210/
Dens210.c165 int32_t temp_frac; in ens210_channel_get() local
171 temp_frac = sys_le16_to_cpu(drv_data->temp.val) * (1000000 / 64); in ens210_channel_get()
172 temp_frac -= 273150000; in ens210_channel_get()
174 val->val1 = temp_frac / 1000000; in ens210_channel_get()
175 val->val2 = temp_frac % 1000000; in ens210_channel_get()
/Zephyr-latest/drivers/sensor/silabs/si7006/
Dsi7006.c134 int32_t temp_frac = temp_23 & BIT_MASK(23); in si7006_channel_get() local
139 temp_frac -= BIT(23); in si7006_channel_get()
143 val->val2 = (temp_frac * 15625ULL) >> 17; in si7006_channel_get()