From a9a7ffb5a97f254a57591e69c3e24212d1743cf4 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Tue, 27 Jul 2021 17:41:27 +0200 Subject: CAN: Implement QCanBusDevice::deviceInfo() in the plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- src/plugins/canbus/tinycan/tinycanbackend.cpp | 5 +++++ src/plugins/canbus/tinycan/tinycanbackend.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src/plugins/canbus/tinycan') 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 interfaces(); void resetController() override; + QCanBusDeviceInfo deviceInfo() const override; private: TinyCanBackendPrivate * const d_ptr; -- cgit v1.2.3