mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
CAN interface / wrapper
try to get it to function with can ui
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user