EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_A538xx.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_A538_H__INCLUDED_)
29 #define eoEEP_A538_H__INCLUDED_
30 
33 #include "eoA5EEProfile.h"
133 typedef enum
135 {
193  CC_RGB_RED = 0x1C,
195  CC_RGB_GREEN = 0x1D,
197  CC_RGB_BLUE = 0x1E,
207  CC_SCENE = 0x23,
210 } CC_INDEXS;
211 
213 typedef enum
214 {
216  MILI_W = 0x00,
218  W = 0x01,
220  KILO_W = 0x02,
222  MEGA_W = 0x03,
224  WH = 0x04,
226  KILO_WH = 0x05,
228  MEGA_WH = 0x06,
230  GIGA_WH = 0x07,
232  MILI_A = 0x08,
234  A_1_10 = 0x09,
236  MILI_V = 0x0A,
238  V_1_10 = 0x0B
240 
242 typedef enum
243 {
253 
255 typedef enum
256 {
258  DO_NOTHING = 0x00,
260  STOP_BLIND = 0x01,
262  OPEN_BLIND = 0x02,
264  CLOSE_BLIND = 0x03,
266  DRIVE_TO_POS = 0x04,
274  SET_ANGLE = 0x08,
276  SET_MIN_MAX = 0x09,
281 } CC_FUNCTIONS;
282 
284 typedef enum
285 {
313 
315 typedef enum
316 {
328 
330 typedef enum
331 {
339 
341 typedef enum
342 {
344  CC_AUTO = 0,
350  CC_OFF = 3
352 
354 {
355 private:
356  uint8_t cmd;
357  void SetFunctionCode(uint8_t FunctionCode);
358 
359 public:
360  eoEEP_A538xx();
361  virtual ~eoEEP_A538xx();
362 
363  eoReturn SetType(uint8_t type);
364 
365  virtual eoReturn GetValue(CHANNEL_TYPE type, uint32_t &value, uint8_t index);
366  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
367  virtual eoReturn GetValue(CHANNEL_TYPE type, float &value, uint8_t index);
368  virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index);
369  virtual void ClearValues();
375  eoReturn SetCommand(uint8_t cmd);
376 
377  eoReturn Parse(const eoMessage &m);
378 
379  };
382 #endif // !defined(EA_259BDE62_FE41_490e_8B3E_427A72922C4A__INCLUDED_)
Sunblind reversion time 18
Definition: eoEEP_A538xx.h:173
Locking switch off commands 2
Definition: eoEEP_A538xx.h:249
EnOcean Equipment Profiles.
Definition: eoA5EEProfile.h:85
Set RGB values 7
Definition: eoEEP_A538xx.h:301
MWh 6
Definition: eoEEP_A538xx.h:228
Set runtime parameter (open) 16
Definition: eoEEP_A538xx.h:169
Dimming down with ramping time 4
Definition: eoEEP_A538xx.h:295
Energy metering value 36
Definition: eoEEP_A538xx.h:209
GWh 7
Definition: eoEEP_A538xx.h:230
Stage 0 0
Definition: eoEEP_A538xx.h:318
Blind drives to position with angle value 4
Definition: eoEEP_A538xx.h:266
Dimming up with ramping time 3
Definition: eoEEP_A538xx.h:293
Blind opens for time (angle value) 13
Definition: eoEEP_A538xx.h:163
eoReturn SetType(uint8_t type)
Controller state 5
Definition: eoEEP_A538xx.h:147
Stage 2 2
Definition: eoEEP_A538xx.h:322
uint8_t type
Type.
Definition: eoProfile.h:69
CC_LOCKING_OPERATIONS
Locking operation enums for A5-38-xx profiles.
Definition: eoEEP_A538xx.h:242
mA 8
Definition: eoEEP_A538xx.h:232
Occupied 0
Definition: eoEEP_A538xx.h:333
Delay or duration 1
Definition: eoEEP_A538xx.h:139
Automatic mode 0
Definition: eoEEP_A538xx.h:344
The class to handle EEP a538 profiles.
Definition: eoEEP_A538xx.h:353
Store final value 4
Definition: eoEEP_A538xx.h:145
CC_CONTROLLER_MODE
Controller mode enums for A5-38-xx profile.
Definition: eoEEP_A538xx.h:341
CC_INDEXS
Index enums for A5-38-xx profiles.
Definition: eoEEP_A538xx.h:134
Blind opens 2
Definition: eoEEP_A538xx.h:262
Message Class for communication.
Definition: eoMessage.h:47
Blind stops 1
Definition: eoEEP_A538xx.h:260
Off 3
Definition: eoEEP_A538xx.h:350
Locking switch on commands 1
Definition: eoEEP_A538xx.h:247
Blind closes for time (posititon value) and angle (angle value) 6
Definition: eoEEP_A538xx.h:270
W 1
Definition: eoEEP_A538xx.h:218
Do nothing, status request 0
Definition: eoEEP_A538xx.h:287
Set minimal and maximal dimmer value 9
Definition: eoEEP_A538xx.h:305
Minimum dimming value 31
Definition: eoEEP_A538xx.h:199
Set slut angle for fully shut position 21
Definition: eoEEP_A538xx.h:179
Set minimum position 19
Definition: eoEEP_A538xx.h:175
CC_FAN_SPEED_5_STAGE
Fan stage enums for A5-38-xx profile.
Definition: eoEEP_A538xx.h:315
Blind closes for time (angle value) 15
Definition: eoEEP_A538xx.h:167
Set the operating hours of the lamp 10
Definition: eoEEP_A538xx.h:307
Set min, max values 9
Definition: eoEEP_A538xx.h:276
1/10 V 11
Definition: eoEEP_A538xx.h:238
CC_FUNCTIONS
Function enums for A5-38-08 profile (command 0x07)
Definition: eoEEP_A538xx.h:255
Heating 1
Definition: eoEEP_A538xx.h:346
Scene function 35
Definition: eoEEP_A538xx.h:207
RGB green 29
Definition: eoEEP_A538xx.h:195
CC_FUNCTIONS_TYPE_09
Function enums for A5-38-09 profile.
Definition: eoEEP_A538xx.h:284
Set slut angle for fully open position 22
Definition: eoEEP_A538xx.h:181
Wh 4
Definition: eoEEP_A538xx.h:224
eoReturn SetCommand(uint8_t cmd)
Do nothing, status request 0
Definition: eoEEP_A538xx.h:258
Scene number 34
Definition: eoEEP_A538xx.h:205
Set position logic 11
Definition: eoEEP_A538xx.h:280
Lamp operating hours 33
Definition: eoEEP_A538xx.h:203
Swithced off 1
Definition: eoEEP_A538xx.h:289
Blind opens for time (position value) 12
Definition: eoEEP_A538xx.h:161
Dimming stops 5
Definition: eoEEP_A538xx.h:297
Position logic 23
Definition: eoEEP_A538xx.h:183
Switching commanf 2
Definition: eoEEP_A538xx.h:141
Dimming range 3
Definition: eoEEP_A538xx.h:143
Set a new value for the energy metering 12
Definition: eoEEP_A538xx.h:311
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Blind position 10
Definition: eoEEP_A538xx.h:157
Set runtime parameters 7
Definition: eoEEP_A538xx.h:272
Position and Angle flag 8
Definition: eoEEP_A538xx.h:153
Locking local operations 11
Definition: eoEEP_A538xx.h:309
Locking local operations 3
Definition: eoEEP_A538xx.h:251
Cooling 2
Definition: eoEEP_A538xx.h:348
Set slat angle for shut and open position 10
Definition: eoEEP_A538xx.h:278
MW 3
Definition: eoEEP_A538xx.h:222
Set angle configuration 8
Definition: eoEEP_A538xx.h:274
eoReturn Parse(const eoMessage &m)
Parses a msg using learned in Profile from Device.
Blind closes 3
Definition: eoEEP_A538xx.h:264
RGB blue 30
Definition: eoEEP_A538xx.h:197
CC_ROOM_OCCUPANCY
Room occupancy enums for A5-38-xx profile.
Definition: eoEEP_A538xx.h:330
Set ramping up time 25
Definition: eoEEP_A538xx.h:187
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
Set ramping down time 26
Definition: eoEEP_A538xx.h:189
Stage 1 1
Definition: eoEEP_A538xx.h:320
Service mode flag 9
Definition: eoEEP_A538xx.h:155
Unlock local operations 0
Definition: eoEEP_A538xx.h:245
1/10 A 9
Definition: eoEEP_A538xx.h:234
Set dimming value 24
Definition: eoEEP_A538xx.h:185
Set maximum position 20
Definition: eoEEP_A538xx.h:177
mV 10
Definition: eoEEP_A538xx.h:236
Lock/Unlock 0
Definition: eoEEP_A538xx.h:137
Stage 3 3
Definition: eoEEP_A538xx.h:324
Set runtime parameter (close) 17
Definition: eoEEP_A538xx.h:171
Energy hold-off 6
Definition: eoEEP_A538xx.h:149
Stage Auto 255
Definition: eoEEP_A538xx.h:326
mW 0
Definition: eoEEP_A538xx.h:216
StandBy 2
Definition: eoEEP_A538xx.h:337
Set dimemr value and ramping time 6
Definition: eoEEP_A538xx.h:299
Scene function 8
Definition: eoEEP_A538xx.h:303
Blind closes for time (position value) 14
Definition: eoEEP_A538xx.h:165
kW 2
Definition: eoEEP_A538xx.h:220
Maximum dimming value 32
Definition: eoEEP_A538xx.h:201
Set ramping time 27
Definition: eoEEP_A538xx.h:191
Blind angle position 11
Definition: eoEEP_A538xx.h:159
CC_ENERGY_UNITS
Energy unit enums for A5-38-xx profiles.
Definition: eoEEP_A538xx.h:213
kWh 5
Definition: eoEEP_A538xx.h:226
virtual void ClearValues()
Send status flag 7
Definition: eoEEP_A538xx.h:151
Unoccupied 1
Definition: eoEEP_A538xx.h:335
Swithced on 2
Definition: eoEEP_A538xx.h:291
RGB red 28
Definition: eoEEP_A538xx.h:193
Blind opens for time (position value) and angle (angle value) 5
Definition: eoEEP_A538xx.h:268