17 #include <QtCore/QByteArray> 31 virtual void send(
const QByteArray &data) = 0;
34 virtual int read(
const QByteArray &data) = 0;
37 virtual bool connect(
const QString &devicePath,
int deviceId) = 0;
Communicates with MSP processor over I2C bus.
Definition: mspI2cInterface.h:22
virtual void disconnect()=0
Disconnect from MSP.
virtual void send(const QByteArray &data)=0
Send data to a device.
virtual bool connect(const QString &devicePath, int deviceId)=0
Establish connection with MSP over I2C bus.
MspI2cInterface()=default
virtual int read(const QByteArray &data)=0
Reads data by given I2C command number and returns the result.
virtual ~MspI2cInterface()=default
Definition: brickFactory.h:21