aboutsummaryrefslogtreecommitdiff
path: root/include/sensors/dht22.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 17:18:49 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 17:18:49 +0200
commit4e1ce86af16307bf7d42657db07600867c7c4bbc (patch)
tree5d0dfddea221c91545a9bd57ac7face5842291d4 /include/sensors/dht22.h
parent147cb7f0e67d1f3c3274effa5476607e24664182 (diff)
downloadavr-ioe-4e1ce86af16307bf7d42657db07600867c7c4bbc.tar.gz
avr-ioe-4e1ce86af16307bf7d42657db07600867c7c4bbc.tar.bz2
avr-ioe-4e1ce86af16307bf7d42657db07600867c7c4bbc.zip
Add some more progress and split non-core functionality to separate repo
More progress to implementation and some changes in project it self. This library will implement only drivers for features on chip but nothing else. Everything connected externally is now in separate repository.
Diffstat (limited to 'include/sensors/dht22.h')
-rw-r--r--include/sensors/dht22.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/include/sensors/dht22.h b/include/sensors/dht22.h
deleted file mode 100644
index aabb442..0000000
--- a/include/sensors/dht22.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <avr/io.h>
-#include <util/delay.h>
-#include <stdint.h>
-
-#include "../tasks.h"
-#include "../timer.h"
-
-#ifndef _IOE_SENSOR_DHT22_H_
-#define _IOE_SENSOR_DHT22_H_
-#ifdef CONFIG_IOE_SENSOR_DHT22
-
-struct dht22_value {
- uint8_t integral;
- uint8_t decimal;
-};
-
-struct dht22_port {
- volatile uint8_t *DDR; // Address of DDR register
- volatile uint8_t *PORT; // Address of PORT register
- volatile uint8_t *PIN; // Address of PIN register
- uint8_t MASK; // _BV() of index of port
- volatile uint8_t *PCMSK; // Address of relevant PCMSK register
- uint8_t PCMSK_MASK; // _BV() of index of PCMSK
-};
-
-extern const struct dht22_port dht22_ports[];
-
-/*
- * Initialize port for sensor
- */
-void dht22_init(uint8_t port);
-
-/*
- * Read values from dht22
- * rh - relative
- * t - temperature
- */
-int8_t dht22_read(uint8_t portindex, struct dht22_value *rh,
- struct dht22_value *t);
-
-#endif /* CONFIG_IOE_SENSOR_DHT22 */
-#endif /* _IOE_SENSOR_DHT22_H_ */