30 #if !defined(EO_GENERIC_PROFILE_H) 31 #define EO_GENERIC_PROFILE_H 36 #define GP_MANUFACTURER_LEN 11 37 #define GP_PURPOSE_LEN 2 39 #define GP_DATA_DIRECTION_LEN 1 43 #define GP_MANUFACTURER_OFF 0 44 #define GP_PURPOSE_OFF 12 46 #define GP_DATA_DIRECTION_OFF 11 54 GP_TEACH_IN = 0, GP_TEACH_OUT, GP_TEACH_IN_OUT, RESP_NA
62 UNIDIRECTIONAL = 0, BIDIRECTIONAL
146 eoReturn GetValue(uint8_t u8ChannelNumber,
float &value);
147 eoReturn GetValue(uint8_t u8ChannelNumber, uint8_t &value);
148 eoReturn GetValue(uint8_t u8ChannelNumber, uint32_t &value);
158 eoReturn SetValue(uint8_t u8ChannelNumber,
float value);
159 eoReturn SetValue(uint8_t u8ChannelNumber, uint8_t value);
160 eoReturn SetValue(uint8_t u8ChannelNumber, uint32_t value);
307 std::vector<eoGPChannelInfo> gpChannels;
308 std::vector<eoGPChannelInfo> gpChannelsOut;
309 uint16_t curBitOffset;
310 uint16_t curBitOffsetOut;
316 #endif // !defined(EA_4EAE7E47_D018_4877_903B_B66D2DDE6E02__INCLUDED_) eoReturn SetType(uint8_t type)
bool operator!=(const eoGenericProfile &othProfile) const
uint8_t GetChannelCount() const
Enocean GP channel Informations.
GP_HEADER_PURPOSE
Purpose of the Teach IN Message.
Definition: eoGenericProfile.h:52
eoReturn Parse(const eoMessage &msg)
GP_SCALING
Generic Profile Channel Scaling.
Definition: eoGPChannelInfo.h:80
uint8_t type
Type.
Definition: eoProfile.h:69
eoMessage msg
helper function to convert bits
Definition: eoProfile.h:302
Message Class for communication.
Definition: eoMessage.h:47
eoChannelInfo * GetChannelOut(CHANNEL_TYPE type)
GP_HEADER_PURPOSE purpose
Teach-In Purpose.
Definition: eoGenericProfile.h:84
GP_DATA_DIRECTION dataDirection
Data direction.
Definition: eoGenericProfile.h:86
uint8_t Serialize(eoArchive &a)
Serialization Function which will be called by the eoStorageManager.
GP_RESOLUTION
Generic Profile Channel Resolution.
Definition: eoGPChannelInfo.h:59
The class to handle Generic Profiles.
Definition: eoGenericProfile.h:73
Abstract class for channel information. Abstract class for channel information. From this class speci...
Definition: eoChannelInfo.h:77
eoReturn AddChannelOut(CHANNEL_TYPE type, GP_RESOLUTION resolution, int8_t engMaximum, int8_t engMinimum, GP_SCALING scaleMaximum, GP_SCALING scaleMinimum, VALUE_TYPE valueType)
eoReturn ParseSelData(const eoMessage &msg)
VALUE_TYPE
Value types.
Definition: eoChannelEnums.h:577
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
eoChannelInfo * GetChannel(CHANNEL_TYPE type)
void SetProductId(const uint32_t prodId)
eoReturn AddChannel(CHANNEL_TYPE type, GP_RESOLUTION resolution, int8_t engMaximum, int8_t engMinimum, GP_SCALING scaleMaximum, GP_SCALING scaleMinimum, VALUE_TYPE valueType)
CHANNEL_TYPE
Definition: eoChannelEnums.h:169
GP_DATA_DIRECTION
Generic Profile Data Direction Information, informs if the Profile is unidirectional or bidirectional...
Definition: eoGenericProfile.h:60
base class for Profile parsing
Definition: eoProfile.h:61
uint8_t GetChannelCountOut() const
eoReturn CreateTeachIN(eoMessage &msg)
creates Teach In Messsage
bool operator==(const eoGenericProfile &othProfile) const
eoReturn Create(eoMessage &m, std::vector< int > channelNumbers)
creates Selective Data Message
the base Archive
Definition: eoArchive.h:46
eoReturn ParseTeachIN(const eoMessage &msg)