MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / portList

Method portList

app/src/IO/Drivers/UART.cpp:343–350  ·  view source on GitHub ↗

* @brief Returns a list with the available serial devices/ports (with "Select Port" placeholder at * index 0). */

Source from the content-addressed store, hash-verified

341 * index 0).
342 */
343QStringList IO::Drivers::UART::portList() const
344{
345 if (m_deviceNames.count() > 0)
346 return m_deviceNames + m_customDevices;
347
348 else
349 return QStringList{tr("Select Port")};
350}
351
352/**
353 * @brief Returns a list with the available baud rate configurations.

Callers 3

setPortIndexMethod · 0.80
getPortListMethod · 0.80
getConfigurationMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected