1#ifndef CANDEVICEINTERFACE_H_DNXOI7PW
2#define CANDEVICEINTERFACE_H_DNXOI7PW
4#include <QtCore/QtGlobal>
5#include <QtSerialBus/QCanBusFrame>
19 virtual bool init(
const QString& backend,
const QString& iface) = 0;
Definition candeviceinterface.h:8
virtual void setParent(QObject *parent)=0
std::function< void()> framesReceived_t
Definition candeviceinterface.h:12
virtual qint64 framesAvailable()=0
virtual void clearCallbacks()=0
std::function< void(int)> errorOccurred_t
Definition candeviceinterface.h:13
virtual void setErrorOccurredCbk(const errorOccurred_t &cb)=0
std::function< void(qint64)> framesWritten_t
Definition candeviceinterface.h:11
virtual void disconnectDevice()=0
virtual void setFramesWrittenCbk(const framesWritten_t &cb)=0
virtual QCanBusFrame readFrame()=0
virtual void setFramesReceivedCbk(const framesReceived_t &cb)=0
virtual void setConfigurationParameter(int key, const QVariant &value)=0
virtual ~CanDeviceInterface()
Definition candeviceinterface.h:9
virtual bool init(const QString &backend, const QString &iface)=0
virtual bool connectDevice()=0
virtual bool writeFrame(const QCanBusFrame &frame)=0