9 #if MASK_VERSION == 0x091A
23 uint16_t currentNoOfElements = 1;
38 uint8_t programVersion[5];
47 uint8_t programVersion[5];
uint8_t * pushByteArray(const uint8_t *src, uint32_t size, uint8_t *data)
const uint8_t * popByteArray(uint8_t *dst, uint32_t size, const uint8_t *data)
uint8_t * pushWord(uint16_t w, uint8_t *data)
uint16_t getWord(const uint8_t *data)
uint32_t getInt(const uint8_t *data)
@ Float_Enc_IEEE754Double
@ Float_Enc_IEEE754Single
uint16_t saveSize() override
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
uint8_t getByte(uint32_t addr)
uint16_t getWord(uint32_t addr)
uint32_t getInt(uint32_t addr)
uint8_t * save(uint8_t *buffer) override
This method is called when the object should save its state to the buffer.
ApplicationProgramObject(Memory &memory)
double getFloat(uint32_t addr, ParameterFloatEncodings encoding)
Property * property(PropertyID id)
Gets property with PropertyID id if it exists and nullptr otherwise.
virtual uint8_t read(uint16_t start, uint8_t count, uint8_t *data) const =0
virtual uint8_t write(uint16_t start, uint8_t count, const uint8_t *data)=0
This class provides common functionality for interface objects that are configured by ETS with MemorW...
void initializeProperties(size_t propertiesSize, Property **properties) override
Intializes the Property-array the the supplied values.
uint8_t * data()
returns the internal data of the interface object.
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
uint16_t saveSize() override
uint8_t * save(uint8_t *buffer) override
This method is called when the object should save its state to the buffer.
double float64FromPayload(const uint8_t *payload, int index)
double float16FromPayload(const uint8_t *payload, int index)
float float32FromPayload(const uint8_t *payload, int index)
@ OT_APPLICATION_PROG
Application program object.
@ PID_OBJECT_TYPE
Interface Object Type independent Properties.
@ PDT_UNSIGNED_INT
length: 2
@ PDT_GENERIC_05
length: 5
@ PDT_UNSIGNED_CHAR
length: 1