Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/renesas/hs300x/
Dhs300x.c99 int32_t micro_c; in hs300x_temp_convert() local
105 micro_c = (((int64_t)raw * 165000000) / 16383) - 40000000; in hs300x_temp_convert()
107 val->val1 = micro_c / 1000000; in hs300x_temp_convert()
108 val->val2 = micro_c % 1000000; in hs300x_temp_convert()
/Zephyr-latest/drivers/sensor/renesas/hs400x/
Dhs400x.c98 int32_t micro_c; in hs400x_temp_convert() local
104 micro_c = (((int64_t)raw * 165000000) / 16383) - 40000000; in hs400x_temp_convert()
106 val->val1 = micro_c / 1000000; in hs400x_temp_convert()
107 val->val2 = micro_c % 1000000; in hs400x_temp_convert()
/Zephyr-latest/drivers/sensor/aosong/dht20/
Ddht20.c254 int32_t micro_c; in dht20_temp_convert() local
261 micro_c = ((int64_t)raw * 1000000 * 200) / BIT(20) - 50 * 1000000; in dht20_temp_convert()
263 val->val1 = micro_c / 1000000; in dht20_temp_convert()
264 val->val2 = micro_c % 1000000; in dht20_temp_convert()
/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.c269 int64_t micro_c; in lis2de12_temp_channel_get() local
274 micro_c = ((int64_t)data->temp_sample * 1000000) / 256; in lis2de12_temp_channel_get()
276 val->val1 = micro_c / 1000000 + 25; in lis2de12_temp_channel_get()
277 val->val2 = micro_c % 1000000; in lis2de12_temp_channel_get()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700.c366 int32_t micro_c; in fxos8700_temp_convert() local
371 micro_c = raw * 960 * 1000; in fxos8700_temp_convert()
373 val->val1 = micro_c / 1000000; in fxos8700_temp_convert()
374 val->val2 = micro_c % 1000000; in fxos8700_temp_convert()
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c520 int32_t micro_c; in lsm6dso16is_gyro_channel_get_temp() local
525 micro_c = (data->temp_sample * 1000000) / 256; in lsm6dso16is_gyro_channel_get_temp()
527 val->val1 = micro_c / 1000000 + 25; in lsm6dso16is_gyro_channel_get_temp()
528 val->val2 = micro_c % 1000000; in lsm6dso16is_gyro_channel_get_temp()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x.c729 int64_t micro_c = (temp_sample * 1000000LL) / 256; in lsm6dsv16x_gyro_channel_get_temp() local
731 val->val1 = (int32_t)(micro_c / 1000000) + 25; in lsm6dsv16x_gyro_channel_get_temp()
732 val->val2 = (int32_t)(micro_c % 1000000); in lsm6dsv16x_gyro_channel_get_temp()