Felícito Manzano
/
OneWireCRC
Custom
Fork of OneWireCRC by
Embed:
(wiki syntax)
Show/hide line numbers
DS18S20.h
00001 /* 00002 * DS18S20. Maxim DS18S20 One-Wire Thermometer. 00003 * Uses the OneWireCRC library. 00004 * 00005 * Copyright (C) <2010> Petras Saduikis <petras@petras.co.uk> 00006 * 00007 * This file is part of OneWireThermometer. 00008 * 00009 * OneWireThermometer is free software: you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation, either version 3 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * OneWireThermometer is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with OneWireThermometer. If not, see <http://www.gnu.org/licenses/>. 00021 */ 00022 00023 #ifndef SNATCH59_DS18S20_H 00024 #define SNATCH59_DS18S20_H 00025 00026 #include "OneWireThermometer.h" 00027 00028 class DS18S20 : public OneWireThermometer 00029 { 00030 public: 00031 DS18S20(bool crcOn, bool useAddr, bool parasitic, PinName pin); 00032 00033 virtual void setResolution(eResolution resln) { }; // do nothing 00034 00035 protected: 00036 virtual float calculateTemperature(BYTE* data); 00037 }; 00038 00039 #endif
Generated on Wed Jul 13 2022 02:21:52 by 1.7.2