26 #include "WiringFrameworkDependencies.h" 29 uint8_t
const I2C_DELAY_USEC = 2;
32 uint8_t
const I2C_READ = 1;
35 uint8_t
const I2C_WRITE = 0;
48 virtual uint8_t
read(uint8_t last) = 0;
53 virtual bool restart(uint8_t addressRW) = 0;
58 virtual bool start(uint8_t addressRW) = 0;
60 virtual void stop(
void) = 0;
64 virtual bool write(uint8_t data) = 0;
75 uint8_t
read(uint8_t last);
76 bool restart(uint8_t addressRW);
77 bool start(uint8_t addressRW);
79 bool write(uint8_t b);
86 #endif // I2C_MASTER_H virtual bool start(uint8_t addressRW)=0
virtual void stop(void)=0
Base class for SoftI2cMaster and TwiMaster.
Definition: I2cMaster.h:41
virtual bool restart(uint8_t addressRW)=0
virtual bool write(uint8_t data)=0
virtual uint8_t read(uint8_t last)=0
Software I2C master class.
Definition: I2cMaster.h:71