tsensor_common.h 389 B

1234567891011121314
  1. #ifndef TSENSOR_COMMON_H
  2. #define TSENSOR_COMMON_H
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. // Sensor models macro: (do not touch!)
  6. #define AD7414 1
  7. #define AD7415 2
  8. typedef int16_t tTSensorTemp;
  9. #define THERMO_SENSOR_INVALID_TEMP_VALUE (-127)
  10. #define THERMO_SENSOR_AVGTEMP_TO_INT(xTSensorTemp) ((int8_t)((uint16_t)(xTSensorTemp) >> 8))
  11. #endif