|
trikRuntime
|
Empty implementation of I2C bus communicator. Only logs operations, returns 0 on all "read" calls. More...
#include <stubMspI2c.h>


Public Member Functions | |
| void | send (const QByteArray &data) override |
| Send data to a device. More... | |
| int | read (const QByteArray &data) override |
| Reads data by given I2C command number and returns the result. More... | |
| bool | connect (const QString &devicePath, int deviceId) override |
| Establish connection with MSP over I2C bus. More... | |
| void | disconnect () override |
| Disconnect from MSP. More... | |
Public Member Functions inherited from trikHal::MspI2cInterface | |
| MspI2cInterface ()=default | |
| virtual | ~MspI2cInterface ()=default |
Empty implementation of I2C bus communicator. Only logs operations, returns 0 on all "read" calls.
|
overridevirtual |
Establish connection with MSP over I2C bus.
Implements trikHal::MspI2cInterface.
|
overridevirtual |
Disconnect from MSP.
Implements trikHal::MspI2cInterface.
|
overridevirtual |
Reads data by given I2C command number and returns the result.
Implements trikHal::MspI2cInterface.
|
overridevirtual |
Send data to a device.
Implements trikHal::MspI2cInterface.