knx/memory.h
2018-04-09 22:30:23 +02:00

25 lines
458 B
C++

#pragma once
#include <stdint.h>
#include "save_restore.h"
#include "platform.h"
#define MAXSAVE 10
class Memory
{
public:
Memory(Platform& platform);
void memoryModified();
bool isMemoryModified();
void readMemory();
void writeMemory();
void addSaveRestore(SaveRestore* obj);
private:
Platform& _platform;
bool _modified = false;
SaveRestore* _saveRestores[MAXSAVE];
int _saveCount = 0;
uint8_t* _data = 0;
};