22#include "api/HardwareI2C.h"
61 void beginTransmission(
uint8_t address);
65 size_t requestFrom(
uint8_t address,
size_t len);
66 void onReceive(
void (*)(
int));
67 void onRequest(
void (*)(
void));
90 if (
result ==
nullptr && p_source !=
nullptr) {
91 result = p_source->getI2C();
98extern I2CWrapper
Wire;
Definition HardwareI2C.h:28
Abstract interface for providing I2C hardware implementations.
Definition Sources.h:36
I2C wrapper class that provides flexible hardware abstraction.
Definition I2CWrapper.h:51
void setSource(I2CSource *source)
alternatively defines a class that provides the I2C implementation
Definition I2CWrapper.h:79
void setI2C(HardwareI2C *i2c)
defines the i2c implementation: use nullptr to reset.
Definition I2CWrapper.h:74
We provide the WiFi class to simulate the Arduino WIFI. In in Linux we can expect that networking is ...
Definition CanMsg.cpp:31
I2CWrapper Wire
Global Wire instance used by Arduino API functions and direct access.
Definition I2CWrapper.cpp:24