sensor lib

Dependents:   gather_sensor_data

ML8511Sensor.h

Committer:
readysteadygo2006
Date:
2016-09-08
Revision:
0:cbe8cd32b8d9

File content as of revision 0:cbe8cd32b8d9:

#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