Files
espidf_i2c/aht20/priv_include/aht20_reg.h
Julien Lazarewicz e940c767a6 Add bh1750, aht20, sgp40 drivers unified on native i2c_master API
Forked from managed_components (espressif/bh1750, espressif/aht20,
esp-idf-lib/sgp40) and rewrote aht20/sgp40 internals to use
driver/i2c_master.h directly instead of the i2c_bus and i2cdev
wrapper components, so all three sensors share one create/delete
handle pattern over a single i2c_master_bus_handle_t.
2026-07-05 23:27:50 +02:00

25 lines
1.2 KiB
C

/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
/**
* @brief chip information definition
*/
#define CHIP_NAME "ASAIR AHT20" /**< chip name */
#define SUPPLY_VOLTAGE_MIN (2.2f) /**< chip min supply voltage */
#define SUPPLY_VOLTAGE_MAX (5.5f) /**< chip max supply voltage */
#define TEMPERATURE_MIN (-40.0f) /**< chip min operating temperature */
#define TEMPERATURE_MAX (125.0f) /**< chip max operating temperature */
#define AHT20_START_MEASURMENT_CMD 0xAC /* start measurement command */
#define AT581X_STATUS_CMP_INT (2) /* 1 --Out threshold range; 0 --In threshold range */
#define AT581X_STATUS_Calibration_Enable (3) /* 1 --Calibration enable; 0 --Calibration disable */
#define AT581X_STATUS_CRC_FLAG (4) /* 1 --CRC ok; 0 --CRC failed */
#define AT581X_STATUS_MODE_STATUS (5) /* 00 -NOR mode; 01 -CYC mode; 1x --CMD mode */
#define AT581X_STATUS_BUSY_INDICATION (7) /* 1 --Equipment is busy; 0 --Equipment is idle */