trikRuntime
|
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it. More...
#include <hardwareAbstractionInterface.h>
Public Member Functions | |
HardwareAbstractionInterface ()=default | |
virtual | ~HardwareAbstractionInterface ()=default |
virtual MspI2cInterface & | mspI2c ()=0 |
Returns MSP I2C bus implementation. More... | |
virtual MspUsbInterface & | mspUsb ()=0 |
Returns MSP USB bus implementation. More... | |
virtual SystemConsoleInterface & | systemConsole ()=0 |
Returns system console wrapper, able to execute system command and launch processes. More... | |
virtual EventFileInterface * | createEventFile (const QString &fileName, QThread &thread) const =0 |
Creates new event file, passes ownership to a caller. More... | |
virtual FifoInterface * | createFifo (const QString &fileName) const =0 |
Creates new FIFO, passes ownership to a caller. More... | |
virtual InputDeviceFileInterface * | createInputDeviceFile (const QString &fileName) const =0 |
Creates new input device file, passes ownership to a caller. More... | |
virtual OutputDeviceFileInterface * | createOutputDeviceFile (const QString &fileName) const =0 |
Creates new output device file, passes ownership to a caller. More... | |
virtual QVector< uint8_t > | captureV4l2StillImage (const QString &port, const QString &pathToPic) const =0 |
Returns QVector with info about picture pixels. More... | |
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it.
|
default |
|
virtualdefault |
|
pure virtual |
Returns QVector with info about picture pixels.
port | - port name for device |
pathToPic | - path to picture |
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Creates new event file, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of an event file. |
thread | - background thread where all socket events will be processed. |
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Creates new FIFO, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a FIFO file. |
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Creates new input device file, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a device file. |
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Creates new output device file, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a device file. |
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Returns MSP I2C bus implementation.
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Returns MSP USB bus implementation.
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.
|
pure virtual |
Returns system console wrapper, able to execute system command and launch processes.
Implemented in trikHal::stub::StubHardwareAbstraction, and trikHal::trik::TrikHardwareAbstraction.