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

Method setBitrate

app/src/IO/Drivers/CANBus.cpp:569–577  ·  view source on GitHub ↗

* @brief Sets the bitrate for the CAN bus. */

Source from the content-addressed store, hash-verified

567 * @brief Sets the bitrate for the CAN bus.
568 */
569void IO::Drivers::CANBus::setBitrate(const quint32 bitrate)
570{
571 if (m_bitrate == bitrate)
572 return;
573
574 m_bitrate = bitrate;
575 m_settings.setValue("CanBusDriver/bitrate", bitrate);
576 Q_EMIT bitrateChanged();
577}
578
579/**
580 * @brief Sets the plugin index and refreshes available interfaces.

Callers 1

setupCanbusConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected