mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	addSaveRestore
This commit is contained in:
		
							parent
							
								
									7d86f63f8e
								
							
						
					
					
						commit
						ddf99a9b96
					
				@ -2,9 +2,6 @@
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
using namespace std;
 | 
			
		||||
 | 
			
		||||
BauSystemB::BauSystemB(Platform& platform): _memoryReference((uint8_t*)&_deviceObj), _memory(platform), _addrTable(_memoryReference),
 | 
			
		||||
    _assocTable(_memoryReference), _groupObjTable(_memoryReference), _appProgram(_memoryReference),
 | 
			
		||||
    _platform(platform), _appLayer(_assocTable, *this),
 | 
			
		||||
@ -275,4 +272,9 @@ void BauSystemB::groupValueWriteIndication(uint16_t asap, Priority priority, Hop
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    updateGroupObject(go, data, dataLength);
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void BauSystemB::addSaveRestore(SaveRestore* obj)
 | 
			
		||||
{
 | 
			
		||||
    _memory.addSaveRestore(obj);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -25,6 +25,7 @@ public:
 | 
			
		||||
    bool enabled();
 | 
			
		||||
    void enabled(bool value);
 | 
			
		||||
    void readMemory();
 | 
			
		||||
    void addSaveRestore(SaveRestore* obj);
 | 
			
		||||
protected:
 | 
			
		||||
    virtual DataLinkLayer& dataLinkLayer() = 0;
 | 
			
		||||
    virtual uint8_t* descriptor() = 0;
 | 
			
		||||
@ -61,6 +62,7 @@ protected:
 | 
			
		||||
 | 
			
		||||
    DeviceObject _deviceObj;
 | 
			
		||||
    // 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;
 | 
			
		||||
    Memory _memory;
 | 
			
		||||
    AddressTableObject _addrTable;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user