Digital IO
|
Fast software I2C master class. More...
#include <SoftI2cMaster.h>
Public Member Functions | |
void | begin () |
uint8_t | read (uint8_t last) |
void | start () |
void | stop (void) |
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) |
bool | write (uint8_t data) |
Fast software I2C master class.
Definition at line 169 of file SoftI2cMaster.h.
void FastI2cMaster< sclPin, sdaPin >::begin | ( | ) | [inline] |
Initialize I2C bus pins.
Definition at line 177 of file SoftI2cMaster.h.
uint8_t FastI2cMaster< sclPin, sdaPin >::read | ( | uint8_t | last | ) | [inline, 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.
Definition at line 185 of file SoftI2cMaster.h.
void FastI2cMaster< sclPin, sdaPin >::start | ( | ) | [inline, virtual] |
Issue a start condition
Implements I2cMasterBase.
Definition at line 208 of file SoftI2cMaster.h.
void FastI2cMaster< sclPin, sdaPin >::stop | ( | void | ) | [inline, virtual] |
Issue a stop condition.
Implements I2cMasterBase.
Definition at line 222 of file SoftI2cMaster.h.
bool FastI2cMaster< sclPin, sdaPin >::write | ( | uint8_t | data | ) | [inline, virtual] |
Write a byte
[in] | data | byte to write |
Implements I2cMasterBase.
Definition at line 231 of file SoftI2cMaster.h.