QCanBusDeviceInfo 提供有關 CAN Bus 接口的信息。 更多...
| 頭: | #include <QCanBusDeviceInfo> |
| qmake: | QT += serialbus |
| Since: | Qt 5.9 |
該類在 Qt 5.9 引入。
| QCanBusDeviceInfo (const QCanBusDeviceInfo & other ) | |
| QCanBusDeviceInfo & | operator= (QCanBusDeviceInfo && other ) |
| QCanBusDeviceInfo & | operator= (const QCanBusDeviceInfo & other ) |
| ~QCanBusDeviceInfo () | |
| int | channel () const |
| QString | description () const |
| bool | hasFlexibleDataRate () const |
| bool | isVirtual () const |
| QString | name () const |
| QString | serialNumber () const |
| void | swap (QCanBusDeviceInfo & other ) |
Each plugin may support one or more interfaces with different capabilities. This class provides information about available functions.
構造副本為 other .
Move-assigns other to this QCanBusDeviceInfo 實例。
賦值 other to this CAN bus device info and returns a reference to this CAN bus device info.
銷毀 CAN 總綫設備信息。
Returns the sequential channel number of the CAN bus interface, starting with zero. For example, a two channel CAN interface may have the channels 0 and 1. If the interface has only one channel or if no information about the channel is available, zero is returned.
該函數在 Qt 5.11 引入。
Returns a textual description of the CAN bus interface, if available. Example output: "PCAN USB Pro FD". If no description is available, an empty string is returned.
該函數在 Qt 5.11 引入。
Returns true, if the CAN bus interface is CAN FD (flexible data rate) capable.
If this information is not available, false is returned.
Returns true, if the CAN bus interface is virtual (i.e. not connected to real CAN hardware).
If this information is not available, false is returned.
Returns the interface name of this CAN bus interface, e.g. can0.
Returns the serial number of the CAN bus interface as string, if available. Otherwise, an empty string is returned.
該函數在 Qt 5.11 引入。
Swaps this CAN bus device info with other 。此操作很快且從不失敗。