Qt Serial Bus C++ Classes | Qt Serial Bus 6.4.1

- Qt 6.4
- Qt Serial Bus
- Qt Serial Bus C++ Classes
- Qt 6.4.1 Reference Documentation

# Qt Serial Bus C++ Classes

Provides classes to read and write serial bus data. More...

This module was introduced in Qt 5.8.

## Classes

QCanBus | Handles registration and creation of bus plugins
QCanBusDeviceInfo | Information about CAN bus interfaces
QCanBusFactory | Factory class used as the plugin interface for CAN bus plugins
QCanBusFrame | Container class representing a single CAN frame
QCanBusFrame::TimeStamp | Timestamp information with microsecond precision
QModbusDataUnit | Container class representing single bit and 16 bit word entries in the Modbus register
QModbusDeviceIdentification | Container class representing the physical and functional description of a Modbus server
QModbusExceptionResponse | Container class containing the function and error code inside a Modbus ADU
QModbusPdu | Abstract container class containing the function code and payload that is stored inside a Modbus ADU
QModbusRequest | Container class containing the function code and payload that is stored inside a Modbus ADU
QModbusResponse | Container class containing the function code and payload that is stored inside a Modbus ADU

## 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.