33 #ifndef __EOPROFILE_INCLUDED_ 34 #define __EOPROFILE_INCLUDED_ 299 static uint16_t BitIdxToByte(
const uint16_t &bitIdx);
315 static float ScaleFromRAW(uint32_t rawValue, uint32_t rangeMin, uint32_t rangeMax,
double scaleMin,
double scaleMax);
328 static uint32_t
ScaleToRAW(
float value, uint32_t rangeMin, uint32_t rangeMax,
double scaleMin,
double scaleMax);
360 #endif // __EOPROFILE_INCLUDED_ contains base for Archives
virtual void ClearValues()
contains Dolphin API Definitions
virtual uint8_t Serialize(eoArchive &a)
Serialization Function which will be called by the eoStorageManager.
Enocean GP channel Informations.
virtual bool IsSecDData(const eoMessage &message)
Interface for storing.
Definition: eoISerialize.h:48
uint8_t type
Type.
Definition: eoProfile.h:69
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
uint16_t manufacturer
Manufacturer.
Definition: eoProfile.h:71
uint8_t func
Func.
Definition: eoProfile.h:67
Message Class for communication.
Definition: eoMessage.h:47
virtual bool operator!=(const eoProfile &othProfile) const
static uint32_t ScaleToRAW(float value, uint32_t rangeMin, uint32_t rangeMax, double scaleMin, double scaleMax)
Creates Raw Value from a floating Point.
virtual eoReturn SetValue(CHANNEL_TYPE type, float value, uint8_t subFlag)
Gets the Value as a float.
virtual eoChannelInfo * GetChannel(CHANNEL_TYPE type, uint8_t subType)
virtual eoReturn GetSubTypeChannel(CHANNEL_TYPE type, std::vector< eoEEPChannelInfo *> &vector)
static const uint8_t maskArray[8]
Mask array.
Definition: eoProfile.h:331
virtual eoReturn CreateTeachIN(eoMessage &m)
Generates an EEP Telegram(only not chained supported!!1)
Abstract class for channel information. Abstract class for channel information. From this class speci...
Definition: eoChannelInfo.h:77
virtual bool operator==(const eoProfile &othProfile) const
eoReturn SetManufacturer(uint16_t manufacturerID)
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
virtual eoReturn GetValue(CHANNEL_TYPE type, float &value)
Gets the Value as Floating Point.
static eoReturn GetRawValue(const eoMessage &msg, uint32_t &value, uint16_t offset, uint8_t size)
Gives raw data Value from a Message.
eoProfile(uint16_t size=0)
static eoReturn SetRawValue(eoMessage &msg, uint32_t value, uint16_t offset, uint8_t size)
Inserts raw data Value in a message.
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
base class for Profile parsing
Definition: eoProfile.h:61
virtual uint8_t GetChannelCount() const
static float ScaleFromRAW(uint32_t rawValue, uint32_t rangeMin, uint32_t rangeMax, double scaleMin, double scaleMax)
Creates floating Point from Raw Value.
virtual eoReturn SetType(uint8_t type)
uint8_t rorg
R-ORG.
Definition: eoProfile.h:65
contains the eoChannelInfo Class
virtual eoReturn Parse(const eoMessage &msg)
Parses a msg using learned in Profile from Device.
the base Archive
Definition: eoArchive.h:46
virtual eoReturn Create(eoMessage &m)
Generates an EEP Message.