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.
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_OK = 0, DHT_NOCSUM = -1, DHT_TIMEOUT = -2, DHT_NODEV = -3 } |
Possible return codes. More... | |
enum | dht_type_t { DHT11, DHT22, DHT21 = 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 humidity value from the device More... | |