Issue #26: Add reverse lookup function to temp converter that converts a temperature to a PT1000 resistance value
This commit is contained in:
		@@ -29,4 +29,13 @@
 | 
			
		||||
 */
 | 
			
		||||
int temp_converter_convert_resistance_to_temp(float resistance, float *temp_out);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Convert temperature to PT1000 resistance
 | 
			
		||||
 * @param temp Temperature in degrees celsius
 | 
			
		||||
 * @param[out] resistance_out Resistance value
 | 
			
		||||
 * @return 0 if ok, -1 if tmeperature is below the lookup table, 1 if value is above the lookup table, -1000 in case of a pointer error,
 | 
			
		||||
 *	   -100 if an internal error occured. This should never happen, if the lookup table is correct
 | 
			
		||||
 */
 | 
			
		||||
int temp_convertet_convert_temp_to_resistance(float temp, float *resistance_out);
 | 
			
		||||
 | 
			
		||||
#endif /* __TEMP_CONVERTER_H__ */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user