Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
TwoWire Class Reference

#include <Wire.h>

Inheritance diagram for TwoWire:
Inheritance graph
[legend]

Public Member Functions

virtual int available (void)
 
void begin ()
 
void begin (uint8_t)
 
void begin (int)
 
void beginTransmission (uint8_t)
 
void beginTransmission (int)
 
void end ()
 
uint8_t endTransmission (void)
 
uint8_t endTransmission (uint8_t)
 
virtual void flush (void)
 
void onReceive (void(*)(int))
 
void onRequest (void(*)(void))
 
virtual int peek (void)
 
virtual int read (void)
 
uint8_t requestFrom (uint8_t, uint8_t)
 
uint8_t requestFrom (uint8_t, uint8_t, uint8_t)
 
uint8_t requestFrom (uint8_t, uint8_t, uint32_t, uint8_t, uint8_t)
 
uint8_t requestFrom (int, int)
 
uint8_t requestFrom (int, int, int)
 
void setClock (uint32_t)
 
 TwoWire ()
 
virtual size_t write (uint8_t)
 
virtual size_t write (const uint8_t *, size_t)
 
size_t write (unsigned long n)
 
size_t write (long n)
 
size_t write (unsigned int n)
 
size_t write (int n)
 
- Public Member Functions inherited from Stream
bool find (char *target)
 
bool find (uint8_t *target)
 
bool find (char *target, size_t length)
 
bool find (uint8_t *target, size_t length)
 
bool find (char target)
 
bool findUntil (char *target, char *terminator)
 
bool findUntil (uint8_t *target, char *terminator)
 
bool findUntil (char *target, size_t targetLen, char *terminate, size_t termLen)
 
bool findUntil (uint8_t *target, size_t targetLen, char *terminate, size_t termLen)
 
unsigned long getTimeout (void)
 
float parseFloat (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
long parseInt (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
size_t readBytes (char *buffer, size_t length)
 
size_t readBytes (uint8_t *buffer, size_t length)
 
size_t readBytesUntil (char terminator, char *buffer, size_t length)
 
size_t readBytesUntil (char terminator, uint8_t *buffer, size_t length)
 
String readString ()
 
String readStringUntil (char terminator)
 
void setTimeout (unsigned long timeout)
 
 Stream ()
 
- Public Member Functions inherited from Print
virtual int availableForWrite ()
 
void clearWriteError ()
 
int getWriteError ()
 
 Print ()
 
size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=DEC)
 
size_t print (int, int=DEC)
 
size_t print (unsigned int, int=DEC)
 
size_t print (long, int=DEC)
 
size_t print (unsigned long, int=DEC)
 
size_t print (double, int=2)
 
size_t print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=DEC)
 
size_t println (int, int=DEC)
 
size_t println (unsigned int, int=DEC)
 
size_t println (long, int=DEC)
 
size_t println (unsigned long, int=DEC)
 
size_t println (double, int=2)
 
size_t println (const Printable &)
 
size_t println (void)
 
size_t write (const char *str)
 
size_t write (const char *buffer, size_t size)
 

Static Private Member Functions

static void onReceiveService (uint8_t *, int)
 
static void onRequestService (void)
 

Static Private Attributes

static uint8_t rxBuffer []
 
static uint8_t rxBufferIndex = 0
 
static uint8_t rxBufferLength = 0
 
static uint8_t transmitting = 0
 
static uint8_t txAddress = 0
 
static uint8_t txBuffer []
 
static uint8_t txBufferIndex = 0
 
static uint8_t txBufferLength = 0
 
static void(* user_onReceive )(int)
 
static void(* user_onRequest )(void)
 

Additional Inherited Members

- Protected Member Functions inherited from Stream
int findMulti (struct MultiTarget *targets, int tCount)
 
float parseFloat (char ignore)
 
long parseInt (char ignore)
 
int peekNextDigit (LookaheadMode lookahead, bool detectDecimal)
 
int timedPeek ()
 
int timedRead ()
 
- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 
- Protected Attributes inherited from Stream
unsigned long _startMillis
 
unsigned long _timeout
 

Detailed Description

Definition at line 33 of file Wire.h.

Constructor & Destructor Documentation

TwoWire::TwoWire ( )

Definition at line 48 of file Wire.cpp.

Member Function Documentation

int TwoWire::available ( void  )
virtual

Implements Stream.

Definition at line 235 of file Wire.cpp.

