trikRuntime
trikHal::stub::StubHardwareAbstraction Class Reference

Hardware abstraction for use without real robot. More...

#include <stubHardwareAbstraction.h>

Inheritance diagram for trikHal::stub::StubHardwareAbstraction:
Collaboration diagram for trikHal::stub::StubHardwareAbstraction:

Public Member Functions

 StubHardwareAbstraction ()
 
 ~StubHardwareAbstraction () override
 
MspI2cInterfacemspI2c () override
 Returns MSP I2C bus implementation. More...
 
MspUsbInterfacemspUsb () override
 Returns MSP USB bus implementation. More...
 
SystemConsoleInterfacesystemConsole () override
 Returns system console wrapper, able to execute system command and launch processes. More...
 
EventFileInterfacecreateEventFile (const QString &fileName, QThread &thread) const override
 Creates new event file, passes ownership to a caller. More...
 
FifoInterfacecreateFifo (const QString &fileName) const override
 Creates new FIFO, passes ownership to a caller. More...
 
InputDeviceFileInterfacecreateInputDeviceFile (const QString &fileName) const override
 Creates new input device file, passes ownership to a caller. More...
 
OutputDeviceFileInterfacecreateOutputDeviceFile (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
 

Detailed Description

Hardware abstraction for use without real robot.

Constructor & Destructor Documentation

StubHardwareAbstraction::StubHardwareAbstraction ( )
StubHardwareAbstraction::~StubHardwareAbstraction ( )
override

Member Function Documentation

QVector< uint8_t > StubHardwareAbstraction::captureV4l2StillImage ( const QString &  port,
const QString &  pathToPic 
) const
overridevirtual

Returns QVector with info about picture pixels.

Parameters
port- port name for device
pathToPic- path to picture

Implements trikHal::HardwareAbstractionInterface.

EventFileInterface * StubHardwareAbstraction::createEventFile ( const QString &  fileName,
QThread &  thread 
) const
overridevirtual

Creates new event file, passes ownership to a caller.

Parameters
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.

FifoInterface * StubHardwareAbstraction::createFifo ( const QString &  fileName) const
overridevirtual

Creates new FIFO, passes ownership to a caller.

Parameters
fileName- file name (with path, relative or absolute) of a FIFO file.

Implements trikHal::HardwareAbstractionInterface.

InputDeviceFileInterface * StubHardwareAbstraction::createInputDeviceFile ( const QString &  fileName) const
overridevirtual

Creates new input device file, passes ownership to a caller.

Parameters
fileName- file name (with path, relative or absolute) of a device file.

Implements trikHal::HardwareAbstractionInterface.

OutputDeviceFileInterface * StubHardwareAbstraction::createOutputDeviceFile ( const QString &  fileName) const
overridevirtual

Creates new output device file, passes ownership to a caller.

Parameters
fileName- file name (with path, relative or absolute) of a device file.

Implements trikHal::HardwareAbstractionInterface.

MspI2cInterface & StubHardwareAbstraction::mspI2c ( )
overridevirtual

Returns MSP I2C bus implementation.

Implements trikHal::HardwareAbstractionInterface.

MspUsbInterface & StubHardwareAbstraction::mspUsb ( )
overridevirtual

Returns MSP USB bus implementation.

Implements trikHal::HardwareAbstractionInterface.

SystemConsoleInterface & StubHardwareAbstraction::systemConsole ( )
overridevirtual

Returns system console wrapper, able to execute system command and launch processes.

Implements trikHal::HardwareAbstractionInterface.


The documentation for this class was generated from the following files: