提供用於讀寫串行總綫數據的類。 更多...
| QtCanBus | Some commons enums that are used in the CAN bus handling part of the QtSerialPort module |
| QCanBus | 處理總綫插件的注冊和創建 |
| QCanBusDevice | 用於 CAN bus 的接口類 |
| QCanBusDevice::Filter | QCanBusDevice::Filter 結構定義用於 CAN Bus 幀的過濾器 |
| QCanBusDeviceInfo | 有關 CAN Bus 接口的信息 |
| QCanBusFactory | 用作 CAN Bus 插件的插件接口的工廠類 |
| QCanBusFrame | 錶示單 CAN 幀的容器類 |
| QCanBusFrame::TimeStamp | 具有微秒精度的時間戳信息 |
| QCanDbcFileParser | Can be used to parse DBC files |
| QCanFrameProcessor | Can be used to decode a QCanBusFrame or to convert the input data into a QCanBusFrame that is ready to be sent to the receiver |
| QCanFrameProcessor::ParseResult | Struct is used as a return value for the QCanFrameProcessor::parseFrame() method |
| QCanMessageDescription | Describes the rules to process a CAN message and represent it in an application-defined format |
| QCanSignalDescription | Describes the rules to extract one value out of the CAN frame and represent it in an application-defined format |
| QCanSignalDescription::MultiplexValueRange | Defines a range of values for a multiplexor signal |
| QCanUniqueIdDescription | Describes the rules for accessing a unique identifier in a QCanBusFrame |
| QModbusClient | 發送 Modbus 請求的接口 |
| QModbusDataUnit | 錶示 Modbus 寄存器中單個位和 16 位詞條目的容器類 |
| QModbusDevice | 用於 Modbus 類 QModbusServer 和 QModbusClient 的基類 |
| QModbusDeviceIdentification | 錶示 Modbus 服務器物理和功能描述的容器類 |
| QModbusExceptionResponse | 包含 Modbus ADU 內函數和錯誤碼的容器類 |
| QModbusPdu | 包含存儲於 Modbus ADU 內功能代碼和負載的抽象容器類 |
| QModbusReply | 包含由 QModbusClient 派生類請求發送的數據 |
| QModbusRequest | 包含存儲於 Modbus ADU 內功能代碼和有效載荷的容器類 |
| QModbusResponse | 包含存儲於 Modbus ADU 內功能代碼和有效載荷的容器類 |
| QModbusRtuSerialClient | 錶示使用串行總綫與 Modbus 服務器通信的 Modbus 客戶端 |
| QModbusRtuSerialServer | 錶示使用串口與 Modbus 客戶端通信的 Modbus 服務器 |
| QModbusServer | 接收和處理 Modbus 請求的接口 |
| QModbusTcpClient | 用於 Modbus TCP 客戶端設備的接口類 |
| QModbusTcpConnectionObserver | 錶示可以傳遞給 QModbusTcpServer::installConnectionObserver 的對象接口 |
| QModbusTcpServer | 錶示使用 TCP 服務器與 Modbus 客戶端通信的 Modbus 服務器 |
提供訪問各種串行總綫的類。
對於 include 當前使用情況適當 header 的 C++ 工程,例如,使用 CAN Bus 設備的應用程序可以使用
#include <QCanBusDevice>
To use the module with CMake, use the
find_package()
命令定位所需模塊組件在
Qt6
包:
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
更多見於 Qt Serial Bus 概述 .