30 void send(
const QByteArray &data)
override;
31 int read(
const QByteArray &data)
override;
32 bool connect(
const QString &devicePath,
int deviceId)
override;
37 int mDeviceFileDescriptor = -1;
~TrikI2c() override
Definition: trikI2c.cpp:85
Communicates with MSP processor over I2C bus.
Definition: mspI2cInterface.h:22
void send(const QByteArray &data) override
Send data to a device.
Definition: trikI2c.cpp:90
TrikI2c()=default
Constructor.
bool connect(const QString &devicePath, int deviceId) override
Establish connection with MSP over I2C bus.
Definition: trikI2c.cpp:110
void disconnect() override
Disconnect from MSP.
Definition: trikI2c.cpp:126
Real implementation of I2C bus communicator.
Definition: trikI2c.h:23
int read(const QByteArray &data) override
Reads data by given I2C command number and returns the result.
Definition: trikI2c.cpp:99
Definition: brickFactory.h:21