64 uint8_t* sp = (uint8_t*) &src;
85 case 4: op =
P4E;
break;
86 case 64: op =
SER;
break;
87 case 255: op =
BER;
break;
96 uint8_t* dp = (uint8_t*) &dest;
118 if (
UNLIKELY(size == 0))
return (0);
121 uint8_t* dp = (uint8_t*) &dest;
122 uint8_t* sp = (uint8_t*) src;
123 int res = (int) size;
127 if (
UNLIKELY(count > size)) count = size;
167 if (
UNLIKELY(size == 0))
return (0);
170 uint8_t* dp = (uint8_t*) &dest;
171 uint8_t* sp = (uint8_t*) src;
172 int res = (int) size;
176 if (
UNLIKELY(count > size)) count = size;
virtual int write_P(uint32_t dest, const void *buf, size_t size)
virtual int read(void *dest, uint32_t src, size_t size)
uint8_t transfer(uint8_t data)
uint8_t WIP
< As bit-fields.
virtual int erase(uint32_t dest, uint8_t size=4)
void acquire(Driver *dev)
uint8_t E_ERR
Erase Error Occurred.
void read(void *buf, size_t count)
Page Program (3- or 4-byte address).
uint8_t issue(Command cmd)
uint8_t P_ERR
Programming Error Occurred.
static const uint8_t MANUFACTURER
Read Electronic Manufacturer Signature.
Parameter 4-kB, sector erase.
void write(const void *buf, size_t count)
static const size_t PAGE_MASK
static const size_t PAGE_MAX
Read (3- or 4-byte address).
void write_P(const uint8_t *buf, size_t count)
virtual int write(uint32_t dest, const void *src, size_t size)
static const uint8_t DEVICE