Lines Matching full:resistance

81  * Apply the Callendar-Van Dusen equation to convert the RTD resistance
87 * @param resistance measured resistance
88 * @param resistance_0 constant resistance at 0oC
91 static double calculate_temperature(double resistance, double resistance_0) in calculate_temperature() argument
94 double delta = (RTD_A * RTD_A) - 4 * RTD_B * (1.0 - resistance / resistance_0); in calculate_temperature()
100 resistance /= resistance_0; in calculate_temperature()
101 resistance *= 100.0; in calculate_temperature()
102 temperature = RTD_C[0] + RTD_C[1] * resistance + RTD_C[2] * pow(resistance, 2) - in calculate_temperature()
103 RTD_C[3] * pow(resistance, 3) - RTD_C[4] * pow(resistance, 4) + in calculate_temperature()
104 RTD_C[5] * pow(resistance, 5); in calculate_temperature()
112 * resistance to temperature:
113 * @param resistance measured resistance
114 * @param resistance_0 constant resistance at 0oC
117 static double calculate_temperature(double resistance, double resistance_0) in calculate_temperature() argument
121 temperature = (resistance - resistance_0) / (resistance_0 * RTD_A); in calculate_temperature()
215 /* Read resistance measured value */ in max31865_get_temperature()
236 double resistance = (double)read_reg.u16; in max31865_get_temperature() local
238 resistance /= 32768; in max31865_get_temperature()
239 resistance *= config->resistance_reference; in max31865_get_temperature()
240 data->temperature = calculate_temperature(resistance, config->resistance_at_zero); in max31865_get_temperature()