Digital IO
|
Base class for FastI2cMaster, SoftI2cMaster. More...
#include <SoftI2cMaster.h>
Public Member Functions | |
virtual uint8_t | read (uint8_t last)=0 |
virtual void | start ()=0 |
virtual void | stop ()=0 |
bool | transfer (uint8_t addressRW, void *buf, size_t nbyte, uint8_t option=I2C_STOP) |
bool | transferContinue (void *buf, size_t nbyte, uint8_t option=I2C_STOP) |
virtual bool | write (uint8_t data)=0 |
Base class for FastI2cMaster, SoftI2cMaster.
Definition at line 65 of file SoftI2cMaster.h.
virtual uint8_t I2cMasterBase::read | ( | uint8_t | last | ) | [pure virtual] |
Read a byte
[in] | last | send a NACK to terminate read if last is true else send an ACK to continue the read. |
Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.
virtual void I2cMasterBase::start | ( | ) | [pure virtual] |
Issue a start condition
Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.
virtual void I2cMasterBase::stop | ( | ) | [pure virtual] |
Issue a stop condition.
Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.
virtual bool I2cMasterBase::write | ( | uint8_t | data | ) | [pure virtual] |
Write a byte
[in] | data | byte to write |
Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.