Qt Serial Bus

Qt Serial Bus API 提供访问各种工业串行总线和协议 (譬如 CAN、ModBus 等) 的类和函数。

快速入门

要包括模块类 函数的定义,使用以下指令:

#include <QtSerialBus>
					

要链接到模块,添加此行到 qmake .pro 文件:

QT += serialbus
					

支持的总线和协议

API 参考

这些是 API 参考材料链接。

日志类别

QtSerialBus 模块导出下列 日志类别 :

日志类别 描述
qt.modbus Enables standard logging inside the Modbus classes
qt.modbus.lowlevel Enables low level logging including individual packet content inside the Modbus classes

范例