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

Method configurationOk

app/src/IO/Drivers/USB.cpp:295–298  ·  view source on GitHub ↗

* @brief Returns true when a device is selected and the connect button should be enabled. */

Source from the content-addressed store, hash-verified

293 * @brief Returns true when a device is selected and the connect button should be enabled.
294 */
295bool IO::Drivers::USB::configurationOk() const noexcept
296{
297 return m_deviceIndex > 0 && (m_deviceIndex - 1) < m_devicePtrs.size();
298}
299
300/**
301 * @brief Sends @p data to the device via a synchronous bulk OUT transfer. A mutable copy of

Callers 8

connectMethod · 0.45
getStatusMethod · 0.45
getConfigurationMethod · 0.45
getConfigurationMethod · 0.45
getConfigurationMethod · 0.45
getConfigurationMethod · 0.45
getConfigurationMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected