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

Method setDriverProperty

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

* @brief Applies a single USB configuration change by key. */

Source from the content-addressed store, hash-verified

1254 * @brief Applies a single USB configuration change by key.
1255 */
1256void IO::Drivers::USB::setDriverProperty(const QString& key, const QVariant& value)
1257{
1258 if (key == QLatin1String("deviceIndex")) {
1259 setDeviceIndex(value.toInt());
1260 return;
1261 }
1262
1263 if (key == QLatin1String("transferMode")) {
1264 setTransferMode(value.toInt());
1265 return;
1266 }
1267
1268 if (key == QLatin1String("inEndpointIndex")) {
1269 setInEndpointIndex(value.toInt());
1270 return;
1271 }
1272
1273 if (key == QLatin1String("outEndpointIndex")) {
1274 setOutEndpointIndex(value.toInt());
1275 return;
1276 }
1277
1278 if (key == QLatin1String("isoPacketSize"))
1279 setIsoPacketSize(value.toInt());
1280}

Callers 6

setUiDriverPropertyMethod · 0.45
setBusTypeMethod · 0.45
syncUiDriverToLiveMethod · 0.45
sourceConfigureMethod · 0.45
sourceSetPropertyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected