|
trikRuntime
|
Provides direct interaction with I2C device. More...
#include <mspUsbCommunicator.h>


Public Member Functions | |
| MspUsbCommunicator (trikHal::MspUsbInterface &usb) | |
| Constructor. More... | |
| ~MspUsbCommunicator () override | |
| void | send (const QByteArray &data) override |
| Send data to current device, if it is connected. More... | |
| int | read (const QByteArray &data) override |
| Reads data by given I2C command number and returns the result. More... | |
| Status | status () const override |
| Returns current status of the device. More... | |
Public Member Functions inherited from trikControl::DeviceInterface | |
| DeviceInterface ()=default | |
| virtual | ~DeviceInterface ()=default |
Additional Inherited Members | |
Public Types inherited from trikControl::DeviceInterface | |
| enum | Status { Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting, Status::ready, Status::stopping } |
| Device status. More... | |
Static Public Member Functions inherited from trikControl::DeviceInterface | |
| static Status | combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent) |
| Helper method to return status of a device relying on other device to work. More... | |
Provides direct interaction with I2C device.
| MspUsbCommunicator::MspUsbCommunicator | ( | trikHal::MspUsbInterface & | usb | ) |
Constructor.
| usb | - USB bus communicator. |
|
override |
|
overridevirtual |
Reads data by given I2C command number and returns the result.
Implements trikControl::MspCommunicatorInterface.
|
overridevirtual |
Send data to current device, if it is connected.
Implements trikControl::MspCommunicatorInterface.
|
overridevirtual |
Returns current status of the device.
Implements trikControl::DeviceInterface.