addSaveRestore

This commit is contained in:
Thomas Kunze 2018-09-04 21:11:43 +02:00
parent 7d86f63f8e
commit ddf99a9b96
2 changed files with 8 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;