21 #ifndef COSA_AT24CXX_HH 22 #define COSA_AT24CXX_HH 68 const size_t size = 32,
69 const uint16_t page_max = 32) :
75 WRITE_MASK(page_max - 1)
95 virtual int read(
void* dest,
const void* src,
size_t size);
106 virtual int write(
void* dest,
const void* src,
size_t size);
109 static const uint8_t POLL_MAX = 3;
110 const uint16_t WRITE_MAX;
111 const uint16_t WRITE_MASK;
124 bool poll(
const void* addr,
const void* buf =
NULL,
size_t size = 0);
virtual int write(void *dest, const void *src, size_t size)
AT24CXX(uint8_t subaddr=0, const size_t size=32, const uint16_t page_max=32)
virtual int read(void *dest, const void *src, size_t size)