trikRuntime
trikHal::MspI2cInterface Class Referenceabstract

Communicates with MSP processor over I2C bus. More...

#include <mspI2cInterface.h>

Inheritance diagram for trikHal::MspI2cInterface:

Public Member Functions

 MspI2cInterface ()=default
 
virtual ~MspI2cInterface ()=default
 
virtual void send (const QByteArray &data)=0
 Send data to a device. More...
 
virtual int read (const QByteArray &data)=0
 Reads data by given I2C command number and returns the result. More...
 
virtual bool connect (const QString &devicePath, int deviceId)=0
 Establish connection with MSP over I2C bus. More...
 
virtual void disconnect ()=0
 Disconnect from MSP. More...
 

Detailed Description

Communicates with MSP processor over I2C bus.

Constructor & Destructor Documentation

trikHal::MspI2cInterface::MspI2cInterface ( )
default
virtual trikHal::MspI2cInterface::~MspI2cInterface ( )
virtualdefault

Member Function Documentation

virtual bool trikHal::MspI2cInterface::connect ( const QString &  devicePath,
int  deviceId 
)
pure virtual

Establish connection with MSP over I2C bus.

Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.

virtual void trikHal::MspI2cInterface::disconnect ( )
pure virtual

Disconnect from MSP.

Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.

virtual int trikHal::MspI2cInterface::read ( const QByteArray &  data)
pure virtual

Reads data by given I2C command number and returns the result.

Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.

virtual void trikHal::MspI2cInterface::send ( const QByteArray &  data)
pure virtual

Send data to a device.

Implemented in trikHal::trik::TrikI2c, and trikHal::stub::StubMspI2C.


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