Lines Matching refs:temperature
93 double temperature; in calculate_temperature() local
96 temperature = (-RTD_A + sqrt(delta)) / (2 * RTD_B); in calculate_temperature()
97 if (temperature > 0.0) { in calculate_temperature()
98 return temperature; in calculate_temperature()
102 temperature = RTD_C[0] + RTD_C[1] * resistance + RTD_C[2] * pow(resistance, 2) - in calculate_temperature()
105 return temperature; in calculate_temperature()
119 double temperature; in calculate_temperature() local
121 temperature = (resistance - resistance_0) / (resistance_0 * RTD_A); in calculate_temperature()
122 return temperature; in calculate_temperature()
240 data->temperature = calculate_temperature(resistance, config->resistance_at_zero); in max31865_get_temperature()
283 return sensor_value_from_double(val, data->temperature); in max31865_channel_get()