EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_D206xx.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_D20601_H__INCLUDED_)
29 #define eoEEP_D20601_H__INCLUDED_
30 
33 #include "eoD2EEProfile.h"
107 typedef enum
109 {
117  WINDOW_STATE = 0x03,
119  BUTTON_1 = 0x04,
121  BUTTON_2 = 0x05,
123  MOTION = 0x06,
127  HANDLE_CLICK = 0x08,
135  POWER_ONS = 0x0C,
137  ALARMS = 0x0D,
145  WINDOW_TILTS = 0x11,
151 
153 typedef enum
154 {
170 
171 
172 typedef enum
173 {
174  D206_ALIVE_MESSAGE = 0x01,
175  D206_WINDOW_STATE = 0x02,
176  D206_CHANGE_BATTERY = 0x03,
177  D206_MOTION_SENSOR_ERROR = 0x04,
178  D206_ACCLERATION_SENSOR_ERROR = 0x05,
179  D206_MAGNETIC_SENSOR_ERROR = 0x06,
180  D206_SYSTEM_ERROR = 0x07,
181  D206_CALIBRATION_STATUS = 0x08,
182  D206_NEXT_CALIBRATION= 0x09,
183 } D20605_INDEX_ENUM;
184 
185 typedef enum
186 {
187  D20605_STATUS_OK = 0,
188  D20605_STATUS_ERROR = 1,
189  D20605_STATUS_NOT_SUPPORTED = 2,
190  D20605_STATUS_INVALID = 2,
191 } D20605_STATUS;
192 typedef enum
193 {
194  D20605_BATTERY_OK = 0,
195  D20605_BATTERY_CHANGE = 1,
196 } D20605_BATTERY_STATE;
197 typedef enum
198 {
199  D20605_STATUS_MESSAGE = 0,
200  D20605_ALIVE_CYCLE_MESSAGE = 0x01,
201 } D20605_ALIVE_MESSAGE;
202 typedef enum
203 {
204  D20605_WINDOW_NONE = 0,
205  D20605_SASH_CLOSED_WINDOWHANDLER_CLOSED = 0x01,
206  D20605_SASH_CLOSED_WINDOWHANDLER_OPEN = 0x02,
207  D20605_SASH_OPEN_WINDOWHANDLER_TILTED = 0x03,
208  D20605_SASH_OPEN_WINDOWHANDLER_CLOSED = 0x04,
209  D20605_SASH_OPEN_WINDOWHANDLER_OPEN = 0x05,
210  D20605_SASH_OPEN_WINDOWHANDLER_TITLED = 0x06,
211  D20605_SASH_TITLED_WINDOWHANDLER_CLOSED = 0x07,
212  D20605_SASH_TITLED_WINDOWHANDLER_OPEN = 0x08,
213  D20605_SASH_TITLED_WINDOWHANDLER_TITLED = 0x09,
214 } D20605_WINDOW_STATE;
215 
216 typedef enum
217 {
218  CAL_NO_NEXT_STEP = 0x00,
219  CAL_SASH_CLOSED_WINDOWHANDLER_CLOSED = 0x01,
220  CAL_SASH_CLOSED_WINDOWHANDLER_OPEN = 0x02,
221  CAL_SASH_OPEN_WINDOWHANDLER_TILTED = 0x03,
222  CAL_SASH_OPEN_WINDOWHANDLER_CLOSED = 0x04,
223  CAL_SASH_OPEN_WINDOWHANDLER_OPEN = 0x05,
224  CAL_SASH_OPEN_WINDOWHANDLER_TITLED = 0x06,
225  CAL_SASH_TITLED_WINDOWHANDLER_CLOSED = 0x07,
226  CAL_SASH_TITLED_WINDOWHANDLER_OPEN = 0x08,
227  CAL_SASH_TITLED_WINDOWHANDLER_TITLED = 0x09,
228  CAL_FRAME_MAGNET_VALIDATION = 0x0A,
229 } D20605_NEXT_CALIBRATION_STEP;
231 {
232 private:
233  uint8_t cmd;
234 
235 public:
236  eoReturn SetType(uint8_t type);
237  eoReturn Parse(const eoMessage &msg);
242  eoEEP_D20601(uint16_t size = 10);
243  virtual ~eoEEP_D20601();
244  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
245  virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index);
246 
252  virtual eoReturn SetLength (uint8_t cmd);
253  virtual eoReturn SetCommand(uint8_t cmd);
254 };
284 typedef enum
286 {
294 
295 class eoEEP_D20650 :
296  public eoD2EEProfile
297 {
298 private:
299  uint8_t cmd;
300 
301 public:
302  eoReturn SetType(uint8_t type);
303  eoReturn Parse(const eoMessage &msg);
308  eoEEP_D20650(uint16_t size = 10);
309  virtual ~eoEEP_D20650();
315  virtual eoReturn SetLength(uint8_t cmd);
316  virtual eoReturn SetCommand(uint8_t cmd);
317 
318  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
319 };
320 
321 
324 #endif // !defined(EA_259BDE62_FE41_490e_8B3E_427A72922C4A__INCLUDED_)
Handled Closed Click 8
Definition: eoEEP_D206xx.h:127
Sensor Values 0
Definition: eoEEP_D206xx.h:288
Sensor Update Interval 10
Definition: eoEEP_D206xx.h:131
Configuration Report 1
Definition: eoEEP_D206xx.h:290
uint8_t type
Type.
Definition: eoProfile.h:69
Vacation Mode 7
Definition: eoEEP_D206xx.h:125
eoEEP_D20601(uint16_t size=10)
Handle Movements Opened 15
Definition: eoEEP_D206xx.h:141
D20650_MSG_TYPE_ENUM
Message type enums for D2-06-50 profiles.
Definition: eoEEP_D206xx.h:285
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Window State 3
Definition: eoEEP_D206xx.h:117
Configuration Report 1
Definition: eoEEP_D206xx.h:292
Message Class for communication.
Definition: eoMessage.h:47
Handle Movements Tilted 16
Definition: eoEEP_D206xx.h:143
Log Data 01 2
Definition: eoEEP_D206xx.h:160
Battery Low Click 9
Definition: eoEEP_D206xx.h:129
Start Transmission of Log Data Packets 19
Definition: eoEEP_D206xx.h:149
Log Data 03 4
Definition: eoEEP_D206xx.h:164
Vacation Blink Interval 11
Definition: eoEEP_D206xx.h:133
The class to handle EEP D20601 profile.
Definition: eoEEP_D206xx.h:230
Sensor Values 0
Definition: eoEEP_D206xx.h:156
Alarms 13
Definition: eoEEP_D206xx.h:137
Configuration Report 1
Definition: eoEEP_D206xx.h:158
Start Transmission of Configuration Settings 18
Definition: eoEEP_D206xx.h:147
Burglary Alarm 0
Definition: eoEEP_D206xx.h:111
Control and Settings 6
Definition: eoEEP_D206xx.h:168
Handle Position 2
Definition: eoEEP_D206xx.h:115
Power Ons 12
Definition: eoEEP_D206xx.h:135
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Motion 6
Definition: eoEEP_D206xx.h:123
virtual eoReturn SetLength(uint8_t cmd)
Window Tilts 17
Definition: eoEEP_D206xx.h:145
EnOcean Equipment Profiles.
Definition: eoD2EEProfile.h:96
Log Data 04 5
Definition: eoEEP_D206xx.h:166
Protection Plus Alarm 1
Definition: eoEEP_D206xx.h:113
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
Button 1 4
Definition: eoEEP_D206xx.h:119
D206_INDEX_ENUM
Index enums for D2-06-xx profiles.
Definition: eoEEP_D206xx.h:108
eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
virtual eoReturn SetCommand(uint8_t cmd)
Handle Movements Closed 14
Definition: eoEEP_D206xx.h:139
Log Data 02 3
Definition: eoEEP_D206xx.h:162
Button 2 5
Definition: eoEEP_D206xx.h:121
D206_MSG_TYPE_ENUM
Message type enums for D2-06-xx profiles.
Definition: eoEEP_D206xx.h:153
eoReturn SetType(uint8_t type)