Qt Serial Bus C++ Classes▲
Provides classes to read and write serial bus data.
This module was introduced in Qt 5.8.
Classes▲
-
QCanBus: The QCanBus class handles registration and creation of bus plugins.
-
QCanBusDevice: The QCanBusDevice class is the interface class for CAN bus.
-
QCanBusDevice::Filter: The QCanBusDevice::Filter struct defines a filter for CAN bus frames.
-
QCanBusDeviceInfo: The QCanBusDeviceInfo provides information about CAN bus interfaces.
-
QCanBusFactory: The QCanBusFactory class is a factory class used as the plugin interface for CAN bus plugins.
-
QCanBusFrame: QCanBusFrame is a container class representing a single CAN frame.
-
QCanBusFrame::TimeStamp: The TimeStamp class provides timestamp information with microsecond precision.
-
QModbusClient: The QModbusClient class is the interface to send Modbus requests.
-
QModbusDataUnit: QModbusDataUnit is a container class representing single bit and <@number>16</@number> bit word entries in the Modbus register.
-
QModbusDevice: The QModbusDevice class is the base class for Modbus classes, QModbusServer and QModbusClient.
-
QModbusDeviceIdentification: The QModbusDeviceIdentification is a container class representing the physical and functional description of a Modbus server.
-
QModbusExceptionResponse: QModbusExceptionResponse is a container class containing the function and error code inside a Modbus ADU.
-
QModbusPdu: QModbusPdu is a abstract container class containing the function code and payload that is stored inside a Modbus ADU.
-
QModbusReply: The QModbusReply class contains the data for a request sent with a QModbusClient derived class.
-
QModbusRequest: QModbusRequest is a container class containing the function code and payload that is stored inside a Modbus ADU.
-
QModbusResponse: QModbusResponse is a container class containing the function code and payload that is stored inside a Modbus ADU.
-
QModbusRtuSerialClient: The QModbusRtuSerialClient class represents a Modbus client that uses a serial bus for its communication with the Modbus server.
-
QModbusRtuSerialServer: The QModbusRtuSerialServer class represents a Modbus server that uses a serial port for its communication with the Modbus client.
-
QModbusServer: The QModbusServer class is the interface to receive and process Modbus requests.
-
QModbusTcpClient: The QModbusTcpClient class is the interface class for Modbus TCP client device.
-
QModbusTcpConnectionObserver: The QModbusTcpConnectionObserver class represents the interface for objects that can be passed to QModbusTcpServer::installConnectionObserver.
-
QModbusTcpServer: The QModbusTcpServer class represents a Modbus server that uses a TCP server for its communication with the Modbus client.
Detailed Description▲
Provides classes to access various serial buses.
For C++ projects include the header appropriate for the current use case, for example applications using the CAN bus device may use
#include <QCanBusDevice>
To use the module with CMake, use the find_package() command to locate the needed module components in the Qt6 package:
find_package(Qt6 COMPONENTS SerialBus REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::
SerialBus)
To use the module for building with qmake, add the module as a value of the QT variable in the project's .pro file:
QT +=
serialbus
See more in the Qt Serial Bus Overview.