50 Eeprom(
const Settings& settings);
56 int setup(
const Settings& settings);
64 int read(
unsigned int start = 0,
unsigned int length = -1);
73 int write(
unsigned int start = 0,
unsigned int length = -1);
88 const char*
data()
const;
109 int prepareToReadWrite(
unsigned int start,
unsigned int& length);
110 std::vector<char> content;
111 std::vector<char> writtenContent;
int read(unsigned int start=0, unsigned int length=-1)
Definition: Eeprom.cpp:56
unsigned int maxLength
Definition: Eeprom.h:43
char * data()
Definition: Eeprom.cpp:41
int setup(const Settings &settings)
Definition: Eeprom.cpp:15
char address
Definition: Eeprom.h:30
const char & operator[](std::size_t idx) const
Definition: Eeprom.h:105
bool isSynced()
Definition: Eeprom.cpp:92
unsigned int offset
Definition: Eeprom.h:39
size_t size() const
Definition: Eeprom.cpp:51
int write(unsigned int start=0, unsigned int length=-1)
Definition: Eeprom.cpp:67
char & operator[](std::size_t idx)
Definition: Eeprom.h:97
unsigned int bus
Definition: Eeprom.h:25