EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_D202xx.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_D202_H__INCLUDED_)
29 #define eoEEP_D202_H__INCLUDED_
30 
33 #include "eoD2EEProfile.h"
79 typedef enum
81 {
87  ACTUATOR_SET = 0x03,
89  SENSOR_QUERY = 0x04
90 } VLD_COMMANDS;
91 
93 typedef enum
94 {
96  VLD_SELF_TEST = 0x00,
102  VLD_MAX_TIME = 0x03,
104  VLD_MIN_TIME = 0x04,
108  VLD_QUERY = 0x06
109 } VLD_INDEXS;
110 
112 typedef enum
113 {
115  NO_SMOKE = 0x00,
121  SMOKE_BOTH = 0x03
123 
125 typedef enum
126 {
128  QUERY_TEMP = 0x00,
136 
138 {
139 private:
140  uint8_t cmd;
141 
142 public:
143  eoReturn SetType(uint8_t type);
144  eoReturn Parse(const eoMessage &msg);
149  eoEEP_D202xx(uint16_t size = 10);
150  virtual ~eoEEP_D202xx();
151  virtual eoReturn GetValue(CHANNEL_TYPE type, uint32_t &value, uint8_t index);
152  virtual eoReturn GetValue(CHANNEL_TYPE type, float &value, uint8_t index);
153  virtual eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
154  virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index);
155  virtual eoReturn SetCommand(uint8_t cmd);
156 };
159 #endif // !defined(EA_259BDE62_FE41_490e_8B3E_427A72922C4A__INCLUDED_)
uint8_t type
Type.
Definition: eoProfile.h:69
Query illuminaion 1
Definition: eoEEP_D202xx.h:130
VLD_QUERY_STATUS
Query enums for D2-02-xx profiles.
Definition: eoEEP_D202xx.h:125
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Actuator Set Measurement 3
Definition: eoEEP_D202xx.h:87
Message Class for communication.
Definition: eoMessage.h:47
Self-test 0
Definition: eoEEP_D202xx.h:96
The class to handle EEP D202 profiles.
Definition: eoEEP_D202xx.h:137
Sensor Test/Trigger 2
Definition: eoEEP_D202xx.h:85
Smoke detected via optical chamber 2
Definition: eoEEP_D202xx.h:119
Query smoke 3
Definition: eoEEP_D202xx.h:134
eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
Query temperature 0
Definition: eoEEP_D202xx.h:128
Report measurement 2
Definition: eoEEP_D202xx.h:100
Query occupancy 2
Definition: eoEEP_D202xx.h:132
Minimum time between two subsequent actuator 4
Definition: eoEEP_D202xx.h:104
eoEEP_D202xx(uint16_t size=10)
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
EnOcean Equipment Profiles.
Definition: eoD2EEProfile.h:96
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
eoReturn SetType(uint8_t type)
VLD_SMOKE_DETECTION_ENUM
Smoke detection enums for D2-02-xx profiles.
Definition: eoEEP_D202xx.h:112
VLD_INDEXS
Index enums for D2-02-xx profiles.
Definition: eoEEP_D202xx.h:93
Sensor Measurementuery 4
Definition: eoEEP_D202xx.h:89
Smoke detection 5
Definition: eoEEP_D202xx.h:106
Trigger alarm 1
Definition: eoEEP_D202xx.h:98
Maximum time between two subsequent actuator 3
Definition: eoEEP_D202xx.h:102
virtual eoReturn SetCommand(uint8_t cmd)
Query 6
Definition: eoEEP_D202xx.h:108
No smoke detected 0
Definition: eoEEP_D202xx.h:115
Sensor Measurement 1
Definition: eoEEP_D202xx.h:83
Smoke detected via ionization chamber 1
Definition: eoEEP_D202xx.h:117
VLD_COMMANDS
Command enums for D2-02-xx profiles.
Definition: eoEEP_D202xx.h:80
Smoke detected via both chamber 3
Definition: eoEEP_D202xx.h:121