MySensors Library & Examples
2.3.2-62-ge298769
|
AVR Software I2C master class.
Definition at line 112 of file SoftI2cMaster.h.
#include <SoftI2cMaster.h>
Public Member Functions | |
SoftI2cMaster (uint8_t sclPin, uint8_t sdaPin) | |
void | begin (uint8_t sclPin, uint8_t sdaPin) |
uint8_t | read (uint8_t last) |
void | start () |
void | stop (void) |
bool | write (uint8_t b) |
Public Member Functions inherited from I2cMasterBase | |
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 |
Read a byte
[in] | last | send a NACK to terminate read if last is true else send an ACK to continue the read. |
Implements I2cMasterBase.
|
virtual |
Issue a start condition
Implements I2cMasterBase.
|
virtual |
Issue a stop condition.
Implements I2cMasterBase.
|
virtual |
Write a byte
[in] | data | byte to write |
Implements I2cMasterBase.