CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
CanDeviceInterface Struct Referenceabstract

#include <candeviceinterface.h>

Inheritance diagram for CanDeviceInterface:

Public Types

typedef std::function< void(qint64)> framesWritten_t
 
typedef std::function< void()> framesReceived_t
 
typedef std::function< void(int)> errorOccurred_t
 

Public Member Functions

virtual ~CanDeviceInterface ()
 
virtual void setFramesWrittenCbk (const framesWritten_t &cb)=0
 
virtual void setFramesReceivedCbk (const framesReceived_t &cb)=0
 
virtual void setErrorOccurredCbk (const errorOccurred_t &cb)=0
 
virtual bool init (const QString &backend, const QString &iface)=0
 
virtual bool writeFrame (const QCanBusFrame &frame)=0
 
virtual bool connectDevice ()=0
 
virtual void disconnectDevice ()=0
 
virtual qint64 framesAvailable ()=0
 
virtual void clearCallbacks ()=0
 
virtual void setConfigurationParameter (int key, const QVariant &value)=0
 
virtual QCanBusFrame readFrame ()=0
 
virtual void setParent (QObject *parent)=0
 

Member Typedef Documentation

◆ errorOccurred_t

typedef std::function<void(int)> CanDeviceInterface::errorOccurred_t

◆ framesReceived_t

typedef std::function<void()> CanDeviceInterface::framesReceived_t

◆ framesWritten_t

typedef std::function<void(qint64)> CanDeviceInterface::framesWritten_t

Constructor & Destructor Documentation

◆ ~CanDeviceInterface()

virtual CanDeviceInterface::~CanDeviceInterface ( )
inlinevirtual

Member Function Documentation

◆ clearCallbacks()

virtual void CanDeviceInterface::clearCallbacks ( )
pure virtual

Implemented in CanDeviceQt.

◆ connectDevice()

virtual bool CanDeviceInterface::connectDevice ( )
pure virtual

Implemented in CanDeviceQt.

◆ disconnectDevice()

virtual void CanDeviceInterface::disconnectDevice ( )
pure virtual

Implemented in CanDeviceQt.

◆ framesAvailable()

virtual qint64 CanDeviceInterface::framesAvailable ( )
pure virtual

Implemented in CanDeviceQt.

◆ init()

virtual bool CanDeviceInterface::init ( const QString &  backend,
const QString &  iface 
)
pure virtual

Implemented in CanDeviceQt.

◆ readFrame()

virtual QCanBusFrame CanDeviceInterface::readFrame ( )
pure virtual

Implemented in CanDeviceQt.

◆ setConfigurationParameter()

virtual void CanDeviceInterface::setConfigurationParameter ( int  key,
const QVariant &  value 
)
pure virtual

Implemented in CanDeviceQt.

◆ setErrorOccurredCbk()

virtual void CanDeviceInterface::setErrorOccurredCbk ( const errorOccurred_t cb)
pure virtual

Implemented in CanDeviceQt.

◆ setFramesReceivedCbk()

virtual void CanDeviceInterface::setFramesReceivedCbk ( const framesReceived_t cb)
pure virtual

Implemented in CanDeviceQt.

◆ setFramesWrittenCbk()

virtual void CanDeviceInterface::setFramesWrittenCbk ( const framesWritten_t cb)
pure virtual

Implemented in CanDeviceQt.

◆ setParent()

virtual void CanDeviceInterface::setParent ( QObject *  parent)
pure virtual

Implemented in CanDeviceQt.

◆ writeFrame()

virtual bool CanDeviceInterface::writeFrame ( const QCanBusFrame &  frame)
pure virtual

Implemented in CanDeviceQt.


The documentation for this struct was generated from the following file: