Arduino-Storage
External Memory Storage library for Arduino
EEPROM.h
Go to the documentation of this file.
1 
19 #ifndef EEPROM_H
20 #define EEPROM_H
21 
22 #include "Storage.h"
23 
27 class EEPROM : public Storage {
28 public:
32  EEPROM() : Storage(E2END + 1) {}
33 
44  virtual int read(void* dst, uint32_t src, size_t count)
45  {
46  eeprom_read_block(dst, (const void*) src, count);
47  return (count);
48  }
49 
60  virtual int write(uint32_t dst, const void* src, size_t count)
61  {
62  eeprom_update_block(src, (void*) dst, count);
63  return (count);
64  }
65 };
66 #endif
Definition: EEPROM.h:27
virtual int read(void *dst, uint32_t src, size_t count)
Definition: EEPROM.h:44
virtual int write(uint32_t dst, const void *src, size_t count)
Definition: EEPROM.h:60
EEPROM()
Definition: EEPROM.h:32
int count
Definition: Stream.ino:26