NTCtsensor.h 539 B

12345678910111213141516171819202122
  1. #ifndef NTCTSENSOR_H
  2. #define NTCTSENSOR_H
  3. #include <stdint.h>
  4. #include "app/thermo/tsensor_common.h"
  5. typedef int32_t tNTCSensorTemp;
  6. typedef struct
  7. {
  8. bool ( * Init )();
  9. bool ( * GetReady)();
  10. void ( * ResetTempAVG)();
  11. bool ( * ServeSensor)();
  12. tNTCSensorTemp ( * GetTempAVG)();
  13. void ( * SetSensorInterval)(uint32_t ms);
  14. void ( * UpdateCurrentTempCoeff)(uint16_t temp_coeff);
  15. }
  16. sNtcThermoSensorHandle_t;
  17. extern const sNtcThermoSensorHandle_t NtcThermoSensor;
  18. #endif