trikRuntime
|
Communicates with MSP processor over I2C bus. More...
#include <mspI2cInterface.h>
Public Member Functions | |
MspI2cInterface ()=default | |
virtual | ~MspI2cInterface ()=default |
virtual void | send (const QByteArray &data)=0 |
Send data to a device. More... | |
virtual int | read (const QByteArray &data)=0 |
Reads data by given I2C command number and returns the result. More... | |
virtual bool | connect (const QString &devicePath, int deviceId)=0 |
Establish connection with MSP over I2C bus. More... | |
virtual void | disconnect ()=0 |
Disconnect from MSP. More... | |
Communicates with MSP processor over I2C bus.
|
default |
|
virtualdefault |
|
pure virtual |
Establish connection with MSP over I2C bus.
Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.
|
pure virtual |
Disconnect from MSP.
Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.
|
pure virtual |
Reads data by given I2C command number and returns the result.
Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.
|
pure virtual |
Send data to a device.
Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.