aht10 base driver modules
More...
aht10 base driver modules
◆ aht10_handle_t
aht10 handle structure definition
◆ aht10_info_t
aht10 information structure definition
◆ aht10_deinit()
close the chip
- Parameters
-
| [in] | *handle | pointer to an aht10 handle structure |
- Returns
- status code
- 0 success
- 1 deinit failed
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 202 of file driver_aht10.c.
◆ aht10_info()
get chip's information
- Parameters
-
| [out] | *info | pointer to an aht10 info structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- Note
- none
Definition at line 492 of file driver_aht10.c.
◆ aht10_init()
initialize the chip
- Parameters
-
| [in] | *handle | pointer to an aht10 handle structure |
- Returns
- status code
- 0 success
- 1 iic failed
- 2 handle is NULL
- 3 linked functions is NULL
- 4 reset failed
- 5 init failed
- Note
- none
Definition at line 108 of file driver_aht10.c.
◆ aht10_read_humidity()
| uint8_t aht10_read_humidity |
( |
aht10_handle_t * | handle, |
|
|
uint32_t * | humidity_raw, |
|
|
uint8_t * | humidity_s ) |
read the humidity data
- Parameters
-
| [in] | *handle | pointer to an aht10 handle structure |
| [out] | *humidity_raw | pointer to a raw humidity buffer |
| [out] | *humidity_s | pointer to a converted humidity buffer |
- Returns
- status code
- 0 success
- 1 read humidity failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 data is not ready
- Note
- none
Definition at line 370 of file driver_aht10.c.
◆ aht10_read_temperature()
| uint8_t aht10_read_temperature |
( |
aht10_handle_t * | handle, |
|
|
uint32_t * | temperature_raw, |
|
|
float * | temperature_s ) |
read the temperature
- Parameters
-
| [in] | *handle | pointer to an aht10 handle structure |
| [out] | *temperature_raw | pointer to a raw temperature buffer |
| [out] | *temperature_s | pointer to a converted temperature buffer |
- Returns
- status code
- 0 success
- 1 read temperature failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 data is not ready
- Note
- none
Definition at line 308 of file driver_aht10.c.
◆ aht10_read_temperature_humidity()
| uint8_t aht10_read_temperature_humidity |
( |
aht10_handle_t * | handle, |
|
|
uint32_t * | temperature_raw, |
|
|
float * | temperature_s, |
|
|
uint32_t * | humidity_raw, |
|
|
uint8_t * | humidity_s ) |
read the temperature and humidity data
- Parameters
-
| [in] | *handle | pointer to an aht10 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 |
- Returns
- status code
- 0 success
- 1 read temperature humidity failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 data is not ready
- Note
- none
Definition at line 239 of file driver_aht10.c.