OpcUaCanOpen
CANopen OPC-UA server
CanModule::CanLibLoader Class Referenceabstract

#include <CanLibLoader.h>

Inherited by CanModule::CanLibLoaderLin, and CanModule::CanLibLoaderWin.

Public Member Functions

virtual ~CanLibLoader ()
 
SHARED_LIB_EXPORT_DEFN CanModule::CCanAccessopenCanBus (std::string name, std::string parameters)
 
SHARED_LIB_EXPORT_DEFN void closeCanBus (CanModule::CCanAccess *cca)
 

Static Public Member Functions

static SHARED_LIB_EXPORT_DEFN CanLibLoadercreateInstance (const std::string &libName)
 

Public Attributes

Log::LogComponentHandle lh
 

Protected Member Functions

 CanLibLoader (const std::string &libName)
 
virtual void dynamicallyLoadLib (const std::string &libName)=0
 
virtual CCanAccesscreateCanAccess ()=0
 

Detailed Description

Definition at line 32 of file CanLibLoader.h.

Constructor & Destructor Documentation

◆ CanLibLoader()

CanModule::CanLibLoader::CanLibLoader ( const std::string &  libName)
protected

Definition at line 36 of file CanLibLoader.cpp.

◆ ~CanLibLoader()

CanModule::CanLibLoader::~CanLibLoader ( )
virtual

Definition at line 41 of file CanLibLoader.cpp.

Member Function Documentation

◆ closeCanBus()

void CanModule::CanLibLoader::closeCanBus ( CanModule::CCanAccess cca)

Definition at line 53 of file CanLibLoader.cpp.

◆ createCanAccess()

virtual CCanAccess* CanModule::CanLibLoader::createCanAccess ( )
protectedpure virtual

◆ createInstance()

CanLibLoader * CanModule::CanLibLoader::createInstance ( const std::string &  libName)
static

Definition at line 43 of file CanLibLoader.cpp.

◆ dynamicallyLoadLib()

virtual void CanModule::CanLibLoader::dynamicallyLoadLib ( const std::string &  libName)
protectedpure virtual

◆ openCanBus()

CCanAccess * CanModule::CanLibLoader::openCanBus ( std::string  name,
std::string  parameters 
)
Parameters
nameName of the can bus channel. The specific mapping will change depending on the interface used. For example, accessing channel 0 for the systec interface would be using name "st:9", while in socket can the same channel would be "sock:can0". anagate interface would be "an:0:192.168.1.2" for port A and ip address
parametersDifferent parameters used for the initialisation. For using the default parameters just set this to "Unspecified"

Definition at line 58 of file CanLibLoader.cpp.

Member Data Documentation

◆ lh

Log::LogComponentHandle CanModule::CanLibLoader::lh

Definition at line 47 of file CanLibLoader.h.


The documentation for this class was generated from the following files: