64 uint8_t* sp = (uint8_t*) &src;
84 case 4: op =
SER;
break;
85 case 32: op =
B32ER;
break;
86 case 64: op =
B64ER;
break;
87 case 255: op =
CER;
break;
96 uint8_t* dp = (uint8_t*) &dest;
116 if (
UNLIKELY(size == 0))
return (0);
119 uint8_t* dp = (uint8_t*) &dest;
120 uint8_t* sp = (uint8_t*) src;
121 int res = (int) size;
125 if (
UNLIKELY(count > size)) count = size;
148 if (size == 0)
break;
162 if (
UNLIKELY(size == 0))
return (0);
165 uint8_t* dp = (uint8_t*) &dest;
166 uint8_t* sp = (uint8_t*) src;
167 int res = (int) size;
171 if (
UNLIKELY(count > size)) count = size;
194 if (size == 0)
break;
virtual int read(void *dest, uint32_t src, size_t size)
uint8_t transfer(uint8_t data)
static const uint8_t DEVICE
static const size_t PAGE_MAX
void acquire(Driver *dev)
uint8_t issue(Command cmd)
static const size_t PAGE_MASK
void read(void *buf, size_t count)
virtual int write(uint32_t dest, const void *src, size_t size)
virtual int write_P(uint32_t dest, const void *buf, size_t size)
void write(const void *buf, size_t count)
uint8_t BUSY
< As bit-fields.
static const uint8_t MANUFACTURER
void write_P(const uint8_t *buf, size_t count)
Read Manufacturer/Device ID.
virtual int erase(uint32_t dest, uint8_t size=4)