trikRuntime
trikHal::MspUsbInterface Class Referenceabstract

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

#include <mspUsbInterface.h>

Inheritance diagram for trikHal::MspUsbInterface:

Public Member Functions

 MspUsbInterface ()=default
 
virtual ~MspUsbInterface ()=default
 
virtual void send (const QByteArray &data)=0
 Send data to MSP. More...
 
virtual int read (const QByteArray &data)=0
 Reads data by given MSP command number and returns the result. More...
 
virtual bool connect ()=0
 Establish connection with MSP over USB bus. More...
 
virtual void disconnect ()=0
 Disconnect from MSP. More...
 

Detailed Description

Communicates with MSP processor over USB bus.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool trikHal::MspUsbInterface::connect ( )
pure virtual

Establish connection with MSP over USB bus.

Implemented in trikHal::trik::TrikMspUsb, and trikHal::stub::StubMspUsb.

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

Disconnect from MSP.

Implemented in trikHal::trik::TrikMspUsb, and trikHal::stub::StubMspUsb.

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

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

Implemented in trikHal::trik::TrikMspUsb, and trikHal::stub::StubMspUsb.

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

Send data to MSP.

Implemented in trikHal::trik::TrikMspUsb, and trikHal::stub::StubMspUsb.


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