EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoA5EEProfile.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 #ifndef EOA5EEPROFILE_H_
29 #define EOA5EEPROFILE_H_
30 
36 #include "eoEEProfile.h"
37 #include "eoApiDef.h"
39 typedef enum
40 {
42  STAGE_3 = 0,
44  STAGE_2 = 1,
46  STAGE_1 = 2,
48  STAGE_0 = 3,
51 
53 
55 typedef enum
56 {
60  SPEED_0 = 1,
62  SPEED_1 = 2,
64  SPEED_2 = 3,
66  SPEED_3 = 4,
68  SPEED_4 = 5,
70  SPEED_5 = 6,
73 
75 
76 
77 
86 {
87 public:
92  eoA5EEProfile(uint16_t size = 4);
93  virtual ~eoA5EEProfile();
94 
95  virtual eoReturn Create(eoMessage &m);
96  virtual eoReturn CreateTeachIN(eoMessage &m);
97  virtual eoReturn Parse(const eoMessage &msg);
103  bool Is4BSData(const eoMessage &m);
104 
105  bool IsSecDData(const eoMessage &m);
106 };
109 #endif /* EOEEPPROFILE_H_ */
Speed 3 4
Definition: eoA5EEProfile.h:66
virtual eoReturn CreateTeachIN(eoMessage &m)
Generates an EEP Telegram(only not chained supported!!1)
contains Dolphin API Definitions
EnOcean Equipment Profiles.
Definition: eoA5EEProfile.h:85
Stage 1 165..189
Definition: eoA5EEProfile.h:46
Speed 5 6
Definition: eoA5EEProfile.h:70
Speed 4 5
Definition: eoA5EEProfile.h:68
eoA5EEProfile(uint16_t size=4)
bool IsSecDData(const eoMessage &m)
Speed 2 3
Definition: eoA5EEProfile.h:64
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Profile base class for Enocean Equipment Profiles.
Message Class for communication.
Definition: eoMessage.h:47
ENUM_FAN_SPEED_7STAGE
Fan Speed for 7 Stages ie A5-10-18.
Definition: eoA5EEProfile.h:55
Stage 3 0..144
Definition: eoA5EEProfile.h:42
base class for EEProfile parsing
Definition: eoEEProfile.h:50
Speed Off 7
Definition: eoA5EEProfile.h:72
Stage 0 190..209
Definition: eoA5EEProfile.h:48
Speed 1 2
Definition: eoA5EEProfile.h:62
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Speed 0 1
Definition: eoA5EEProfile.h:60
Stage Auto210..255
Definition: eoA5EEProfile.h:50
Stage 2 145..164
Definition: eoA5EEProfile.h:44
Stage Auto 0
Definition: eoA5EEProfile.h:58
bool Is4BSData(const eoMessage &m)
ENUM_FAN_SPEED_5STAGE
Fan Speed for 5 Stages ie A5-10-01.
Definition: eoA5EEProfile.h:39
virtual eoReturn Create(eoMessage &m)
Generates an EEP Message.
virtual eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.