|
Arduino-TWI
Two-Wire Interface (TWI) library for Arduino
|
#include <TWI.h>


Public Member Functions | |
| TWI () | |
| virtual bool | acquire () |
| virtual bool | release () |
| virtual int | read (uint8_t addr, void *buf, size_t count) |
| virtual int | write (uint8_t addr, iovec_t *vp) |
| virtual int | write (uint8_t addr, const void *buf, size_t count) |
Static Public Attributes | |
| static const uint32_t | DEFAULT_FREQ = 100000L |
Protected Member Functions | |
| bool | clock_stretching () |
| bool | start_condition () |
| bool | repeated_start_condition () |
| bool | stop_condition () |
| bool | write_bit (bool value) |
| bool | read_bit (bool &value) |
| bool | write_byte (uint8_t byte, bool &nack) |
| bool | read_byte (uint8_t &byte, bool ack) |
| void | lock () |
| void | unlock () |
Protected Attributes | |
| GPIO< SDA_PIN > | m_sda |
| GPIO< SCL_PIN > | m_scl |
| bool | m_start |
| volatile bool | m_busy |
Static Protected Attributes | |
| static const int | T1 = 4 |
| static const int | T2 = 5 |
| static const int | CLOCK_STRETCHING_RETRY_MAX = 25 |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedinherited |
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlineprotected |
|
inlineprotected |
|
staticprotected |
|
staticinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |