trikRuntime
|
Real implementation of I2C bus communicator. More...
#include <trikI2c.h>
Public Member Functions | |
TrikI2c ()=default | |
Constructor. More... | |
~TrikI2c () override | |
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 |
Real implementation of I2C bus communicator.
|
default |
Constructor.
|
override |
|
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.