]> pilppa.org Git - lib1wire.git/blob - src/W1CounterDevice.hh
Initial support for reading and writing device specific config data.
[lib1wire.git] / src / W1CounterDevice.hh
1 /*
2  * W1CounterDevice.hh
3  *
4  *  Created on: Oct 30, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef W1COUNTERDEVICE_HH_
9 #define W1COUNTERDEVICE_HH_
10
11 #include "W1Device.hh"
12
13 namespace w1 {
14         class W1CounterDevice: public w1::W1Device {
15                 public:
16                         W1CounterDevice(int family_code_param,
17                                         std::string device_id_param,
18                                         dirent *direntry_param);
19                         virtual ~W1CounterDevice();
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 /* W1COUNTERDEVICE_HH_ */