diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2021-07-27 17:41:27 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2021-08-05 13:27:46 +0000 |
commit | a9a7ffb5a97f254a57591e69c3e24212d1743cf4 (patch) | |
tree | 5384b946019a304fbe6361399584699ce2f10234 /src/plugins/canbus/tinycan | |
parent | 8c8b0c4cdabca6917a35daf75a799b8d75a18cdb (diff) |
CAN: Implement QCanBusDevice::deviceInfo() in the plugins
* PasstruCAN: Untested
* PeakCAN: Tested on Windows with PCAN-USB Pro FD.
* SocketCAN: Tested on Linux with virtual and real hardware.
* SystecCAN: Tested on Windows with USBcanmodul2.
* TinyCAN: Untested
* VectorCAN: Tested with the virtual Vector interface.
* VirtualCAN: Tested on Windows and Linux.
Pick-to: 6.2
Change-Id: I3836a81a9cb1570a22b6264b34fca88ccc0ab57e
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/canbus/tinycan')
-rw-r--r-- | src/plugins/canbus/tinycan/tinycanbackend.cpp | 5 | ||||
-rw-r--r-- | src/plugins/canbus/tinycan/tinycanbackend.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/canbus/tinycan/tinycanbackend.cpp b/src/plugins/canbus/tinycan/tinycanbackend.cpp index 527cd14..a9e21cc 100644 --- a/src/plugins/canbus/tinycan/tinycanbackend.cpp +++ b/src/plugins/canbus/tinycan/tinycanbackend.cpp @@ -603,4 +603,9 @@ void TinyCanBackend::resetController() d->resetController(); } +QCanBusDeviceInfo TinyCanBackend::deviceInfo() const +{ + return createDeviceInfo(QStringLiteral("tinycan"), QStringLiteral("can0.0"), false, false); +} + QT_END_NAMESPACE diff --git a/src/plugins/canbus/tinycan/tinycanbackend.h b/src/plugins/canbus/tinycan/tinycanbackend.h index ed28905..07bed12 100644 --- a/src/plugins/canbus/tinycan/tinycanbackend.h +++ b/src/plugins/canbus/tinycan/tinycanbackend.h @@ -71,6 +71,7 @@ public: static QList<QCanBusDeviceInfo> interfaces(); void resetController() override; + QCanBusDeviceInfo deviceInfo() const override; private: TinyCanBackendPrivate * const d_ptr; |