STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
Wire.h File Reference

TWI/I2C (Wire) library, master and slave, for Arduino and Wiring. More...

#include <functional>
#include "Arduino.h"
#include "api/HardwareI2C.h"
#include "utility/twi.h"

Classes

class  TwoWire
 TWI/I2C (Wire) controller, usable as master or slave. More...
 

Macros

#define BUFFER_LENGTH   32
 Minimal Rx/Tx buffer length in bytes.
 
#define WIRE_MAX_TX_BUFF_LENGTH   1024U
 Maximum Tx buffer length in bytes.
 
#define WIRE_HAS_END   1
 Defined when Wire provides end().
 

Variables

TwoWire Wire
 

Detailed Description

TWI/I2C (Wire) library, master and slave, for Arduino and Wiring.

Macro Definition Documentation

◆ BUFFER_LENGTH

#define BUFFER_LENGTH   32

Minimal Rx/Tx buffer length in bytes.

Note
Buffers length is increased when needed, but the Tx buffer is limited to WIRE_MAX_TX_BUFF_LENGTH to avoid too much stack consumption. Buffer length and maximum buffer length are limited by the uint16_t type.

◆ WIRE_MAX_TX_BUFF_LENGTH

#define WIRE_MAX_TX_BUFF_LENGTH   1024U

Maximum Tx buffer length in bytes.

Can be overridden before including Wire.h.

Note
Limited by the uint16_t type.