This commit is contained in:
2020-08-04 00:55:16 +02:00
parent f6f01b0510
commit cb3c989683
6 changed files with 95 additions and 11 deletions

View File

@@ -138,15 +138,13 @@ void adc_pt1000_set_resistance_calibration(float offset, float sensitivity_devia
void adc_pt1000_get_resistance_calibration(float *offset, float *sensitivity_deviation, bool *active);
/**
* @brief Get the current reistance value
* @brief Get the current resistance value
*
* If the reistance calibration is enabled, this function applies the calculations of the raw resistance reading and
* If the resistance calibration is enabled, this function applies the calculations of the raw resistance reading and
* returns the corrected value.
*
* If an ADC error is set, the status is negative. The status is 2 during the first measurements with a given filter setting. Technically, the resistance value is
* correct but the filter is not stable yet.
* Use adc_pt1000_check_error to check the error and reinitialize the ADC.
*
*
* @param[out] resistance Resistance output in Ohms
* @return Status