EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
base class for all Messages More...
#include <eoAbstractMessage.h>
Public Member Functions | |
virtual eoReturn | SetDataLength (uint16_t dataLen, bool reallocate=false) |
virtual uint16_t | GetDataLength () const |
uint16_t | GetMaxLength () const |
Public Attributes | |
uint8_t * | data |
Data Pointer. | |
uint16_t | dataLength |
Payload data length. | |
uint16_t | maxLength |
Protected Member Functions | |
eoAbstractMessage (uint16_t size=1) | |
base class for all Messages
this class describes an abstract Message. It is the base class for all real Message Applications
|
protected |
Constructor.
size | Default size of the message. |
|
virtual |
Returns current DataLength
uint16_t eoAbstractMessage::GetMaxLength | ( | ) | const |
Gets the maximal Message Length
|
virtual |
Gets the dataLength, when reallocate is set to true, a new data Buffer is allocated if the new Size is bigger then the max Size
dataLen | new dataLen Size |
reallocate | Enables new allocation |
Reimplemented in eoTelegramERP2.
uint16_t eoAbstractMessage::maxLength |
maximal Length the message can have