CANpie FD
CAN programming interface environment - Version 3.08
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions
QCanPlugin Class Referenceabstract

Detailed Description

The QCanPlugin class is the base class for CAN interface plug-ins, which can be used to add any kind of CAN interface cards to the CANpie FD Server.

For an example of the QCanPlugin class refer to the QCanPluginTemplate class located inside the source/qcan/applications/plugins/qcan_template directory.

Inherits QObject.

Public Member Functions

virtual QCanInterfacegetInterface (uint8_t ubInterfaceV=0)=0
 
virtual QIcon icon (void)=0
 
virtual uint8_t interfaceCount (void)=0
 
virtual QString name (void)=0
 

Member Function Documentation

◆ getInterface()

virtual QCanInterface* QCanPlugin::getInterface ( uint8_t  ubInterfaceV = 0)
pure virtual
Parameters
[in]ubInterfaceVNumber of CAN interface
Returns
CAN interface class

The function returns a pointer to a QCanInterface class defined by the parameter ubInterfaceV. The first interface starts at index 0. If the number of available interfaces is exceeded the function returns NULL.

◆ icon()

virtual QIcon QCanPlugin::icon ( void  )
pure virtual
Returns
Icon of plug-in

The function returns the icon of the plug-in.

◆ interfaceCount()

virtual uint8_t QCanPlugin::interfaceCount ( void  )
pure virtual
Returns
Number of CAN interfaces

The function returns the number of CAN interfaces that are available.

◆ name()

virtual QString QCanPlugin::name ( void  )
pure virtual
Returns
Name of plug-in

The function returns the name of the plug-in.