trikRuntime
trikHal::trik::TrikHardwareAbstraction Class Reference

Hardware abstraction layer for a real robot. More...

#include <trikHardwareAbstraction.h>

Inheritance diagram for trikHal::trik::TrikHardwareAbstraction:
Collaboration diagram for trikHal::trik::TrikHardwareAbstraction:

Public Member Functions

 TrikHardwareAbstraction ()
 
 ~TrikHardwareAbstraction () 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 layer for a real robot.

Constructor & Destructor Documentation

TrikHardwareAbstraction::TrikHardwareAbstraction ( )
TrikHardwareAbstraction::~TrikHardwareAbstraction ( )
override

Member Function Documentation

QVector< uint8_t > TrikHardwareAbstraction::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 * TrikHardwareAbstraction::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 * TrikHardwareAbstraction::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 * TrikHardwareAbstraction::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 * TrikHardwareAbstraction::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 & TrikHardwareAbstraction::mspI2c ( )
overridevirtual

Returns MSP I2C bus implementation.

Implements trikHal::HardwareAbstractionInterface.

MspUsbInterface & TrikHardwareAbstraction::mspUsb ( )
overridevirtual

Returns MSP USB bus implementation.

Implements trikHal::HardwareAbstractionInterface.

SystemConsoleInterface & TrikHardwareAbstraction::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: