mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
25 lines
458 B
C++
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;
|
|
};
|