EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoConverter.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 
33 #if !defined(_EOCONVERTER_H_)
34 #define _EOCONVERTER_H_
35 
36 #include "eoHalTypes.h"
37 #include "eoMessage.h"
38 #include "eoReManMessage.h"
39 #include "eoTelegram.h"
40 #include "eoTelegramERP2.h"
41 #include "eoPacket.h"
42 #include "eoApiDef.h"
43 
49 {
50 public:
57  static eoReturn radioToPacket(const eoTelegram &tel, eoPacket &packet);
64  static eoReturn radioToPacket(const eoMessage &msg, eoPacket &packet);
71  static eoReturn packetToAdvancedRadio(const eoMessage &msg, eoPacket &packet);
79  static eoReturn packetToRadio(const eoPacket &packet, eoTelegram &tel);
87  static eoReturn advancedPacketToRadio(const eoPacket &packet, eoTelegram &tel);
94  static eoReturn advancedPacketToRadio(const eoPacket &packet, eoTelegramERP2 &tel);
101  static uint8_t TigrisToRPS(eoTelegram &inTel, eoTelegram &outTel);
107  static const char * NumToHex(uint8_t num);
113  static uint32_t Hash(char const * str);
120  static eoReturn packetToReman(const eoPacket &packet, eoReManMessage &reManMes);
127  static eoReturn remanToPacket(const eoReManMessage &reManMes, eoPacket &packet);
134  static eoReturn packetToMessageType(const eoPacket &packet, eoMessage &message);
141  static eoReturn messageTypeToPacket(const eoMessage &message, eoPacket &packet);
147  static eoReturn fahrenheitToCelsius(float &value);
153  static eoReturn celsiusToFahrenheit(float &value);
159  static eoReturn literToMeter3(float &value);
165  static eoReturn meter3ToLiter(float &value);
166 };
167 
168 #endif /* _EOCONVERTER_H_ */
contains Dolphin API Definitions
static eoReturn celsiusToFahrenheit(float &value)
static eoReturn messageTypeToPacket(const eoMessage &message, eoPacket &packet)
every Communication from an EnOcean Device to another one consist out of one more Telegrams...
Definition: eoTelegram.h:43
static eoReturn packetToAdvancedRadio(const eoMessage &msg, eoPacket &packet)
Message Class for communication.
Definition: eoMessage.h:47
static eoReturn advancedPacketToRadio(const eoPacket &packet, eoTelegram &tel)
every Communication from an EnOcean Device to another one consist out of one more Telegrams...
Definition: eoTelegramERP2.h:56
static eoReturn packetToRadio(const eoPacket &packet, eoTelegram &tel)
static eoReturn fahrenheitToCelsius(float &value)
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
static eoReturn radioToPacket(const eoTelegram &tel, eoPacket &packet)
static eoReturn meter3ToLiter(float &value)
static uint8_t TigrisToRPS(eoTelegram &inTel, eoTelegram &outTel)
static const char * NumToHex(uint8_t num)
static eoReturn literToMeter3(float &value)
Class which contains a Packet.
Definition: eoPacket.h:43
Definition: eoReManMessage.h:43
static eoReturn packetToReman(const eoPacket &packet, eoReManMessage &reManMes)
static uint32_t Hash(char const *str)
contains static Helper Functions
Definition: eoConverter.h:48
static eoReturn remanToPacket(const eoReManMessage &reManMes, eoPacket &packet)
static eoReturn packetToMessageType(const eoPacket &packet, eoMessage &message)