EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_D201xx.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_D201_H__INCLUDED_)
29 #define eoEEP_D201_H__INCLUDED_
30 
33 #include "eoD2EEProfile.h"
181 typedef enum
183 {
216 } COMMANDS;
217 
219 typedef enum
220 {
238  QUERY = 0x08,
240  PWR_FAILURE = 0x09,
246  EXT_PUSH_BTN = 0x0C,
255 
257 
259 typedef enum
260 {
262  DIMMING_SLOW = 0x00,
266  DIMMING_FAST = 0x02,
268  MAX_SUB_TIME = 0x03,
272 
274 typedef enum
275 {
277  ENERGY_WS = 0x00,
279  ENERGY_WH = 0x01,
281  ENERGY_KWH = 0x02,
283  POWER_W = 0x03,
285  POWER_KW = 0x04
286 } VLD_UNITS;
287 
289 typedef enum
290 {
300  DIM_STOP = 0x04
301 } VLD_DIM_VALUE;
302 
304 typedef enum
305 {
307  HARDWARE_OK = 0x00,
313 
315 typedef enum
316 {
318  STATE_OFF = 0x00,
320  STATE_ON = 0x01,
322  PREV_STATE = 0x02
324 
326 typedef enum
327 {
333 
335 typedef enum
336 {
350 
352 typedef enum
353 {
363 
364 
365 typedef enum
366 {
367  CMD_NORMAL = 0x00,
368  CMD_EXTENDED = 0x01,
369 } CMD_TYPE;
370 
372 {
373 private:
374  uint8_t cmd;
375 
376 public:
377  eoReturn SetType(uint8_t type);
378  eoReturn Parse(const eoMessage &msg);
383  eoEEP_D201xx(uint16_t size = 10);
384  virtual ~eoEEP_D201xx();
385  virtual eoReturn GetValue(CHANNEL_TYPE type, uint32_t &value, uint8_t index);
386 
387  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
388  virtual eoReturn GetValue(CHANNEL_TYPE type, float &value, uint8_t index);
389  virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index);
390 
396  virtual eoReturn SetLength (uint8_t type);
397  virtual eoReturn SetCommand(uint8_t cmd);
398 };
401 #endif // !defined(EA_259BDE62_FE41_490e_8B3E_427A72922C4A__INCLUDED_)
Eco 2
Definition: eoEEP_D201xx.h:342
Actuator Measurement Response 7
Definition: eoEEP_D201xx.h:197
Maximum time between two subsequent actuator 3
Definition: eoEEP_D201xx.h:268
Actuator Dimming Limits Response
Definition: eoEEP_D201xx.h:215
Auto detect 3
Definition: eoEEP_D201xx.h:361
eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
Dimming timer slow 0
Definition: eoEEP_D201xx.h:262
Taught-in devices 0
Definition: eoEEP_D201xx.h:222
Actuator Pilot Wire Mode Response 10
Definition: eoEEP_D201xx.h:203
Maximum Dim Value
Definition: eoEEP_D201xx.h:252
Actuator Set Dimming Limits, uses extended Commands
Definition: eoEEP_D201xx.h:211
Defaulst state OFF or 0% 0
Definition: eoEEP_D201xx.h:318
uint8_t type
Type.
Definition: eoProfile.h:69
Dim to new output value - medium 2
Definition: eoEEP_D201xx.h:296
Report measurement 5
Definition: eoEEP_D201xx.h:232
Power failure 9
Definition: eoEEP_D201xx.h:240
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
SDim to new output value - slow 3
Definition: eoEEP_D201xx.h:298
Message Class for communication.
Definition: eoMessage.h:47
Maximum Dim Value
Definition: eoEEP_D201xx.h:254
Actuator External Interface Settings Query 12
Definition: eoEEP_D201xx.h:207
Defaulst state remember previous state 2
Definition: eoEEP_D201xx.h:322
Actuator Status Query 3
Definition: eoEEP_D201xx.h:189
Delay Off Timer 11
Definition: eoEEP_D201xx.h:244
Comfort 1 4
Definition: eoEEP_D201xx.h:346
The class to handle EEP D201 profiles.
Definition: eoEEP_D201xx.h:371
Not applicable 0
Definition: eoEEP_D201xx.h:355
Actuator External Interface Settings Response 13
Definition: eoEEP_D201xx.h:209
Over current shut down 1
Definition: eoEEP_D201xx.h:224
2-state Switch 13
Definition: eoEEP_D201xx.h:248
Reset measurement 6
Definition: eoEEP_D201xx.h:234
Dim to new output value - fast 1
Definition: eoEEP_D201xx.h:294
Actuator Status Response 4
Definition: eoEEP_D201xx.h:191
Hardware failure 2
Definition: eoEEP_D201xx.h:311
VLD_ON_OFF_INDEX
Index enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:219
Energy in kWh 2
Definition: eoEEP_D201xx.h:281
Off 0
Definition: eoEEP_D201xx.h:338
Actuator Set Local 2
Definition: eoEEP_D201xx.h:187
Dimming timer fast 2
Definition: eoEEP_D201xx.h:266
Measurement mode 7
Definition: eoEEP_D201xx.h:236
Comfort 1
Definition: eoEEP_D201xx.h:340
VLD_PILOTWIRE_MODE
Pilotwire mode enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:335
Local control 3
Definition: eoEEP_D201xx.h:228
Actuator Measurement Query 6
Definition: eoEEP_D201xx.h:195
VLD_ERROR_LEVEL
Error level enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:304
Power in W 3
Definition: eoEEP_D201xx.h:283
Stop dimming 4
Definition: eoEEP_D201xx.h:300
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
eoReturn SetType(uint8_t type)
User interface indication 4
Definition: eoEEP_D201xx.h:230
Actuator Set External Interface Settings 11
Definition: eoEEP_D201xx.h:205
VLD_DEFAULT_STATE
Default state enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:315
Actuator Query Dimming Limits
Definition: eoEEP_D201xx.h:213
EnOcean Equipment Profiles.
Definition: eoD2EEProfile.h:96
Energy in Ws 0
Definition: eoEEP_D201xx.h:277
External push button 2
Definition: eoEEP_D201xx.h:359
VLD_EXT_BTN_CHANNEL
External Switch/Push Button enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:352
Switch to new output value 0
Definition: eoEEP_D201xx.h:292
Auto Off Timer 10
Definition: eoEEP_D201xx.h:242
Anti-freeze 3
Definition: eoEEP_D201xx.h:344
Defaulst state ON or 100% 1
Definition: eoEEP_D201xx.h:320
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
Minimum time between two subsequent actuator 4
Definition: eoEEP_D201xx.h:270
Default State 14
Definition: eoEEP_D201xx.h:250
Reset over current shut down 2
Definition: eoEEP_D201xx.h:226
Actuator Set Measurement 5
Definition: eoEEP_D201xx.h:193
Power in kW 4
Definition: eoEEP_D201xx.h:285
Hardware warning 1
Definition: eoEEP_D201xx.h:309
Hardware OK 0
Definition: eoEEP_D201xx.h:307
Query 8
Definition: eoEEP_D201xx.h:238
Actuator Set Pilot Wire Mode 8
Definition: eoEEP_D201xx.h:199
External switch 1
Definition: eoEEP_D201xx.h:357
Actuator Pilot Wire Mode Query 9
Definition: eoEEP_D201xx.h:201
VLD_DIM_VALUE
Dim enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:289
VLD_UNITS
Unit enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:274
Input channel (from mains only) 1
Definition: eoEEP_D201xx.h:331
Actuator Set Output 1
Definition: eoEEP_D201xx.h:185
virtual eoReturn SetLength(uint8_t type)
External Switch/Push Button 12
Definition: eoEEP_D201xx.h:246
VLD_TIME_INDEX
Time index enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:259
eoEEP_D201xx(uint16_t size=10)
All output channels supported by the device 0
Definition: eoEEP_D201xx.h:329
Energy in Wh 1
Definition: eoEEP_D201xx.h:279
virtual eoReturn SetCommand(uint8_t cmd)
Comfort 2 5
Definition: eoEEP_D201xx.h:348
COMMANDS
Command enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:182
VLD_IO_CHANNEL
I/O channel enums for D2-01-xx profiles.
Definition: eoEEP_D201xx.h:326
Dimming timer medium 1
Definition: eoEEP_D201xx.h:264