This is the device firmware for the controlBoard in the DIY 3D Printable Raspberry Pi Raman Spectrometer. For more information please visit: http://hackaday.io/project/1279

Dependencies:   mbed

Committer:
flatcat
Date:
Fri Aug 15 10:38:50 2014 +0000
Revision:
0:14942e263231
http://hackaday.io/project/1279

Who changed what in which revision?

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