25#include "api/HardwareI2C.h"
26#include "ArduinoLogger.h"
48 void begin()
override;
49 void begin(
uint8_t address)
override;
52 void beginTransmission(
uint8_t address)
override;
54 uint8_t endTransmission(
void) {
return endTransmission(
true);};
55 size_t requestFrom(
uint8_t address,
size_t len,
bool stopBit)
override;
56 size_t requestFrom(
uint8_t address,
size_t len)
override;
57 void onReceive(
void (*)(
int))
override;
58 void onRequest(
void (*)(
void))
override;
60 size_t write(
const uint8_t*,
size_t)
override;
61 int available()
override;
64 void flush()
override {
fsync(i2c_fd);}
66 operator bool() {
return is_open; }
72 std::vector<uint8_t> i2c_rx_buffer;
73 std::vector<uint8_t> i2c_tx_buffer;
75 const char* i2c_device;
Implementation of I2C communication for Raspberry Pi using Linux I2C device interface.
Definition HardwareI2C_RPI.h:40
Definition HardwareI2C.h:28
We provide the WiFi class to simulate the Arduino WIFI. In in Linux we can expect that networking is ...
Definition CanMsg.cpp:31