SmartCradle v1
Baby smart cradle
dht.h
Go to the documentation of this file.
1
10#ifndef DHT_H
11#define DHT_H
12
30typedef struct DHT11
31{
32 unsigned char CompleteSample[5];
33 unsigned char TemperatureI;
34 unsigned char TemperatureD;
35 unsigned char HumidityI;
36 unsigned char HumidityD;
37 unsigned char checksum;
39
43void initDHT11(void);
44
49void remDHT11(void);
50
60int readDHT11(dht11_t *data);
61
62#endif
void remDHT11(void)
Removes the sensor device driver.
Definition: dht.c:21
int readDHT11(dht11_t *data)
Sample from the sensor.
Definition: dht.c:25
void initDHT11(void)
Loads the sensor device driver.
Definition: dht.c:17
struct DHT11 dht11_t
DHT11 Data structure CompleteSample: receives all the data from the sensor.
DHT11 Data structure CompleteSample: receives all the data from the sensor.
Definition: dht.h:31