mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +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)
|
||||
{
|
||||
m_canDevice->writeFrame(frame);
|
||||
emit frame_send(frame);
|
||||
}
|
||||
|
||||
void CAN_Interface::processErrors(QCanBusDevice::CanBusError error) const
|
||||
|
||||
@@ -14,6 +14,7 @@ class CAN_Interface : public QObject
|
||||
void send_frame(const QCanBusFrame &frame);
|
||||
signals:
|
||||
void frame_received(const QCanBusFrame frame);
|
||||
void frame_send(const QCanBusFrame frame);
|
||||
|
||||
private:
|
||||
void processErrors(QCanBusDevice::CanBusError error) const;
|
||||
|
||||
Reference in New Issue
Block a user