73 int read(
void* buf,
size_t count)
84 int write(
const void* buf,
size_t count)
141 virtual int read(uint8_t addr,
void* buf,
size_t count) = 0;
151 virtual int write(uint8_t addr,
const void* buf,
size_t count)
155 iovec_arg(vp, buf, count);
157 return (
write(addr, vec));
167 virtual int write(uint8_t addr, iovec_t* vp) = 0;
178 while (m_busy) yield();
virtual int read(uint8_t addr, void *buf, size_t count)=0
Hardware::TWI twi(100000UL)
static const uint32_t DEFAULT_FREQ
virtual int write(uint8_t addr, const void *buf, size_t count)
int write(const void *buf, size_t count)
Device(TWI &twi, uint8_t addr)
int read(void *buf, size_t count)