source: trunk/Arduino/libraries/ot_slave_2/ot_slave_2.h @ 7

Last change on this file since 7 was 7, checked in by markus, 7 years ago
  • Moving class OT_V2R2_Slave to library "ot_slave_2"
  • Modified sketch OT_boiler for first combined prototype OT + ETH


File size: 1.0 KB
Line 
1#ifndef _OT_SLAVE_2_H
2#define _OT_SLAVE_2_H
3
4#include "Arduino.h"
5#include <opentherm.h>
6
7class OT_V2R2_Slave {
8
9protected:
10  static OpenthermData  message;
11  bool                  chEnable;
12  bool                  chActive;
13  float                 chTemperature;
14  bool                  dhwEnable;
15  bool                  dhwActive;
16  float                 dhwTemperature;
17 
18
19public:
20  OT_V2R2_Slave ();
21
22  virtual void  Setup ();
23  virtual void  Loop ();
24 
25  virtual void  HandleRequest (OpenthermData& message);
26  virtual void  ConfigReq (OpenthermData& message);
27  virtual void  StatusReq (OpenthermData& message);
28  virtual void  FaultReq (OpenthermData& message);
29
30  virtual bool  CH_Enable (bool enable = true);
31  virtual bool  CH_Disable ();
32  virtual void  CH_Temperature (float);
33  virtual bool  DHW_Enable (bool enable = true);
34  virtual bool  DHW_Disable ();
35  virtual void  DHW_Temperature (float);
36
37private:
38  static void ListenAfterResponse ();
39
40};
41
42#endif  // _OT_SLAVE_2_H
Note: See TracBrowser for help on using the repository browser.