]> pilppa.org Git - lib1wire.git/blob - src/W1TemperatureSensor.hh
Initial support for reading and writing device specific config data.
[lib1wire.git] / src / W1TemperatureSensor.hh
1 /*
2  * W1TemperatureSensor.hh
3  *
4  *  Created on: Oct 20, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef W1TEMPERATURESENSOR_HH_
9 #define W1TEMPERATURESENSOR_HH_
10
11 #include "W1Device.hh"
12
13 namespace w1 {
14         class W1TemperatureSensor : public W1Device {
15                 public:
16                         W1TemperatureSensor(int family_code_param,
17                                         std::string device_id_param,
18                                         dirent *direntry_param);
19                         virtual ~W1TemperatureSensor();
20                         std::string get_raw_value();
21                         std::string get_unit();
22                         std::string get_device_type();
23                 protected:
24                         bool is_supported_family_code(int family_code);
25         };
26 }
27
28 #endif /* W1TEMPERATURESENSOR_HH_ */