Digital IO
Public Member Functions
I2cMasterBase Class Reference

Base class for FastI2cMaster, SoftI2cMaster. More...

#include <SoftI2cMaster.h>

Inheritance diagram for I2cMasterBase:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Base class for FastI2cMaster, SoftI2cMaster.

Definition at line 65 of file SoftI2cMaster.h.


Member Function Documentation

virtual uint8_t I2cMasterBase::read ( uint8_t  last) [pure virtual]

Read a byte

Note:
This function should only be used by experts. Data should be accessed by calling transfer() and transferContinue()
Parameters:
[in]lastsend a NACK to terminate read if last is true else send an ACK to continue the read.
Returns:
byte read from I2C bus

Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.

virtual void I2cMasterBase::start ( ) [pure virtual]

Issue a start condition

Note:
This function should only be used by experts. Data should be accessed by calling transfer() and transferContinue()

Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.

virtual void I2cMasterBase::stop ( ) [pure virtual]

Issue a stop condition.

Note:
This function should only be used by experts. Data should be accessed by calling transfer() and transferContinue()

Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.

virtual bool I2cMasterBase::write ( uint8_t  data) [pure virtual]

Write a byte

Note:
This function should only be used by experts. Data should be accessed by calling transfer() and transferContinue()
Parameters:
[in]databyte to write
Returns:
true for ACK or false for NACK

Implemented in SoftI2cMaster, and FastI2cMaster< sclPin, sdaPin >.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines