mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
39edb63caf
(descriptions are still missing)
26 lines
840 B
C++
26 lines
840 B
C++
#pragma once
|
|
|
|
#include "table_object.h"
|
|
|
|
class ApplicationProgramObject: public TableObject
|
|
{
|
|
public:
|
|
ApplicationProgramObject(uint8_t* memoryReference);
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
|
|
void readProperty(PropertyID id, uint32_t start, uint32_t& count, uint8_t* data);
|
|
#pragma GCC diagnostic pop
|
|
void writeProperty(PropertyID id, uint8_t start, uint8_t* data, uint8_t count);
|
|
uint8_t propertySize(PropertyID id);
|
|
uint8_t* data(uint32_t addr);
|
|
uint8_t getByte(uint32_t addr);
|
|
uint16_t getWord(uint32_t addr);
|
|
uint32_t getInt(uint32_t addr);
|
|
uint8_t* save(uint8_t* buffer);
|
|
uint8_t* restore(uint8_t* buffer);
|
|
protected:
|
|
uint8_t propertyCount();
|
|
PropertyDescription* propertyDescriptions();
|
|
private:
|
|
uint8_t _programVersion[5];
|
|
}; |