33 virtual void write(uint8_t value) = 0;
36 virtual bool startRead(
unsigned int address,
unsigned int count) = 0;
38 virtual uint8_t
read() = 0;
virtual void write(uint8_t value)=0
Writes a single byte value on the I2C bus.
virtual bool startRead(unsigned int address, unsigned int count)=0
Starts a read operation for count bytes by sending the start condition and the I2C control byte...
virtual unsigned int maxTransferSize() const =0
Returns the maximum number of bytes that can be read or written in a single request by this bus maste...
virtual unsigned int available()=0
Returns the number of bytes that are still available for reading.
virtual void startWrite(unsigned int address)
Starts a write operation by sending a start condition and the I2C control byte.
virtual bool endWrite()=0
Ends the current write operation.
Abstract base class for I2C master implementations.
virtual uint8_t read()=0
Reads a single byte from the I2C bus.