39 #ifndef __EEPROMextent_h__ 40 #define __EEPROMextent_h__ 43 #include <avr/eeprom.h> 49 #define INT64 (__int64) 68 inline uint8_t
readByte(
int address) {
return eeprom_read_byte((uint8_t *)INT64 address); }
76 inline void writeByte(
int address, uint8_t value) { eeprom_write_byte((uint8_t *)INT64 address, value); }
85 inline void updateByte(
int address, uint8_t value) { eeprom_update_byte((uint8_t *)INT64 address, value); }
101 eeprom_read_block((byte*)(
void*)&value, (
const uint8_t *)INT64 address,
sizeof(value));
102 return sizeof(value);
115 eeprom_write_block((
const byte*)(
const void*)&value, (uint8_t *)INT64 address,
sizeof(value));
116 return sizeof(value);
133 eeprom_update_block((
const byte*)(
const void*)&value, (uint8_t *)INT64 address,
sizeof(value));
134 return sizeof(value);
146 char *
readString(
int address,
char *outString,
int inMaxLen);
155 int writeString(
int address,
const char *inString);
176 void clear(
int address,
int inSize, byte inFillCharacter = 0);
181 #include "EEPROM_ItemList.hpp" 182 #include "CircularBuffer.hpp" void clear(int address, int inSize, byte inFillCharacter = 0)
int updateString(int address, const char *inString)
int writeString(int address, const char *inString)
int updateAnything(int address, const T &value)
int writeAnything(int address, const T &value)
void updateByte(int address, uint8_t value)
char * readString(int address, char *outString, int inMaxLen)
int readAnything(int address, T &value)
void writeByte(int address, uint8_t value)
uint8_t readByte(int address)
Main class for basic functions.