![]() |
LibDriver AHT30
1.0.0
AHT30 full-featured driver
|
aht30 base driver modules More...
Data Structures | |
struct | aht30_handle_s |
aht30 handle structure definition More... | |
struct | aht30_info_s |
aht30 information structure definition More... | |
Typedefs | |
typedef struct aht30_handle_s | aht30_handle_t |
aht30 handle structure definition More... | |
typedef struct aht30_info_s | aht30_info_t |
aht30 information structure definition More... | |
Enumerations | |
enum | aht30_status_t { AHT30_STATUS_BUSY = (1 << 7) , AHT30_STATUS_NOR_MODE = (0 << 5) , AHT30_STATUS_CYC_MODE = (1 << 5) , AHT30_STATUS_CMD_MODE = (2 << 5) , AHT30_STATUS_CRC_FLAG = (1 << 4) , AHT30_STATUS_CALIBRATION_ENABLE = (1 << 3) , AHT30_STATUS_CMP_INT = (1 << 2) } |
aht30 status enumeration definition More... | |
Functions | |
uint8_t | aht30_info (aht30_info_t *info) |
get chip's information More... | |
uint8_t | aht30_init (aht30_handle_t *handle) |
initialize the chip More... | |
uint8_t | aht30_deinit (aht30_handle_t *handle) |
close the chip More... | |
uint8_t | aht30_read_temperature_humidity (aht30_handle_t *handle, uint32_t *temperature_raw, float *temperature_s, uint32_t *humidity_raw, uint8_t *humidity_s) |
read the temperature and humidity data More... | |
uint8_t | aht30_read_temperature (aht30_handle_t *handle, uint32_t *temperature_raw, float *temperature_s) |
read the temperature More... | |
uint8_t | aht30_read_humidity (aht30_handle_t *handle, uint32_t *humidity_raw, uint8_t *humidity_s) |
read the humidity data More... | |
uint8_t | aht30_get_status (aht30_handle_t *handle, uint8_t *status) |
get status More... | |
aht30 base driver modules
typedef struct aht30_handle_s aht30_handle_t |
aht30 handle structure definition
typedef struct aht30_info_s aht30_info_t |
aht30 information structure definition
enum aht30_status_t |
aht30 status enumeration definition
Definition at line 62 of file driver_aht30.h.
uint8_t aht30_deinit | ( | aht30_handle_t * | handle | ) |
close the chip
[in] | *handle | pointer to an aht30 handle structure |
Definition at line 279 of file driver_aht30.c.
uint8_t aht30_get_status | ( | aht30_handle_t * | handle, |
uint8_t * | status | ||
) |
get status
[in] | *handle | pointer to an aht30 handle structure |
[out] | *status | pointer to a status buffer |
Definition at line 521 of file driver_aht30.c.
uint8_t aht30_info | ( | aht30_info_t * | info | ) |
get chip's information
[out] | *info | pointer to an aht30 info structure |
Definition at line 616 of file driver_aht30.c.
uint8_t aht30_init | ( | aht30_handle_t * | handle | ) |
initialize the chip
[in] | *handle | pointer to an aht30 handle structure |
Definition at line 182 of file driver_aht30.c.
uint8_t aht30_read_humidity | ( | aht30_handle_t * | handle, |
uint32_t * | humidity_raw, | ||
uint8_t * | humidity_s | ||
) |
read the humidity data
[in] | *handle | pointer to an aht30 handle structure |
[out] | *humidity_raw | pointer to a raw humidity buffer |
[out] | *humidity_s | pointer to a converted humidity buffer |
Definition at line 458 of file driver_aht30.c.
uint8_t aht30_read_temperature | ( | aht30_handle_t * | handle, |
uint32_t * | temperature_raw, | ||
float * | temperature_s | ||
) |
read the temperature
[in] | *handle | pointer to an aht30 handle structure |
[out] | *temperature_raw | pointer to a raw temperature buffer |
[out] | *temperature_s | pointer to a converted temperature buffer |
Definition at line 391 of file driver_aht30.c.
uint8_t aht30_read_temperature_humidity | ( | aht30_handle_t * | handle, |
uint32_t * | temperature_raw, | ||
float * | temperature_s, | ||
uint32_t * | humidity_raw, | ||
uint8_t * | humidity_s | ||
) |
read the temperature and humidity data
[in] | *handle | pointer to an aht30 handle structure |
[out] | *temperature_raw | pointer to a raw temperature buffer |
[out] | *temperature_s | pointer to a converted temperature buffer |
[out] | *humidity_raw | pointer to a raw humidity buffer |
[out] | *humidity_s | pointer to a converted humidity buffer |
Definition at line 317 of file driver_aht30.c.