For amx31820
Fork of DS1820 by
Sf18B20.h@14:f375b7de7856, 2018-04-30 (annotated)
- Committer:
- schnf30
- Date:
- Mon Apr 30 07:54:54 2018 +0000
- Revision:
- 14:f375b7de7856
MAX31820 DS18B20
Who changed what in which revision?
User | Revision | Line number | New 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 |