Engduino v1.0
EngduinoThermistor.h
Go to the documentation of this file.
00001 /**
00002 * \defgroup EngduinoThermistor Engduino Thermistor Driver 
00003 * 
00004 * @{
00005 */
00006 
00007 /**
00008 * \file 
00009 *               Engduino Thermistor driver
00010 * \author
00011 *               Engduino team: support@engduino.org
00012 */
00013 
00014 #ifndef __ENGDUINOTHERMISTOR_H__
00015 #define __ENGDUINOTHERMISTOR_H__
00016 
00017 #include <Arduino.h>
00018 #include <Engduino.h>
00019 
00020 enum temperatureUnits {
00021   CELSIUS,
00022   KELVIN,
00023   FAHRENHEIT
00024 };
00025 
00026 class EngduinoThermistorClass 
00027 {
00028         private:
00029 
00030         public:
00031                 EngduinoThermistorClass();
00032                 void     begin();
00033                 void     end();
00034                 float    temperature(temperatureUnits units=CELSIUS);
00035                 float    temperature(temperatureUnits units, float B, float T0, float R0, float R_Balance);
00036                 uint16_t temperatureRaw();
00037 };
00038 
00039 extern EngduinoThermistorClass EngduinoThermistor;
00040 
00041 #endif
00042 
00043 /** @} */