39 #ifndef __EEPROMextent_h__ 40 #define __EEPROMextent_h__ 43 #include <avr/eeprom.h> 49 #define INT64 (__int64) 70 inline uint8_t
readByte(
int address) {
return eeprom_read_byte((uint8_t *)INT64 address); }
78 inline void writeByte(
int address, uint8_t value) { eeprom_write_byte((uint8_t *)INT64 address, value); }
87 inline void updateByte(
int address, uint8_t value) { eeprom_update_byte((uint8_t *)INT64 address, value); }
103 eeprom_read_block((byte*)(
void*)&value, (
const uint8_t *)INT64 ee,
sizeof(value));
104 return sizeof(value);
117 eeprom_write_block((
const byte*)(
const void*)&value, (uint8_t *)INT64 ee,
sizeof(value));
118 return sizeof(value);
135 eeprom_update_block((
const byte*)(
const void*)&value, (uint8_t *)INT64 ee,
sizeof(value));
136 return sizeof(value);
148 char *
readString(
int address,
char *outString,
int inMaxLen);
157 int writeString(
int address,
const char *inString);
178 void clear(
int address,
int inSize, byte inFillCharacter = 0);
183 #include "EEPROM_ItemList.hpp" 184 #include "CircularBuffer.hpp" void clear(int address, int inSize, byte inFillCharacter = 0)
Definition: EEPROMextent.cpp:60
int updateString(int address, const char *inString)
Definition: EEPROMextent.cpp:43
int writeString(int address, const char *inString)
Definition: EEPROMextent.cpp:26
int updateAnything(int address, const T &value)
Definition: EEPROMextent.h:133
int writeAnything(int address, const T &value)
Definition: EEPROMextent.h:115
void updateByte(int address, uint8_t value)
Definition: EEPROMextent.h:87
char * readString(int address, char *outString, int inMaxLen)
Definition: EEPROMextent.cpp:11
int readAnything(int address, T &value)
Definition: EEPROMextent.h:101
void writeByte(int address, uint8_t value)
Definition: EEPROMextent.h:78
uint8_t readByte(int address)
Definition: EEPROMextent.h:70
Main class for basic functions.
Definition: EEPROMextent.h:60