54 Device(uint32_t bytes, uint16_t count) :
56 SECTOR_MASK(bytes - 1),
58 DEVICE_BYTES(count * bytes)
101 virtual int read(
void* dest, uint32_t src,
size_t size) = 0;
113 virtual int erase(uint32_t dest, uint8_t size) = 0;
125 virtual int write(uint32_t dest,
const void* src,
size_t size) = 0;
137 virtual int write_P(uint32_t dest,
const void* scr,
size_t size) = 0;
virtual int write(uint32_t dest, const void *src, size_t size)=0
virtual int read(void *dest, uint32_t src, size_t size)=0
virtual int erase(uint32_t dest, uint8_t size)=0
const uint16_t SECTOR_MAX
const uint32_t SECTOR_BYTES
const uint32_t DEVICE_BYTES
static const uint32_t DEFAULT_SECTOR_BYTES
virtual bool is_ready()=0
virtual int write_P(uint32_t dest, const void *scr, size_t size)=0
Device(uint32_t bytes, uint16_t count)
const uint32_t SECTOR_MASK