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 102 of file SerialPortManager.h.

Member Function Documentation

◆ clear()

void SerialPortSettleTracker::clear ( )
inline

Definition at line 134 of file SerialPortManager.h.

◆ contains()

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

Definition at line 121 of file SerialPortManager.h.

◆ isEmpty()

bool SerialPortSettleTracker::isEmpty ( ) const
inline

Definition at line 123 of file SerialPortManager.h.

◆ remove()

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

Definition at line 125 of file SerialPortManager.h.

Referenced by SerialAutoConnect::update().

◆ removeIf()

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

Forgets the ports forget returns true for.

Definition at line 129 of file SerialPortManager.h.

Referenced by SerialAutoConnect::update().

◆ 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 109 of file SerialPortManager.h.

References SerialPortManager::NEW_PORT_SETTLE_DELAY.

Referenced by SerialAutoConnect::update().

Friends And Related Symbol Documentation

◆ LinkManagerTest

friend class LinkManagerTest
friend

Definition at line 104 of file SerialPortManager.h.

◆ SerialAutoConnectTest

friend class SerialAutoConnectTest
friend

Definition at line 105 of file SerialPortManager.h.


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