EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoConverter Class Reference

contains static Helper Functions More...

#include <eoConverter.h>

Static Public Member Functions

static eoReturn radioToPacket (const eoTelegram &tel, eoPacket &packet)
 
static eoReturn radioToPacket (const eoMessage &msg, eoPacket &packet)
 
static eoReturn packetToAdvancedRadio (const eoMessage &msg, eoPacket &packet)
 
static eoReturn packetToRadio (const eoPacket &packet, eoTelegram &tel)
 
static eoReturn advancedPacketToRadio (const eoPacket &packet, eoTelegram &tel)
 
static eoReturn advancedPacketToRadio (const eoPacket &packet, eoTelegramERP2 &tel)
 
static uint8_t TigrisToRPS (eoTelegram &inTel, eoTelegram &outTel)
 
static const char * NumToHex (uint8_t num)
 
static uint32_t Hash (char const *str)
 
static eoReturn packetToReman (const eoPacket &packet, eoReManMessage &reManMes)
 
static eoReturn remanToPacket (const eoReManMessage &reManMes, eoPacket &packet)
 
static eoReturn packetToMessageType (const eoPacket &packet, eoMessage &message)
 
static eoReturn messageTypeToPacket (const eoMessage &message, eoPacket &packet)
 
static eoReturn fahrenheitToCelsius (float &value)
 
static eoReturn celsiusToFahrenheit (float &value)
 
static eoReturn literToMeter3 (float &value)
 
static eoReturn meter3ToLiter (float &value)
 

Detailed Description

contains static Helper Functions

Member Function Documentation

◆ advancedPacketToRadio() [1/2]

static eoReturn eoConverter::advancedPacketToRadio ( const eoPacket packet,
eoTelegram tel 
)
static

Helper function, which will convert a Advanced Packet to a Telegram

Parameters
packetAdvanced Packet to convert
telTelegram to store
Returns
eoReturn

◆ advancedPacketToRadio() [2/2]

static eoReturn eoConverter::advancedPacketToRadio ( const eoPacket packet,
eoTelegramERP2 tel 
)
static

Helper function, which will convert a Advanced Packet to a Telegram with ERP2 info

Parameters
packetAdvanced Packet to convert
telTelegram to store
Returns
eoReturn

◆ celsiusToFahrenheit()

static eoReturn eoConverter::celsiusToFahrenheit ( float &  value)
static

Helper function, which will convert Celsius into Fahrenheit

Parameters
valueValue to be converted
Returns
eoReturn

◆ fahrenheitToCelsius()

static eoReturn eoConverter::fahrenheitToCelsius ( float &  value)
static

Helper function, which will convert Fahrenheit into Celsius

Parameters
valueValue to be converted
Returns
eoReturn

◆ Hash()

static uint32_t eoConverter::Hash ( char const *  str)
static

Simple hash function, which generates an uint32_t hash from a char string

Parameters
strpointer to char string
Returns
32bit Hash

◆ literToMeter3()

static eoReturn eoConverter::literToMeter3 ( float &  value)
static

Helper function, which will convert liter/s to m3/s

Parameters
valueValue to be converted
Returns
eoReturn

◆ messageTypeToPacket()

static eoReturn eoConverter::messageTypeToPacket ( const eoMessage message,
eoPacket packet 
)
static

Helper function, which will convert a Message Type to a Packet

Parameters
messageMessage Type to convert
packetPacket to store
Returns
eoReturn

◆ meter3ToLiter()

static eoReturn eoConverter::meter3ToLiter ( float &  value)
static

Helper function, which will convert m3/s to liter/s

Parameters
valueValue to be converted
Returns
eoReturn

◆ NumToHex()

static const char* eoConverter::NumToHex ( uint8_t  num)
static

Converts the LSB to hex Char

Parameters
num
Returns
0-F

◆ packetToAdvancedRadio()

static eoReturn eoConverter::packetToAdvancedRadio ( const eoMessage msg,
eoPacket packet 
)
static

Helper function, which will convert a Message to Advanced Packet

Parameters
msgMessage to convert
packetPacket to store
Returns
eoReturn

◆ packetToMessageType()

static eoReturn eoConverter::packetToMessageType ( const eoPacket packet,
eoMessage message 
)
static

Helper function, which will convert a Packet to a Message Type

Parameters
packetPacket to store to convert
messageMessage Type to store
Returns
eoReturn

◆ packetToRadio()

static eoReturn eoConverter::packetToRadio ( const eoPacket packet,
eoTelegram tel 
)
static

Helper function, which will convert a Packet to a Telegram

Parameters
packetPacket to convert
telTelegram to store
Returns
eoReturn

◆ packetToReman()

static eoReturn eoConverter::packetToReman ( const eoPacket packet,
eoReManMessage reManMes 
)
static

Helper function, which will convert a Telegram to a Packet

Parameters
packetPacket to store to convert
reManMesRemote Management Message
Returns
eoReturn

◆ radioToPacket() [1/2]

static eoReturn eoConverter::radioToPacket ( const eoTelegram tel,
eoPacket packet 
)
static

Helper function, which will convert a Telegram to a Packet

Parameters
telTelegram to convert
packetPacket to store
Returns
eoReturn

◆ radioToPacket() [2/2]

static eoReturn eoConverter::radioToPacket ( const eoMessage msg,
eoPacket packet 
)
static

Helper function, which will convert a Message to a Packet

Parameters
msgMessage to convert
packetPacket to store
Returns
eoReturn

◆ remanToPacket()

static eoReturn eoConverter::remanToPacket ( const eoReManMessage reManMes,
eoPacket packet 
)
static

Helper function, which will convert a Telegram to a Packet

Parameters
reManMesRemote Management Message to convert
packetPacket to store
Returns
eoReturn

◆ TigrisToRPS()

static uint8_t eoConverter::TigrisToRPS ( eoTelegram inTel,
eoTelegram outTel 
)
static

Helper function which converts decrypted Tigris Telegram to RPS

Parameters
inTel
outTel
Returns