/**
* @file AHT20_ATY.h
*
* @param Project DEVICE_GENERAL_ATY_LIB
*
* @author ATY
*
* @copyright
* - Copyright 2017 - 2026 MZ-ATY
* - This code follows:
* - MZ-ATY Various Contents Joint Statement -
*
* https://mengze.top/MZ-ATY_VCJS
* - CC 4.0 BY-NC-SA -
*
* https://creativecommons.org/licenses/by-nc-sa/4.0/
* - Your use will be deemed to have accepted the terms of this statement.
*
* @brief functions of AHT20 for C platform
*
* @version
* - 1_01_220804 > ATY
* -# Preliminary version, first Release
* - 1_02_231229 > ATY
* -# add multy addr and channel
********************************************************************************
*/
#ifndef __AHT20_ATY_H
#define __AHT20_ATY_H
#include "INCLUDE_ATY.h"
#include "HW_I2C_ATY.h"
/******************************* For user *************************************/
// #ifdef __DEBUG_AHT20_ATY
// #define AHT20_I2C I2C_C1
/******************************************************************************/
#define ATH20_ADDRESS 0x38
#define AHT20_SOFT_RST 0xBA
#define AHT20_NOR_MODE 0xA8
#define AHT20_INIT 0xBE
#define AHT20_TRIG_MEASURE 0xAC
#define AHT20_STATUS 0x00
uint8_t AHT20_TemHumGet(uint16_t* ht, uint8_t channel);
#endif /* __AHT20_ATY_H */
/******************************** End Of File *********************************/