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

Method setDataBitsIndex

app/src/IO/Drivers/Modbus.cpp:1125–1132  ·  view source on GitHub ↗

* @brief Sets the data bits index */

Source from the content-addressed store, hash-verified

1123 * @brief Sets the data bits index
1124 */
1125void IO::Drivers::Modbus::setDataBitsIndex(const quint8 index)
1126{
1127 if (index < 4 && m_dataBitsIndex != index) {
1128 m_dataBitsIndex = index;
1129 m_settings.setValue("ModbusDriver/dataBitsIndex", index);
1130 Q_EMIT dataBitsIndexChanged();
1131 }
1132}
1133
1134/**
1135 * @brief Sets the stop bits index

Callers 1

applyModbusDataBitsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected