Searched refs:micro_c (Results 1 – 7 of 7) sorted by relevance
99 int32_t micro_c; in hs300x_temp_convert() local105 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()
98 int32_t micro_c; in hs400x_temp_convert() local104 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()
254 int32_t micro_c; in dht20_temp_convert() local261 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()
269 int64_t micro_c; in lis2de12_temp_channel_get() local274 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()
366 int32_t micro_c; in fxos8700_temp_convert() local371 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()
520 int32_t micro_c; in lsm6dso16is_gyro_channel_get_temp() local525 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()
729 int64_t micro_c = (temp_sample * 1000000LL) / 256; in lsm6dsv16x_gyro_channel_get_temp() local731 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()