EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_D20620.h
1 /******************************************************************************
2  DISCLAIMER
3 
4  THIS SOFTWARE PRODUCT ("SOFTWARE") IS PROPRIETARY TO ENOCEAN GMBH, OBERHACHING,
5  GERMANY (THE "OWNER") AND IS PROTECTED BY COPYRIGHT AND INTERNATIONAL TREATIES OR
6  PROTECTED AS TRADE SECRET OR AS OTHER INTELLECTUAL PROPERTY RIGHT. ALL RIGHTS, TITLE AND
7  INTEREST IN AND TO THE SOFTWARE, INCLUDING ANY COPYRIGHT, TRADE SECRET OR ANY OTHER
8  INTELLECTUAL PROPERTY EMBODIED IN THE SOFTWARE, AND ANY RIGHTS TO REPRODUCE,
9  DISTRIBUTE, MODIFY, DISPLAY OR OTHERWISE USE THE SOFTWARE SHALL EXCLUSIVELY VEST IN THE
10  OWNER. ANY UNAUTHORIZED REPRODUCTION, DISTRIBUTION, MODIFICATION, DISPLAY OR OTHER
11  USE OF THE SOFTWARE WITHOUT THE EXPLICIT PERMISSION OF OWNER IS PROHIBITED AND WILL
12  CONSTITUTE AN INFRINGEMENT OF THE OWNER'S RIGHT AND MAY BE SUBJECT TO CIVIL OR
13  CRIMINAL SANCTION.
14 
15  THIS SOFTWARE IS PROVIDED BY THE OWNER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
17  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN PARTICULAR, THE OWNER DOES NOT WARRANT
18  THAT THE SOFTWARE SHALL BE ERROR FREE AND WORKS WITHOUT INTERRUPTION.
19 
20  IN NO EVENT SHALL THE OWNER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  ******************************************************************************/
27 
28 #ifndef EO_EEP_D20620_H
29 #define EO_EEP_D20620_H
30 
33 #include "eoD2EEProfile.h"
113 typedef enum
114 {
115  D20620_MI = 0,
116  D20620_WP = 1,
117  D20620_WPCH0 = 2,
118  D20620_AT = 3,
119  D20620_ATCH0 = 4,
120  D20620_RT = 5,
121  D20620_PS = 6,
122  D20620_TP = 7,
123  D20620_TPCH0 = 8,
124  D20620_RAT = 9,
125  D20620_RATCH0 = 10,
126  D20620_FC = 11,
127  D20620_TC = 12,
128 } D20620_CHANNELS;
129 
133 typedef enum
134 {
135  D20620_WP_CLOSE_UNLOCK = 0,
136 } D20620_WP_ENUM;
137 typedef enum
138 {
139  D20620_AT_RESERVED = 0,
140 } D20620_AT_ENUM;
141 typedef enum
142 {
143  D20620_RT_STATUS = 0,
144 } D20620_RT_ENUM;
145 typedef enum
146 {
147  D20620_PS_CLOSED_LOCKED = 0,
148 } D20620_PS_ENUM;
149 
150 typedef enum
151 {
152  D20620_RAT_CONTINUOUS_AERATION = 0,
153 } D20620_RAT_ENUM;
154 typedef enum
155 {
156  D20620_FC_NO_FAILURE = 0,
157 } D20620_FC_ENUM;
158 
159 
161 {
162 
163 public:
164  eoReturn SetType(uint8_t type);
165 
166  virtual eoReturn SetCommand(uint8_t cmd);
167 
168  virtual eoReturn Parse(const eoMessage &msg);
169  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
170 
171  eoEEP_D20620(uint16_t size=14);
172  virtual ~eoEEP_D20620();
173 };
176 #endif // !eoEEP_D20620
uint8_t type
Type.
Definition: eoProfile.h:69
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Message Class for communication.
Definition: eoMessage.h:47
eoReturn SetType(uint8_t type)
virtual eoReturn SetCommand(uint8_t cmd)
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
EnOcean Equipment Profiles.
Definition: eoD2EEProfile.h:96
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
virtual eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
The class to handle eoEEP_D20620.
Definition: eoEEP_D20620.h:160