MySensors Library & Examples  2.3.2-62-ge298769
Classes | Variables
Software I2C

Detailed Description

Software Two Wire Interface library.

Classes

class  I2cMasterBase
 Base class for FastI2cMaster, SoftI2cMaster. More...
 
class  SoftI2cMaster
 AVR Software I2C master class. More...
 
class  FastI2cMaster< sclPin, sdaPin >
 AVR Fast software I2C master class. More...
 

Variables

const uint8_t STATE_STOP = 0
 
const uint8_t STATE_REP_START = 1
 
const uint8_t STATE_RX_DATA = 2
 
const uint8_t STATE_TX_DATA = 3
 
const uint8_t STATE_RX_ADDR_NACK = 4
 
const uint8_t STATE_TX_ADDR_NACK = 5
 
const uint8_t STATE_TX_DATA_NACK = 6
 

Variable Documentation

◆ STATE_REP_START

const uint8_t STATE_REP_START = 1

Repeated start condition transmitted.

Definition at line 42 of file SoftI2cMaster.h.

◆ STATE_RX_ADDR_NACK

const uint8_t STATE_RX_ADDR_NACK = 4

Slave address plus read bit transmitted, NACK received.

Definition at line 51 of file SoftI2cMaster.h.

◆ STATE_RX_DATA

const uint8_t STATE_RX_DATA = 2

Read data transfer active.

Definition at line 45 of file SoftI2cMaster.h.

◆ STATE_STOP

const uint8_t STATE_STOP = 0

Stop condition transmitted.

Definition at line 39 of file SoftI2cMaster.h.

◆ STATE_TX_ADDR_NACK

const uint8_t STATE_TX_ADDR_NACK = 5

Slave address plus write bit transmitted, NACK received.

Definition at line 54 of file SoftI2cMaster.h.

◆ STATE_TX_DATA

const uint8_t STATE_TX_DATA = 3

Write data transfer active.

Definition at line 48 of file SoftI2cMaster.h.

◆ STATE_TX_DATA_NACK

const uint8_t STATE_TX_DATA_NACK = 6

Data byte transmitted, NACK received.

Definition at line 56 of file SoftI2cMaster.h.