QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SerialPortSettleTracker Class Reference

#include <SerialPortManager.h>

Public Member Functions

bool settled (const QString &port, quint64 nowUs)
 Records port as listed at nowUs; true once it has been listed for the settle delay.
bool contains (const QString &port) const
bool isEmpty () const
void remove (const QString &port)
template<typename Predicate>
void removeIf (Predicate forget)
 Forgets the ports forget returns true for.
void clear ()

Friends

class LinkManagerTest
class SerialAutoConnectTest

Detailed Description

Ports a scan lists for the first time wait SerialPortManager::NEW_PORT_SETTLE_DELAY before automatic connection opens them. Times are microseconds of one monotonic clock.

Definition at line 165 of file SerialPortManager.h.

Member Function Documentation

◆ clear()

void SerialPortSettleTracker::clear ( )
inline

Definition at line 197 of file SerialPortManager.h.

◆ contains()

bool SerialPortSettleTracker::contains ( const QString & port) const
inline

Definition at line 184 of file SerialPortManager.h.

◆ isEmpty()

bool SerialPortSettleTracker::isEmpty ( ) const
inline

Definition at line 186 of file SerialPortManager.h.

◆ remove()

void SerialPortSettleTracker::remove ( const QString & port)
inline

Definition at line 188 of file SerialPortManager.h.

◆ removeIf()

template<typename Predicate>
void SerialPortSettleTracker::removeIf ( Predicate forget)
inline

Forgets the ports forget returns true for.

Definition at line 192 of file SerialPortManager.h.

◆ settled()

bool SerialPortSettleTracker::settled ( const QString & port,
quint64 nowUs )
inline

Records port as listed at nowUs; true once it has been listed for the settle delay.

Definition at line 172 of file SerialPortManager.h.

References SerialPortManager::NEW_PORT_SETTLE_DELAY.

◆ LinkManagerTest

friend class LinkManagerTest
friend

Definition at line 167 of file SerialPortManager.h.

References LinkManagerTest.

Referenced by LinkManagerTest.

◆ SerialAutoConnectTest

friend class SerialAutoConnectTest
friend

Definition at line 168 of file SerialPortManager.h.

References SerialAutoConnectTest.

Referenced by SerialAutoConnectTest.


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