trikRuntime
|
Hardware abstraction layer for a real robot. More...
#include <trikHardwareAbstraction.h>
Public Member Functions | |
TrikHardwareAbstraction () | |
~TrikHardwareAbstraction () override | |
MspI2cInterface & | mspI2c () override |
Returns MSP I2C bus implementation. More... | |
MspUsbInterface & | mspUsb () override |
Returns MSP USB bus implementation. More... | |
SystemConsoleInterface & | systemConsole () override |
Returns system console wrapper, able to execute system command and launch processes. More... | |
EventFileInterface * | createEventFile (const QString &fileName, QThread &thread) const override |
Creates new event file, passes ownership to a caller. More... | |
FifoInterface * | createFifo (const QString &fileName) const override |
Creates new FIFO, passes ownership to a caller. More... | |
InputDeviceFileInterface * | createInputDeviceFile (const QString &fileName) const override |
Creates new input device file, passes ownership to a caller. More... | |
OutputDeviceFileInterface * | createOutputDeviceFile (const QString &fileName) const override |
Creates new output device file, passes ownership to a caller. More... | |
QVector< uint8_t > | captureV4l2StillImage (const QString &port, const QString &pathToPic) const override |
Returns QVector with info about picture pixels. More... | |
Public Member Functions inherited from trikHal::HardwareAbstractionInterface | |
HardwareAbstractionInterface ()=default | |
virtual | ~HardwareAbstractionInterface ()=default |
Hardware abstraction layer for a real robot.
TrikHardwareAbstraction::TrikHardwareAbstraction | ( | ) |
|
override |
|
overridevirtual |
Returns QVector with info about picture pixels.
port | - port name for device |
pathToPic | - path to picture |
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
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. |
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Creates new FIFO, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a FIFO file. |
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Creates new input device file, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a device file. |
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Creates new output device file, passes ownership to a caller.
fileName | - file name (with path, relative or absolute) of a device file. |
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Returns MSP I2C bus implementation.
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Returns MSP USB bus implementation.
Implements trikHal::HardwareAbstractionInterface.
|
overridevirtual |
Returns system console wrapper, able to execute system command and launch processes.
Implements trikHal::HardwareAbstractionInterface.