Fonctions membres publiques | Liste de tous les membres
Référence de la classe TwoWire

#include <Wire.h>

Graphe d'héritage de TwoWire:
Stream Print

Fonctions membres publiques

 TwoWire (SERCOM *s, uint8_t pinSDA, uint8_t pinSCL)
 
void begin ()
 
void begin (uint8_t, bool enableGeneralCall=false)
 
void end ()
 
void setClock (uint32_t)
 
void beginTransmission (uint8_t)
 
uint8_t endTransmission (bool stopBit)
 
uint8_t endTransmission (void)
 
uint8_t requestFrom (uint8_t address, size_t quantity, bool stopBit)
 
uint8_t requestFrom (uint8_t address, size_t quantity)
 
size_t write (uint8_t data)
 
size_t write (const uint8_t *data, size_t quantity)
 
virtual int available (void)
 
virtual int read (void)
 
virtual int peek (void)
 
virtual void flush (void)
 
void onReceive (void(*)(int))
 
void onRequest (void(*)(void))
 
size_t write (unsigned long n)
 
size_t write (long n)
 
size_t write (unsigned int n)
 
size_t write (int n)
 
void onService (void)
 
virtual size_t write (uint8_t)=0
 
size_t write (const char *str)
 
virtual size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *buffer, size_t size)
 
- Fonctions membres publiques hérités de Stream
 Stream ()
 
void setTimeout (unsigned long timeout)
 
unsigned long getTimeout (void)
 
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)
 
long parseInt (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
float parseFloat (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)
 
- Fonctions membres publiques hérités de Print
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (const char *str)
 
size_t write (const char *buffer, size_t size)
 
virtual int availableForWrite ()
 
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)
 

Documentation des constructeurs et destructeur

◆ TwoWire()

TwoWire::TwoWire ( SERCOM s,
uint8_t  pinSDA,
uint8_t  pinSCL 
)

Documentation des fonctions membres

◆ available()

int TwoWire::available ( void  )
virtual

Implémente Stream.

◆ begin() [1/2]

void TwoWire::begin ( void  )

◆ begin() [2/2]

void TwoWire::begin ( uint8_t  address,
bool  enableGeneralCall = false 
)

◆ beginTransmission()

void TwoWire::beginTransmission ( uint8_t  address)

◆ end()

void TwoWire::end ( )

◆ endTransmission() [1/2]

uint8_t TwoWire::endTransmission ( bool  stopBit)

◆ endTransmission() [2/2]

uint8_t TwoWire::endTransmission ( void  )

◆ flush()

void TwoWire::flush ( void  )
virtual

Réimplémentée à partir de Print.

◆ onReceive()

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

◆ onRequest()

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

◆ onService()

void TwoWire::onService ( void  )

◆ peek()

int TwoWire::peek ( void  )
virtual

Implémente Stream.

◆ read()

int TwoWire::read ( void  )
virtual

Implémente Stream.

◆ requestFrom() [1/2]

uint8_t TwoWire::requestFrom ( uint8_t  address,
size_t  quantity,
bool  stopBit 
)

◆ requestFrom() [2/2]

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

◆ setClock()

void TwoWire::setClock ( uint32_t  baudrate)

◆ write() [1/10]

size_t TwoWire::write ( uint8_t  data)
virtual

Implémente Print.

◆ write() [2/10]

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

Réimplémentée à partir de Print.

◆ write() [3/10]

size_t TwoWire::write ( unsigned long  n)
inline

◆ write() [4/10]

size_t TwoWire::write ( long  n)
inline

◆ write() [5/10]

size_t TwoWire::write ( unsigned int  n)
inline

◆ write() [6/10]

size_t TwoWire::write ( int  n)
inline

◆ write() [7/10]

size_t Print::write
inline

◆ write() [8/10]

size_t Print::write
inline

◆ write() [9/10]

virtual size_t Print::write

◆ write() [10/10]

size_t Print::write