12 #ifndef _IOABSTRACTION_EEPROMABSTRACTION_H_
13 #define _IOABSTRACTION_EEPROMABSTRACTION_H_
15 #include "PlatformDetermination.h"
19 #elif !defined(BUILD_FOR_PICO_CMAKE)
131 virtual uint8_t read8(__attribute__((unused))
EepromPosition position) {
return 0;}
132 virtual void write8(__attribute__((unused))
EepromPosition position, __attribute__((unused)) uint8_t val) {}
134 virtual uint16_t read16(__attribute__((unused))
EepromPosition position) {
return 0;}
135 virtual void write16(__attribute__((unused))
EepromPosition position, __attribute__((unused)) uint16_t val) {}
137 virtual uint32_t read32(__attribute__((unused))
EepromPosition position) {
return 0;}
138 virtual void write32(__attribute__((unused))
EepromPosition position, __attribute__((unused)) uint32_t val) {}
140 virtual void readIntoMemArray(__attribute__((unused)) uint8_t* memDest, __attribute__((unused))
EepromPosition romSrc, __attribute__((unused)) uint8_t len) {memDest[0]=0;}
141 virtual void writeArrayToRom(__attribute__((unused))
EepromPosition romDest, __attribute__((unused))
const uint8_t* memSrc, __attribute__((unused)) uint8_t len) {}
uint16_t EepromPosition
Definition: EepromAbstraction.h:26
Definition: EepromAbstraction.h:105
virtual void write8(EepromPosition position, uint8_t val)
Definition: EepromAbstraction.cpp:15
virtual uint8_t read8(EepromPosition position)
Definition: EepromAbstraction.cpp:11
virtual void writeArrayToRom(EepromPosition romDest, const uint8_t *memSrc, uint8_t len)
Definition: EepromAbstraction.cpp:45
virtual void readIntoMemArray(uint8_t *memDest, EepromPosition romSrc, uint8_t len)
Definition: EepromAbstraction.cpp:41
virtual uint16_t read16(EepromPosition position)
Definition: EepromAbstraction.cpp:21
virtual uint32_t read32(EepromPosition position)
Definition: EepromAbstraction.cpp:31
virtual void write32(EepromPosition position, uint32_t val)
Definition: EepromAbstraction.cpp:35
virtual void write16(EepromPosition position, uint16_t val)
Definition: EepromAbstraction.cpp:25
Definition: EepromAbstraction.h:33
virtual void writeArrayToRom(EepromPosition romDest, const uint8_t *memSrc, uint8_t len)=0
virtual bool hasErrorOccurred()
Definition: EepromAbstraction.h:40
virtual uint16_t read16(EepromPosition position)=0
virtual void readIntoMemArray(uint8_t *memDest, EepromPosition romSrc, uint8_t len)=0
virtual void write16(EepromPosition position, uint16_t val)=0
virtual void write8(EepromPosition position, uint8_t val)=0
virtual uint8_t read8(EepromPosition position)=0
virtual void write32(EepromPosition position, uint32_t val)=0
virtual uint32_t read32(EepromPosition position)=0
Definition: EepromAbstraction.h:127