void TwoWire::begin ( void  )

Definition at line 54 of file Wire.cpp.

void TwoWire::begin ( uint8_t  address)

Definition at line 65 of file Wire.cpp.

void TwoWire::begin ( int  address)

Definition at line 73 of file Wire.cpp.

void TwoWire::beginTransmission ( uint8_t  address)

Definition at line 140 of file Wire.cpp.

void TwoWire::beginTransmission ( int  address)

Definition at line 151 of file Wire.cpp.

void TwoWire::end ( void  )

Definition at line 78 of file Wire.cpp.

uint8_t TwoWire::endTransmission ( void  )

Definition at line 184 of file Wire.cpp.

uint8_t TwoWire::endTransmission ( uint8_t  sendStop)

Definition at line 169 of file Wire.cpp.

void TwoWire::flush ( void  )
virtual

Reimplemented from Print.

Definition at line 270 of file Wire.cpp.

void TwoWire::onReceive ( void(*)(int function)

Definition at line 316 of file Wire.cpp.

void TwoWire::onReceiveService ( uint8_t *  inBytes,
int  numBytes 
)
staticprivate

Definition at line 276 of file Wire.cpp.

void TwoWire::onRequest ( void(*)(void function)

Definition at line 322 of file Wire.cpp.

void TwoWire::onRequestService ( void  )
staticprivate

Definition at line 301 of file Wire.cpp.

int TwoWire::peek ( void  )
virtual

Implements Stream.

Definition at line 259 of file Wire.cpp.

int TwoWire::read ( void  )
virtual

Implements Stream.

Definition at line 243 of file Wire.cpp.

uint8_t TwoWire::requestFrom ( uint8_t  address,
uint8_t  quantity 
)

Definition at line 125 of file Wire.cpp.

uint8_t TwoWire::requestFrom ( uint8_t  address,
uint8_t  quantity,
uint8_t  sendStop 
)

Definition at line 121 of file Wire.cpp.

uint8_t TwoWire::requestFrom ( uint8_t  address,
uint8_t  quantity,
uint32_t  iaddress,
uint8_t  isize,
uint8_t  sendStop 
)

Definition at line 88 of file Wire.cpp.

uint8_t TwoWire::requestFrom ( int  address,
int  quantity 
)

Definition at line 130 of file Wire.cpp.

uint8_t TwoWire::requestFrom ( int  address,
int  quantity,
int  sendStop 
)

Definition at line 135 of file Wire.cpp.

void TwoWire::setClock ( uint32_t  clock)

Definition at line 83 of file Wire.cpp.

size_t TwoWire::write ( uint8_t  data)
virtual

Implements Print.

Definition at line 192 of file Wire.cpp.

size_t TwoWire::write ( const uint8_t *  data,
size_t  quantity 
)
virtual

Reimplemented from Print.

Definition at line 217 of file Wire.cpp.

size_t TwoWire::write ( unsigned long  n)
inline

Definition at line 75 of file Wire.h.

size_t TwoWire::write ( long  n)
inline

Definition at line 76 of file Wire.h.

size_t TwoWire::write ( unsigned int  n)
inline

Definition at line 77 of file Wire.h.

size_t TwoWire::write ( int  n)
inline

Definition at line 78 of file Wire.h.

Member Data Documentation

uint8_t TwoWire::rxBuffer
staticprivate

Definition at line 36 of file Wire.h.

uint8_t TwoWire::rxBufferIndex = 0
staticprivate

Definition at line 37 of file Wire.h.

uint8_t TwoWire::rxBufferLength = 0
staticprivate

Definition at line 38 of file Wire.h.

uint8_t TwoWire::transmitting = 0
staticprivate

Definition at line 45 of file Wire.h.

uint8_t TwoWire::txAddress = 0
staticprivate

Definition at line 40 of file Wire.h.

uint8_t TwoWire::txBuffer
staticprivate

Definition at line 41 of file Wire.h.

uint8_t TwoWire::txBufferIndex = 0
staticprivate

Definition at line 42 of file Wire.h.

uint8_t TwoWire::txBufferLength = 0
staticprivate

Definition at line 43 of file Wire.h.

void(* TwoWire::user_onReceive)(int)
staticprivate

Definition at line 47 of file Wire.h.

void(* TwoWire::user_onRequest)(void)
staticprivate

Definition at line 46 of file Wire.h.


The documentation for this class was generated from the following files:


arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03