EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_D205xx.h
Go to the documentation of this file.
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 #if !defined(eoEEP_D205_H__INCLUDED_)
29 #define eoEEP_D205_H__INCLUDED_
30 
33 #include "eoD2EEProfile.h"
167 typedef enum {
195  ERROR_STATE = 15,
196  MS_AVAILABLE = 16,
208  FAN_SPEED = 22,
209 
211 
213 typedef enum {
215  GOTO_MSG = 0x01,
217  STOP_MSG = 0x02,
219  QUERY_MSG = 0x03,
221  REPLY_MSG = 0x04,
227  QUERY_DATA = 0x07,
229  REPLY_DATA = 0x08,
235 
237 typedef enum {
245 
247 typedef enum {
249  LOCK_NORMAL = 0x00,
253  LOCK_ALARM = 0x02,
257 
259 typedef enum {
265  ALARM_UP = 0x02,
267  ALARM_DOWN = 0x03,
271 
272 typedef enum {
273  D20503_OM_AUTOMODE = 0,
274  D20503_OM_MANUAL_OVERRIDE = 1,
275 } D20503_OM_ENUM;
276 
277 typedef enum {
278  D20503_MS_NOT_AVAILABLE = 127,
279 } D20503_MS_ENUM;
280 
281 typedef enum {
282  D20503_ES_NO_ERROR = 0,
283  D20503_ES_CURRENT_KILL_ERROR__THIS_INDICATES_THE_MAXIMUM_CUR = 1,
284  D20503_ES_IGU_NOT_TINTING__THE_CONTROLLER_DETECTS_IF_THERE_V = 2,
285  D20503_ES_IGU_WARNING__THE_CONTROLLER_DETECTS_THAT_THE_IGU_I = 3,
286  D20503_ES_PARAMETER_ERROR__THE_CONTROLLER_DETECTS_AN_IGU_PAR = 4,
287  D20503_ES_SYSTEM_ERROR__OTHER_POTENTIAL_SYSTEM_ERRORS_THIS_W = 5,
288  D20503_ES_OPENING_MOTORIZED_ERROR__THE_MOTOR_MEETS_AN_ISSUE_ = 6,
289  D20503_ES_CLOSING_MOTORIZED_ERROR__THE_MOTOR_MEETS_AN_ISSUE_ = 7,
290 } D20503_ES_ENUM;
291 
292 typedef enum {
293  D205xx_ES_NO_ERROR = 0,
294  D205xx_ES_CURRENT_KILL_ERROR__THIS_INDICATES_THE_MAXIMUM_CUR = 1,
295  D205xx_ES_IGU_NOT_TINTING__THE_CONTROLLER_DETECTS_IF_THERE_V = 2,
296  D205xx_ES_IGU_WARNING__THE_CONTROLLER_DETECTS_THAT_THE_IGU_I = 3,
297  D205xx_ES_PARAMETER_ERROR__THE_CONTROLLER_DETECTS_AN_IGU_PAR = 4,
298  D205xx_ES_SYSTEM_ERROR__OTHER_POTENTIAL_SYSTEM_ERRORS_THIS_W = 5,
299  D205xx_ES_OPENING_MOTORIZED_ERROR__THE_MOTOR_MEETS_AN_ISSUE_ = 6,
300  D205xx_ES_CLOSING_MOTORIZED_ERROR__THE_MOTOR_MEETS_AN_ISSUE_ = 7,
301  D205xx_ES_FAN_1A_INCOMING_AIR_FAULTY = 8,
302  D205xx_ES_FAN_2A_OUTGOING_AIR_FAULTY = 9,
303  D205xx_ES_FAN_1B_INCOMING_AIR_FAULTY = 10,
304  D205xx_ES_FAN_2B_OUTGOING_AIR_FAULTY = 11,
305  D205xx_ES_TEMPERATURE_SENSOR_FAULTY = 12,
306  D205xx_ES_INTERNAL_COMMUNICATION_ERROR_TO_HOST = 13,
307 } D205xx_ES_ENUM;
308 
310 typedef enum {
311  D205xx_FROST_PROTECTION_STATE_NOT_ACTIVE = 0x00,
312  D205xx_FROST_PROTECTION_STATE_ACTIVE = 0x01,
314 
315 typedef enum {
316  D205XX_FAN_SPEED_NOCHANGE = 255,
317 } D205XX_FAN_SPEED_ENUM;
318 
319 typedef enum {
329 
330 class eoEEP_D205xx : public eoD2EEProfile {
331 private:
332  uint8_t cmd;
333 
334 public:
335  eoReturn SetType(uint8_t type);
336  eoReturn Parse(const eoMessage &msg);
341  eoEEP_D205xx(uint16_t size = 10);
342  virtual ~eoEEP_D205xx();
343 
344  virtual eoReturn GetValue(CHANNEL_TYPE type, uint32_t &value, uint8_t index);
345  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
346 
347  virtual eoReturn GetValue(CHANNEL_TYPE type, float &value, uint8_t index);
348  virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index);
354  virtual eoReturn SetLength(uint8_t type);
355  virtual eoReturn SetCommand(uint8_t cmd);
356 };
359 #endif // !defined(EA_259BDE62_FE41_490e_8B3E_427A72922C4A__INCLUDED_)
Set parameters command 5
Definition: eoEEP_D205xx.h:223
Stopped 0
Definition: eoEEP_D205xx.h:321
eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
Frost protection state.
Definition: eoEEP_D205xx.h:202
Go down (100%) 3
Definition: eoEEP_D205xx.h:267
Do not change / normal 0
Definition: eoEEP_D205xx.h:249
Indoor Temperature.
Definition: eoEEP_D205xx.h:190
eoReturn SetType(uint8_t type)
uint8_t type
Type.
Definition: eoProfile.h:69
Unknown 3
Definition: eoEEP_D205xx.h:327
quantity of (sun) light that can gothrough the glass
Definition: eoEEP_D205xx.h:180
Fan speed.
Definition: eoEEP_D205xx.h:208
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Immediate stop 1
Definition: eoEEP_D205xx.h:263
virtual eoReturn SetCommand(uint8_t cmd)
Set blockage mode / blockage mode 1
Definition: eoEEP_D205xx.h:251
Message Class for communication.
Definition: eoMessage.h:47
Reply command 4
Definition: eoEEP_D205xx.h:221
Set vertical duration flag 2
Definition: eoEEP_D205xx.h:174
Go up(0%) then to POS/ANG 1
Definition: eoEEP_D205xx.h:241
Down 2
Definition: eoEEP_D205xx.h:325
Go directly to POS/ANG 0
Definition: eoEEP_D205xx.h:239
D205_AET_ALARM_ENUM
Set alarm action enums for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:259
D205_CURRENT_RUN_ENUM
Definition: eoEEP_D205xx.h:319
The class to handle EEP D205 profiles.
Definition: eoEEP_D205xx.h:330
Query data 7
Definition: eoEEP_D205xx.h:227
D205_MESSAGE_ID_ENUM
Message IDs for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:213
eoEEP_D205xx(uint16_t size=10)
Open motorized window 6
Definition: eoEEP_D205xx.h:225
D205_INDEX_ENUM
Index enums for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:168
Operating days.
Definition: eoEEP_D205xx.h:200
virtual eoReturn SetLength(uint8_t type)
Go up (0%) 2
Definition: eoEEP_D205xx.h:265
Deblockage / - 7
Definition: eoEEP_D205xx.h:255
Query command 3
Definition: eoEEP_D205xx.h:219
Deblockage / - 7
Definition: eoEEP_D205xx.h:269
D205xx_FROST_PROTECTION_STATE_ENUM
State of frost protection enums for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:310
Outdoor Temperature.
Definition: eoEEP_D205xx.h:192
Go down(100%) then to POS/ANG 2
Definition: eoEEP_D205xx.h:243
No action 0
Definition: eoEEP_D205xx.h:261
Intrusion detected.
Definition: eoEEP_D205xx.h:186
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Set rotation duration flag 3
Definition: eoEEP_D205xx.h:176
D205_REPOSITIONING_ENUM
Repositioning enums for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:237
Window Control 9
Definition: eoEEP_D205xx.h:231
Motorized stash.
Definition: eoEEP_D205xx.h:178
EnOcean Equipment Profiles.
Definition: eoD2EEProfile.h:96
D205_LOCK_MODE_ENUM
Locking mode enums for D2-05-xx profiles.
Definition: eoEEP_D205xx.h:247
Current run state.
Definition: eoEEP_D205xx.h:204
Solar protection available.
Definition: eoEEP_D205xx.h:188
Window Control 9
Definition: eoEEP_D205xx.h:233
Goto command 1
Definition: eoEEP_D205xx.h:215
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
Filter remaining days.
Definition: eoEEP_D205xx.h:198
Stop command 2
Definition: eoEEP_D205xx.h:217
Current vertical position flag 0
Definition: eoEEP_D205xx.h:170
Locking sensor 2.
Definition: eoEEP_D205xx.h:184
Current rotation angle flag 1
Definition: eoEEP_D205xx.h:172
Locking sensor 1.
Definition: eoEEP_D205xx.h:182
Up 1
Definition: eoEEP_D205xx.h:323
Opening Mode.
Definition: eoEEP_D205xx.h:194
Locking mode.
Definition: eoEEP_D205xx.h:206
Reply data 8
Definition: eoEEP_D205xx.h:229
Set alarm mode / alarm mode 2
Definition: eoEEP_D205xx.h:253