Device driver interface for the DHT family of humidity and temperature sensors. More...
Device driver interface for the DHT family of humidity and temperature sensors.
Definition in file dht.h.
Include dependency graph for dht.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dht_data_t |
| Data type for storing DHT sensor readings. More... | |
| struct | dht_params_t |
| Configuration parameters for DHT devices. More... | |
| struct | dht_t |
| Device descriptor for DHT sensor devices. More... | |
Enumerations | |
| enum | dht_type_t { DHT11 , DHT11_2022 , DHT22 , DHT21 = DHT22 , AM2301 = DHT22 } |
| Device type of the DHT device. More... | |
Functions | |
| int | dht_init (dht_t *dev, const dht_params_t *params) |
| Initialize a new DHT device. More... | |
| int | dht_read (dht_t *dev, int16_t *temp, int16_t *hum) |
| get a new temperature and/or humidity value from the device More... | |