![]() |
LibDriver DHT11
2.0.0
DHT11 full-featured driver
|
dht11 base driver modules More...
Data Structures | |
struct | dht11_handle_s |
dht11 handle structure definition More... | |
struct | dht11_info_s |
dht11 info structure definition More... | |
Typedefs | |
typedef struct dht11_handle_s | dht11_handle_t |
dht11 handle structure definition More... | |
typedef struct dht11_info_s | dht11_info_t |
dht11 info structure definition More... | |
Functions | |
uint8_t | dht11_info (dht11_info_t *info) |
get chip's information More... | |
uint8_t | dht11_init (dht11_handle_t *handle) |
initialize the chip More... | |
uint8_t | dht11_deinit (dht11_handle_t *handle) |
close the chip More... | |
uint8_t | dht11_read_temperature_humidity (dht11_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, uint8_t *humidity_s) |
read the temperature and humidity data More... | |
uint8_t | dht11_read_humidity (dht11_handle_t *handle, uint16_t *raw, uint8_t *s) |
read the humidity data More... | |
uint8_t | dht11_read_temperature (dht11_handle_t *handle, uint16_t *raw, float *s) |
read the temperature data More... | |
dht11 base driver modules
typedef struct dht11_handle_s dht11_handle_t |
dht11 handle structure definition
typedef struct dht11_info_s dht11_info_t |
dht11 info structure definition
uint8_t dht11_deinit | ( | dht11_handle_t * | handle | ) |
close the chip
[in] | *handle | pointer to a dht11 handle structure |
Definition at line 554 of file driver_dht11.c.
uint8_t dht11_info | ( | dht11_info_t * | info | ) |
get chip's information
[out] | *info | pointer to a dht11 info structure |
Definition at line 584 of file driver_dht11.c.
uint8_t dht11_init | ( | dht11_handle_t * | handle | ) |
initialize the chip
[in] | *handle | pointer to a dht11 handle structure |
Definition at line 467 of file driver_dht11.c.
uint8_t dht11_read_humidity | ( | dht11_handle_t * | handle, |
uint16_t * | raw, | ||
uint8_t * | s | ||
) |
read the humidity data
[in] | *handle | pointer to a dht11 handle structure |
[out] | *raw | pointer to a raw humidity buffer |
[out] | *s | pointer to a converted humidity buffer |
Definition at line 260 of file driver_dht11.c.
uint8_t dht11_read_temperature | ( | dht11_handle_t * | handle, |
uint16_t * | raw, | ||
float * | s | ||
) |
read the temperature data
[in] | *handle | pointer to a dht11 handle structure |
[out] | *raw | pointer to a raw temperature buffer |
[out] | *s | pointer to a converted temperature buffer |
Definition at line 398 of file driver_dht11.c.
uint8_t dht11_read_temperature_humidity | ( | dht11_handle_t * | handle, |
uint16_t * | temperature_raw, | ||
float * | temperature_s, | ||
uint16_t * | humidity_raw, | ||
uint8_t * | humidity_s | ||
) |
read the temperature and humidity data
[in] | *handle | pointer to a dht11 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 324 of file driver_dht11.c.