AHT20_ATY.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file AHT20_ATY.h
  3. *
  4. * @param Project DEVICE_GENERAL_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2026 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief functions of AHT20 for C platform
  20. *
  21. * @version
  22. * - 1_01_220804 > ATY
  23. * -# Preliminary version, first Release
  24. * - 1_02_231229 > ATY
  25. * -# add multy addr and channel
  26. ********************************************************************************
  27. */
  28. #ifndef __AHT20_ATY_H
  29. #define __AHT20_ATY_H
  30. #include "INCLUDE_ATY.h"
  31. #include "HW_I2C_ATY.h"
  32. /******************************* For user *************************************/
  33. // #ifdef __DEBUG_AHT20_ATY
  34. // #define AHT20_I2C I2C_C1
  35. /******************************************************************************/
  36. #define ATH20_ADDRESS 0x38
  37. #define AHT20_SOFT_RST 0xBA
  38. #define AHT20_NOR_MODE 0xA8
  39. #define AHT20_INIT 0xBE
  40. #define AHT20_TRIG_MEASURE 0xAC
  41. #define AHT20_STATUS 0x00
  42. uint8_t AHT20_TemHumGet(uint16_t* ht, uint8_t channel);
  43. #endif /* __AHT20_ATY_H */
  44. /******************************** End Of File *********************************/