Device driver interface for the DHT family of humidity and temperature sensors. More...

Detailed Description

#include <stdint.h>
#include "saul.h"
#include "periph/gpio.h"
+ Include dependency graph for 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_t
 device descriptor for DHT sensor devices More...
 

Typedefs

typedef dht_t dht_params_t
 configuration parameters for DHT devices
 

Enumerations

enum  { DHT_OK = 0, DHT_NOCSUM = -1, DHT_NODEV = -2 }
 possible return codes More...
 
enum  dht_type_t { DHT11, DHT22, DHT21 = DHT22 }
 device type of the DHT device More...
 

Functions

void dht_auto_init (void)
 auto-initialize all configured DHT devices
 
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...
 

Variables

const saul_driver_t dht_temp_saul_driver
 export SAUL endpoints
 
const saul_driver_t dht_hum_saul_driver