For amx31820

Dependencies:   OneWire

Dependents:   MAX31820

Fork of DS1820 by Zoltan Hudak

Committer:
schnf30
Date:
Mon Apr 30 07:56:28 2018 +0000
Revision:
15:3d3ba015f6af
Parent:
14:f375b7de7856
MAX31820

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schnf30 14:f375b7de7856 1 #ifndef SfDS1820_H_
schnf30 14:f375b7de7856 2 #define SfDS1820_H_
schnf30 14:f375b7de7856 3 #include "DS1820.h"
schnf30 14:f375b7de7856 4 class Sf18B20 : public DS1820
schnf30 14:f375b7de7856 5 {
schnf30 14:f375b7de7856 6 public:
schnf30 14:f375b7de7856 7 Sf18B20(PinName pin);
schnf30 14:f375b7de7856 8 bool Run(unsigned period);
schnf30 14:f375b7de7856 9 void Stop(void);
schnf30 14:f375b7de7856 10 double Read18B20(void);
schnf30 14:f375b7de7856 11 bool DataReady(void);
schnf30 14:f375b7de7856 12 private:
schnf30 14:f375b7de7856 13 Ticker flipper;
schnf30 14:f375b7de7856 14 double data18B20;
schnf30 14:f375b7de7856 15 bool dataready;
schnf30 14:f375b7de7856 16 void flip(void);
schnf30 14:f375b7de7856 17 };
schnf30 14:f375b7de7856 18 #endif