sensor lib

Dependents:   gather_sensor_data

Revision:
0:cbe8cd32b8d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ML8511Sensor.h	Thu Sep 08 14:05:15 2016 +0000
@@ -0,0 +1,24 @@
+#ifndef MBED_ML8511_SENSOR_H
+#define MBED_ML8511_SENSOR_H
+
+#include "mbed.h"
+#include <string> 
+#include "sensorTypes.h"
+
+
+class ML8511Sensor {
+
+public:
+    ML8511Sensor(PinName one_wire_pinname);
+        
+    sensorStatus readSensor(string &sensor_reading);
+    sensorStatus setReadingType(sensorReadingType sensor_reading_types = ML8511_ALL);
+    sensorReadingType getReadingType();
+
+private:
+    AnalogIn ML8511_sensor;
+    sensorReadingType reading_type;
+    PinName analog_in_pname;
+};
+
+#endif
\ No newline at end of file