mirror of
https://github.com/thelsing/knx.git
synced 2025-01-21 00:05:43 +01:00
addSaveRestore
This commit is contained in:
parent
7d86f63f8e
commit
ddf99a9b96
@ -2,9 +2,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
BauSystemB::BauSystemB(Platform& platform): _memoryReference((uint8_t*)&_deviceObj), _memory(platform), _addrTable(_memoryReference),
|
BauSystemB::BauSystemB(Platform& platform): _memoryReference((uint8_t*)&_deviceObj), _memory(platform), _addrTable(_memoryReference),
|
||||||
_assocTable(_memoryReference), _groupObjTable(_memoryReference), _appProgram(_memoryReference),
|
_assocTable(_memoryReference), _groupObjTable(_memoryReference), _appProgram(_memoryReference),
|
||||||
_platform(platform), _appLayer(_assocTable, *this),
|
_platform(platform), _appLayer(_assocTable, *this),
|
||||||
@ -276,3 +273,8 @@ void BauSystemB::groupValueWriteIndication(uint16_t asap, Priority priority, Hop
|
|||||||
|
|
||||||
updateGroupObject(go, data, dataLength);
|
updateGroupObject(go, data, dataLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BauSystemB::addSaveRestore(SaveRestore* obj)
|
||||||
|
{
|
||||||
|
_memory.addSaveRestore(obj);
|
||||||
|
}
|
||||||
|
@ -25,6 +25,7 @@ public:
|
|||||||
bool enabled();
|
bool enabled();
|
||||||
void enabled(bool value);
|
void enabled(bool value);
|
||||||
void readMemory();
|
void readMemory();
|
||||||
|
void addSaveRestore(SaveRestore* obj);
|
||||||
protected:
|
protected:
|
||||||
virtual DataLinkLayer& dataLinkLayer() = 0;
|
virtual DataLinkLayer& dataLinkLayer() = 0;
|
||||||
virtual uint8_t* descriptor() = 0;
|
virtual uint8_t* descriptor() = 0;
|
||||||
@ -61,6 +62,7 @@ protected:
|
|||||||
|
|
||||||
DeviceObject _deviceObj;
|
DeviceObject _deviceObj;
|
||||||
// pointer to first private variable as reference to memory read/write commands
|
// pointer to first private variable as reference to memory read/write commands
|
||||||
|
// addesses are to big for memory read/write calls on 64bit systems otherwise
|
||||||
uint8_t* _memoryReference;
|
uint8_t* _memoryReference;
|
||||||
Memory _memory;
|
Memory _memory;
|
||||||
AddressTableObject _addrTable;
|
AddressTableObject _addrTable;
|
||||||
|
Loading…
Reference in New Issue
Block a user