ntc_temperature.h 317 B

123456789101112131415161718
  1. #ifndef __NTC_TEMPERATURE_H__
  2. #define __NTC_TEMPERATURE_H__
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. float NTC_CalculateResistance(float v_ntc, float v_ref, float r_fixed);
  8. float NTC_GetTemperature(float r_ntc); // 插值查表方式
  9. #ifdef __cplusplus
  10. }
  11. #endif
  12. #endif // __NTC_TEMPERATURE_H__