trikRuntime
trikHal::trik::TrikMspUsb Class Reference

Real implementation of USB bus communicator. More...

#include <trikMspUsb.h>

Inheritance diagram for trikHal::trik::TrikMspUsb:
Collaboration diagram for trikHal::trik::TrikMspUsb:

Public Member Functions

 TrikMspUsb ()=default
 
 ~TrikMspUsb () override
 
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

Real implementation of USB bus communicator.

Constructor & Destructor Documentation

trikHal::trik::TrikMspUsb::TrikMspUsb ( )
default
TrikMspUsb::~TrikMspUsb ( )
override

Member Function Documentation

bool TrikMspUsb::connect ( )
overridevirtual

Establish connection with MSP over USB bus.

Implements trikHal::MspUsbInterface.

void TrikMspUsb::disconnect ( )
overridevirtual

Disconnect from MSP.

Implements trikHal::MspUsbInterface.

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

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

Implements trikHal::MspUsbInterface.

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

Send data to MSP.

Implements trikHal::MspUsbInterface.


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