trikRuntime
trikHal::stub::StubMspUsb Class Reference

Empty implementation of MSP USB bus communicator. Only logs operations, returns 0 on all "read" calls. More...

#include <stubMspUsb.h>

Inheritance diagram for trikHal::stub::StubMspUsb:
Collaboration diagram for trikHal::stub::StubMspUsb:

Public Member Functions

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

Detailed Description

Empty implementation of MSP USB bus communicator. Only logs operations, returns 0 on all "read" calls.

Member Function Documentation

bool StubMspUsb::connect ( )
overridevirtual

Establish connection with MSP over USB bus.

Implements trikHal::MspUsbInterface.

void StubMspUsb::disconnect ( )
overridevirtual

Disconnect from MSP.

Implements trikHal::MspUsbInterface.

int StubMspUsb::read ( const QByteArray &  data)
overridevirtual

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

Implements trikHal::MspUsbInterface.

void StubMspUsb::send ( const QByteArray &  data)
overridevirtual

Send data to MSP.

Implements trikHal::MspUsbInterface.


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