QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SerialPortManager::Port Struct Reference

#include <SerialPortManager.h>

Public Member Functions

bool hasName (const QString &name) const
 Whether name is the port's system location, port name or stable name.

Public Attributes

QString systemLocation
QString portName
QGCSerialPortInfo::BoardType_t boardType = QGCSerialPortInfo::BoardTypeUnknown
QString boardName
bool bootloader = false
QString physicalDeviceId = {}
 Shared by interfaces with the same VID/PID/serial; empty when identity is unavailable.
QString description = {}
QString displayName = {}
QString stableName = {}
bool hardwareFlowControl = true

Detailed Description

Definition at line 32 of file SerialPortManager.h.

Member Function Documentation

◆ hasName()

bool SerialPortManager::Port::hasName ( const QString & name) const
inline

Whether name is the port's system location, port name or stable name.

Definition at line 52 of file SerialPortManager.h.

References portName, stableName, and systemLocation.

Member Data Documentation

◆ boardName

QString SerialPortManager::Port::boardName

Definition at line 37 of file SerialPortManager.h.

◆ boardType

Definition at line 36 of file SerialPortManager.h.

◆ bootloader

bool SerialPortManager::Port::bootloader = false

Definition at line 38 of file SerialPortManager.h.

◆ description

QString SerialPortManager::Port::description = {}

Definition at line 41 of file SerialPortManager.h.

◆ displayName

QString SerialPortManager::Port::displayName = {}

Definition at line 42 of file SerialPortManager.h.

◆ hardwareFlowControl

bool SerialPortManager::Port::hardwareFlowControl = true

Whether the port can be set to hardware flow control. On Android the driver of a USB device may have none, and its port then refuses the setting.

Definition at line 49 of file SerialPortManager.h.

◆ physicalDeviceId

QString SerialPortManager::Port::physicalDeviceId = {}

Shared by interfaces with the same VID/PID/serial; empty when identity is unavailable.

Definition at line 40 of file SerialPortManager.h.

◆ portName

QString SerialPortManager::Port::portName

Definition at line 35 of file SerialPortManager.h.

Referenced by hasName().

◆ stableName

QString SerialPortManager::Port::stableName = {}

Finds the port again once its device has been replugged, which gives it another system location. Empty where the platform has no such name. Devices of a kind that report the same serial number, or none, share theirs.

Definition at line 46 of file SerialPortManager.h.

Referenced by hasName().

◆ systemLocation

QString SerialPortManager::Port::systemLocation

Definition at line 34 of file SerialPortManager.h.

Referenced by hasName().


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