|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGCSerialPortInfo.h>
Inheritance diagram for QGCSerialPortInfo:
Collaboration diagram for QGCSerialPortInfo:Public Types | |
| enum | BoardType_t { BoardTypePixhawk = 0 , BoardTypeSiKRadio , BoardTypeOpenPilot , BoardTypeRTKGPS , BoardTypeUnknown } |
Public Member Functions | |
| QGCSerialPortInfo () | |
| QGCSerialPortInfo (const QSerialPort &port) | |
| ~QGCSerialPortInfo () | |
| bool | getBoardInfo (BoardType_t &boardType, QString &name) const |
| bool | canFlash () const |
| bool | isBootloader () const |
| bool | isBlackCube () const |
Public Member Functions inherited from QSerialPortInfo | |
| QSerialPortInfo () | |
| QSerialPortInfo (const QSerialPort &port) | |
| QSerialPortInfo (const QString &name) | |
| QSerialPortInfo (const QSerialPortInfo &other) | |
| QSerialPortInfo (const QSerialPortInfoPrivate &dd) | |
| ~QSerialPortInfo () | |
| QSerialPortInfo & | operator= (const QSerialPortInfo &other) |
| void | swap (QSerialPortInfo &other) |
| QString | portName () const |
| QString | systemLocation () const |
| QString | description () const |
| QString | manufacturer () const |
| QString | serialNumber () const |
| quint16 | vendorIdentifier () const |
| quint16 | productIdentifier () const |
| bool | hasVendorIdentifier () const |
| bool | hasProductIdentifier () const |
| bool | isNull () const |
Static Public Member Functions | |
| static bool | isSystemPort (const QSerialPortInfo &port) |
| static QList< QGCSerialPortInfo > | availablePorts () |
| Override of QSerialPortInfo::availablePorts. | |
Static Public Member Functions inherited from QSerialPortInfo | |
| static QList< qint32 > | standardBaudRates () |
| static QList< QSerialPortInfo > | availablePorts () |
Friends | |
| class | QGCSerialPortInfoTest |
QGC's version of Qt QSerialPortInfo. It provides additional information about board types that QGC cares about.
Definition at line 17 of file QGCSerialPortInfo.h.
| Enumerator | |
|---|---|
| BoardTypePixhawk | |
| BoardTypeSiKRadio | |
| BoardTypeOpenPilot | |
| BoardTypeRTKGPS | |
| BoardTypeUnknown | |
Definition at line 25 of file QGCSerialPortInfo.h.
| QGCSerialPortInfo::QGCSerialPortInfo | ( | ) |
Definition at line 19 of file QGCSerialPortInfo.cc.
|
explicit |
Definition at line 25 of file QGCSerialPortInfo.cc.
| QGCSerialPortInfo::~QGCSerialPortInfo | ( | ) |
Definition at line 31 of file QGCSerialPortInfo.cc.
|
static |
Override of QSerialPortInfo::availablePorts.
Definition at line 243 of file QGCSerialPortInfo.cc.
References QSerialPortInfo::availablePorts(), availablePorts(), and isSystemPort().
Referenced by FirmwareUpgradeController::availableBoardsName(), and availablePorts().
| bool QGCSerialPortInfo::canFlash | ( | ) | const |
Definition at line 300 of file QGCSerialPortInfo.cc.
References BoardTypePixhawk, BoardTypeSiKRadio, and getBoardInfo().
| bool QGCSerialPortInfo::getBoardInfo | ( | QGCSerialPortInfo::BoardType_t & | boardType, |
| QString & | name | ||
| ) | const |
Definition at line 175 of file QGCSerialPortInfo.cc.
References BoardTypeUnknown, QSerialPortInfo::description(), QSerialPortInfo::isNull(), QSerialPortInfo::manufacturer(), QSerialPortInfo::productIdentifier(), and QSerialPortInfo::vendorIdentifier().
Referenced by canFlash(), and isBootloader().
| bool QGCSerialPortInfo::isBlackCube | ( | ) | const |
Definition at line 271 of file QGCSerialPortInfo.cc.
References QSerialPortInfo::description().
| bool QGCSerialPortInfo::isBootloader | ( | ) | const |
Definition at line 260 of file QGCSerialPortInfo.cc.
References BoardTypePixhawk, QSerialPortInfo::description(), and getBoardInfo().
Referenced by SerialWorker::connectToPort().
|
static |
Known operating system peripherals that are NEVER a peripheral that we should connect to.
Definition at line 276 of file QGCSerialPortInfo.cc.
References QSerialPortInfo::systemLocation().
Referenced by availablePorts().
|
friend |
Definition at line 19 of file QGCSerialPortInfo.h.