2016-01-27 09:39:46 +00:00
|
|
|
#pragma once
|
|
|
|
#include <Project64-core/Settings/DebugSettings.h>
|
|
|
|
|
|
|
|
class CEeprom :
|
2018-02-16 05:38:00 +00:00
|
|
|
protected CDebugSettings
|
2016-01-27 09:39:46 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CEeprom(bool ReadOnly);
|
|
|
|
~CEeprom();
|
|
|
|
|
|
|
|
void EepromCommand(uint8_t * Command);
|
|
|
|
|
|
|
|
private:
|
2021-04-13 00:07:11 +00:00
|
|
|
CEeprom(void);
|
|
|
|
CEeprom(const CEeprom&);
|
|
|
|
CEeprom& operator=(const CEeprom&);
|
2016-01-27 09:39:46 +00:00
|
|
|
|
2018-02-16 05:38:00 +00:00
|
|
|
void ProcessingError(uint8_t * Command);
|
2016-01-27 09:39:46 +00:00
|
|
|
void LoadEeprom();
|
|
|
|
void ReadFrom(uint8_t * Buffer, int32_t line);
|
|
|
|
void WriteTo(uint8_t * Buffer, int32_t line);
|
|
|
|
|
|
|
|
uint8_t m_EEPROM[0x800];
|
|
|
|
bool m_ReadOnly;
|
|
|
|
CFile m_File;
|
|
|
|
};
|