CAN interface / wrapper

try to get it to function with can ui
This commit is contained in:
2026-02-01 18:41:50 +01:00
parent d154100702
commit 10604e4b03
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ CAN_Interface::~CAN_Interface()
void CAN_Interface::send_frame(const QCanBusFrame &frame) void CAN_Interface::send_frame(const QCanBusFrame &frame)
{ {
m_canDevice->writeFrame(frame); m_canDevice->writeFrame(frame);
emit frame_send(frame);
} }
void CAN_Interface::processErrors(QCanBusDevice::CanBusError error) const void CAN_Interface::processErrors(QCanBusDevice::CanBusError error) const
+1
View File
@@ -14,6 +14,7 @@ class CAN_Interface : public QObject
void send_frame(const QCanBusFrame &frame); void send_frame(const QCanBusFrame &frame);
signals: signals:
void frame_received(const QCanBusFrame frame); void frame_received(const QCanBusFrame frame);
void frame_send(const QCanBusFrame frame);
private: private:
void processErrors(QCanBusDevice::CanBusError error) const; void processErrors(QCanBusDevice::CanBusError error) const;