Class HardwareI2C
Inherits the following classes: Stream
Public Functions
Type | Name |
---|---|
virtual int | available () = 0 |
bool | begin () |
bool | begin (uint8_t address) |
virtual bool | begin (int8_t sda, int8_t scl, uint32_t frequency=0) = 0 |
virtual bool | begin (uint8_t address, int8_t sda, int8_t scl, uint32_t frequency=0) = 0 |
virtual void | beginTransmission (uint8_t address) = 0 |
virtual bool | end () = 0 |
virtual uint8_t | endTransmission (bool stopBit) = 0 |
uint8_t | endTransmission () |
virtual void | flush () = 0 |
uint32_t | getClock () |
void | onReceive (void(*)(int) cb) |
void | onRequest (void(*)(void) cb) |
virtual int | peek () = 0 |
virtual int | read () = 0 |
virtual size_t | requestFrom (uint8_t address, size_t len, bool stopBit) = 0 |
size_t | requestFrom (uint8_t address, size_t len) |
virtual bool | setClock (uint32_t freq) = 0 |
virtual bool | setPins (int8_t sda, int8_t scl) = 0 |
virtual size_t | write (const uint8_t * data, size_t len) = 0 |
virtual size_t | write (uint8_t data) |
Protected Attributes
Type | Name |
---|---|
uint32_t | _freq = = 0 |
int8_t | _scl = = -1 |
int8_t | _sda = = -1 |
void(* | onReceiveCallback |
void(* | onRequestCallback |
Public Functions Documentation
function available
function begin [1/4]
function begin [2/4]
function begin [3/4]
function begin [4/4]
virtual bool HardwareI2C::begin (
uint8_t address,
int8_t sda,
int8_t scl,
uint32_t frequency=0
) = 0
function beginTransmission
function end
function endTransmission [1/2]
function endTransmission [2/2]
function flush
function getClock
function onReceive
function onRequest
function peek
function read
function requestFrom [1/2]
function requestFrom [2/2]
function setClock
function setPins
function write [1/2]
function write [2/2]
Protected Attributes Documentation
variable _freq
variable _scl
variable _sda
variable onReceiveCallback
variable onRequestCallback
The documentation for this class was generated from the following file cores/common/arduino/src/HardwareI2C.h