htu21.h 275 B

1234567891011121314151617
  1. #pragma once
  2. #ifndef HTU21_H
  3. #define HTU21_H
  4. #include "stm8s.h"
  5. typedef enum {
  6. HTU_OK = 0,
  7. HTU_I2C,
  8. HTU_CRC_Temp,
  9. HTU_CRC_Humidity
  10. } htu_err_t;
  11. htu_err_t htu_GetTemperature(int16_t * temperature);
  12. htu_err_t htu_GetHumidity(uint16_t * humidity);
  13. #endif // HTU21_H