Sensor with Web Server

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Committer:
afilipem
Date:
Tue Apr 08 12:13:32 2014 +0000
Revision:
0:c385e589a779
1 version;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
afilipem 0:c385e589a779 1 /*
afilipem 0:c385e589a779 2 * DS18B20. Maxim DS18B20 One-Wire Thermometer.
afilipem 0:c385e589a779 3 * Uses the OneWireCRC library.
afilipem 0:c385e589a779 4 *
afilipem 0:c385e589a779 5 * Copyright (C) <2010> Petras Saduikis <petras@petras.co.uk>
afilipem 0:c385e589a779 6 *
afilipem 0:c385e589a779 7 * This file is part of OneWireThermometer.
afilipem 0:c385e589a779 8 *
afilipem 0:c385e589a779 9 * OneWireThermometer is free software: you can redistribute it and/or modify
afilipem 0:c385e589a779 10 * it under the terms of the GNU General Public License as published by
afilipem 0:c385e589a779 11 * the Free Software Foundation, either version 3 of the License, or
afilipem 0:c385e589a779 12 * (at your option) any later version.
afilipem 0:c385e589a779 13 *
afilipem 0:c385e589a779 14 * OneWireThermometer is distributed in the hope that it will be useful,
afilipem 0:c385e589a779 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
afilipem 0:c385e589a779 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
afilipem 0:c385e589a779 17 * GNU General Public License for more details.
afilipem 0:c385e589a779 18 *
afilipem 0:c385e589a779 19 * You should have received a copy of the GNU General Public License
afilipem 0:c385e589a779 20 * along with OneWireThermometer. If not, see <http://www.gnu.org/licenses/>.
afilipem 0:c385e589a779 21 */
afilipem 0:c385e589a779 22
afilipem 0:c385e589a779 23 #ifndef SNATCH59_DS18B20_H
afilipem 0:c385e589a779 24 #define SNATCH59_DS18B20_H
afilipem 0:c385e589a779 25
afilipem 0:c385e589a779 26 #include "OneWireThermometer.h"
afilipem 0:c385e589a779 27 #include "OneWireDefs.h"
afilipem 0:c385e589a779 28
afilipem 0:c385e589a779 29 class DS18B20 : public OneWireThermometer
afilipem 0:c385e589a779 30 {
afilipem 0:c385e589a779 31 public:
afilipem 0:c385e589a779 32 DS18B20(bool crcOn, bool useAddr, bool parasitic, PinName pin);
afilipem 0:c385e589a779 33
afilipem 0:c385e589a779 34 virtual void setResolution(eResolution resln);
afilipem 0:c385e589a779 35
afilipem 0:c385e589a779 36 protected:
afilipem 0:c385e589a779 37 virtual float calculateTemperature(BYTE* data);
afilipem 0:c385e589a779 38 };
afilipem 0:c385e589a779 39
afilipem 0:c385e589a779 40
afilipem 0:c385e589a779 41 #endif