EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoEEP_A509xx.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_A509_H__INCLUDED_)
29 #define eoEEP_A509_H__INCLUDED_
30 
33 #include "eoA5EEProfile.h"
118 typedef enum
120 {
122  PM10 = 0x00,
124  PM2_5 = 0x01,
126  PM1 = 0x02
128 
130 typedef enum
131 {
133  USV_H = 0x00,
135  CPM = 0x01,
137  BQ_L = 0x02,
139  BQ_KG = 0x03
141 
143 typedef enum
144 {
150 
152 typedef enum
153 {
159 
161 typedef enum
162 {
163  VOC_TOTAL = 0,
164  VOC_FORMALDEHYDE = 1,
165  VOC_BENZENE = 2,
166  VOC_STYRENE = 3,
167  VOC_TOLUENE = 4,
168  VOC_TETRACHLOROETHYLENE = 5,
169  VOC_XYLENE = 6,
170  VOC_N_HEXANE = 7,
171  VOC_N_OCTANE = 8,
172  VOC_CYCLOPENTANE = 9,
173  VOC_METHANOL = 10,
174  VOC_ETHANOL = 11,
175  VOC_1_PENTANOL = 12,
176  VOC_ACETONE = 13,
177  VOC_ETHYLENE_OXIDE = 14,
178  VOC_ACETALDEHYDE_UE = 15,
179  VOC_ACETIC_ACID = 16,
180  VOC_PROPIONICE_ACID = 17,
181  VOC_VALERIC_ACID = 18,
182  VOC_BUTYRIC_ACID = 19,
183  VOC_AMMONIAC = 20,
184  VOC_HYDROGEN_SULFIDE = 22,
185  VOC_DIMETHYLSULFIDE = 23,
186  VOC_2_BUTANOL = 24,
187  VOC_2_METHYLPROPANOL = 25,
188  VOC_DIETHYL_ETHER = 26,
189  VOC_INDEX = 27,
190  VOC_OZONE = 255
191 
192 } ENUM_VOC;
193 
195 {
196 private:
197  eoReturn checkVOC(uint8_t value);
198 
199 public:
200  eoReturn SetType(uint8_t type);
201  eoEEP_A509xx();
202  virtual ~eoEEP_A509xx();
203 
204  eoReturn GetValue(CHANNEL_TYPE type, float &value,uint8_t index = 0);
205  eoReturn SetValue(CHANNEL_TYPE type, float value,uint8_t index = 0);
206  eoReturn GetValue(CHANNEL_TYPE type, uint32_t &value, uint8_t index);
207  eoReturn SetValue(CHANNEL_TYPE type, uint32_t value, uint8_t index);
208 
209 };
210 
211 #endif
EnOcean Equipment Profiles.
Definition: eoA5EEProfile.h:85
Bq/kg 2
Definition: eoEEP_A509xx.h:139
The class to handle EEP a509 profiles.
Definition: eoEEP_A509xx.h:194
ENUM_PARTICLES_SIZE
Particle size in A5-09-07 profile.
Definition: eoEEP_A509xx.h:119
uint8_t type
Type.
Definition: eoProfile.h:69
Particles 1 2
Definition: eoEEP_A509xx.h:126
ENUM_VOC
VOC (Volatile organic compound) Enum definition for a5-09-05.
Definition: eoEEP_A509xx.h:161
ENUM_RADIATION_UNIT
The unit of the radiation level in A5-09-0A profile.
Definition: eoEEP_A509xx.h:130
Particles 10 0
Definition: eoEEP_A509xx.h:122
Particles 2.5 1
Definition: eoEEP_A509xx.h:124
eoReturn GetValue(CHANNEL_TYPE type, float &value, uint8_t index=0)
Gets the Value as Floating point.
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Power failure detected 1
Definition: eoEEP_A509xx.h:157
Cpm 1
Definition: eoEEP_A509xx.h:135
eoReturn SetType(uint8_t type)
eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t index=0)
Gets the Value as a float.
ENUM_CONCENTRATION_UNIT
The unit of the concentration in A5-09-0C profile.
Definition: eoEEP_A509xx.h:143
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
Bq/L 2
Definition: eoEEP_A509xx.h:137
uSv/h 0
Definition: eoEEP_A509xx.h:133
ENUM_POWER_FAILURE_DETECTION
Power failure detection.
Definition: eoEEP_A509xx.h:152
Power failure not detected 0
Definition: eoEEP_A509xx.h:155
ppb 0
Definition: eoEEP_A509xx.h:146
ug/m3 1
Definition: eoEEP_A509xx.h:148