An implementation of ControlInterface for can bus CanBusInterface is an interface class to connect OpcUa Address Space to CANOpen hardware.
More...
#include <CanBusInterface.h>
Inherits UserDevice::ControlInterface.
|
| CanBusInterface () |
|
virtual | ~CanBusInterface () |
|
virtual void | closeInterface () |
|
virtual UaStatus | initialize () |
| This function should be used to initialize hardware dependent part. More...
|
|
virtual UaStatus | CreateXmlParser (UaString &sXmlFileName) |
| Load the configuration from the configure file and generate node managers. More...
|
|
virtual pUserDeviceStruct * | createInterfaceEntry (pUserDeviceStruct *parent, int code, ::xml_schema::type *conf, UaNode *pAS) |
| Create interface class based on configuration information and type ID. More...
|
|
virtual IOManager * | getIOManager (UaNode *pUaNode, OpcUa_Int32 attributeId) |
| This function returns IOManager for mode and attribute
More...
|
|
virtual VariableHandle * | getVariableHandler (Session *session, VariableHandle::ServiceType serviceType, OpcUa_NodeId *nodeid, OpcUa_Int32 attributeId) |
|
virtual bool | isTraceVariable (UaNodeId uaTraceId) |
|
virtual void | putTraceFunctions (OpcUa_DataValue *mvar) |
|
virtual bool | isDeviceVariable (UaNodeId uaDevVar) |
|
virtual UaStatus | CreateAddressSpace (AddressSpace::NmBuildingAutomation *nManager, NodeManagerNodeSetXml *pXmlNodeManager, NodeManagerConfig *pDefaultNodeManager) |
| Create Address Space. More...
|
|
virtual UaStatus | getCanTraceSettings (OpcUa_UInt32 &uMaxTraceEntries, OpcUa_UInt32 &uMaxBackupFiles, UaString &sTraceFile) |
| Get UA Server can trace settings. More...
|
|
UaNodeId | getCanNodeNodeId (UaNode *pNode) |
|
UaStatus | createNodeTypes () |
|
UaStatus | createCanbuses () |
| create of cannode types More...
|
|
UaStatus | createNodes (CANBUS::NODE_sequence &nd, UaControlDeviceGeneric *pcanbus) |
| create of canbuses More...
|
|
| ControlInterface () |
| Dummy Constructor. More...
|
|
virtual | ~ControlInterface () |
| Destructor. More...
|
|
UaNodeId | getTypeNodeId (OpcUa_UInt32 numericIdentifier) |
|
AddressSpace::NmBuildingAutomation * | getNodeManager () const |
|
NodeManagerNodeSetXml * | getNodeTypeManager () const |
|
virtual pUserDeviceStruct * | createInterfaceEntry (pUserDeviceStruct *parent, int code, ::xsd::cxx::tree::type *conf, UaNode *node)=0 |
| Create interface class based on configuration information and type ID. More...
|
|
|
static void | initCalculation () |
|
static void | addCalcCompilerItem (AddressSpace::UaCalcItem *ucci) |
|
static UaStatus | CompileItems (OpcUa::BaseObjectType *pParent, CanOpenOpcServerConfig::ITEM_sequence &itnd, CanOpenOpcServerConfig::REGEXPR_sequence ®ex, NmBuildingAutomation *nManager) |
|
static UaStatus | createListInitmethod (CanOpenOpcServerConfig::atStartup_sequence &ex, UaControlDeviceGeneric *parent, NmBuildingAutomation *nManager) |
|
static UaStatus | createListInitSet (CanOpenOpcServerConfig::SET_sequence &ex, UaControlDeviceGeneric *parent, NmBuildingAutomation *nManager) |
|
static UaStatus | executeInitMethod () |
|
static UaStatus | variableInitSet () |
|
static UaStatus | createRegVariable (ITEM &itemvar, CanOpenOpcServerConfig::REGEXPR_sequence ®ex, mapDataVariable &pvariables, OpcUa::BaseObjectType *pcn, OpcUa_Int32 &minVar, NmBuildingAutomation *nManager) |
|
An implementation of ControlInterface for can bus CanBusInterface is an interface class to connect OpcUa Address Space to CANOpen hardware.
Definition at line 123 of file CanBusInterface.h.
◆ CanBusInterface()
CanOpen::CanBusInterface::CanBusInterface |
( |
| ) |
|
◆ ~CanBusInterface()
CanOpen::CanBusInterface::~CanBusInterface |
( |
| ) |
|
|
virtual |
◆ addCalcCompilerItem()
◆ closeInterface()
void CanOpen::CanBusInterface::closeInterface |
( |
| ) |
|
|
virtual |
◆ CompileItems()
◆ CreateAddressSpace()
UaStatus CanOpen::CanBusInterface::CreateAddressSpace |
( |
AddressSpace::NmBuildingAutomation * |
nManager, |
|
|
NodeManagerNodeSetXml * |
pXmlNodeManager, |
|
|
NodeManagerConfig * |
pDefaultNodeManager |
|
) |
| |
|
virtual |
◆ createCanbuses()
UaStatus CanOpen::CanBusInterface::createCanbuses |
( |
| ) |
|
create of cannode types
CAN bus ua node connects to top level node
Definition at line 366 of file CanBusInterface.cpp.
◆ createInterfaceEntry()
Create interface class based on configuration information and type ID.
- Parameters
-
parent | - the interface object which is a parent of creating one |
code | - operation code |
conf | - xml configuration of creating object |
pAS | - UaNode which take date from hardware or send commands |
Definition at line 152 of file CanBusInterface.cpp.
◆ createListInitmethod()
◆ createListInitSet()
◆ createNodes()
◆ createNodeTypes()
UaStatus CanOpen::CanBusInterface::createNodeTypes |
( |
| ) |
|
◆ createRegVariable()
◆ CreateXmlParser()
UaStatus CanOpen::CanBusInterface::CreateXmlParser |
( |
UaString & |
sXmlFileName | ) |
|
|
virtual |
Load the configuration from the configure file and generate node managers.
First method called after creation of ServerConfig. Must create all NodeManagers before method startUp is called.
- Returns
- Error code.
Implements UserDevice::ControlInterface.
Definition at line 188 of file CanBusInterface.cpp.
◆ executeInitMethod()
UaStatus CanOpen::CanBusInterface::executeInitMethod |
( |
| ) |
|
|
static |
◆ getCanNodeNodeId()
UaNodeId CanOpen::CanBusInterface::getCanNodeNodeId |
( |
UaNode * |
pNode | ) |
|
◆ getCanTraceSettings()
virtual UaStatus CanOpen::CanBusInterface::getCanTraceSettings |
( |
OpcUa_UInt32 & |
uMaxTraceEntries, |
|
|
OpcUa_UInt32 & |
uMaxBackupFiles, |
|
|
UaString & |
sTraceFile |
|
) |
| |
|
inlinevirtual |
Get UA Server can trace settings.
- Returns
- Error code.
Definition at line 209 of file CanBusInterface.h.
◆ getIOManager()
IOManager * CanOpen::CanBusInterface::getIOManager |
( |
UaNode * |
pUaNode, |
|
|
OpcUa_Int32 |
attributeId |
|
) |
| |
|
virtual |
◆ getVariableHandler()
VariableHandle * CanOpen::CanBusInterface::getVariableHandler |
( |
Session * |
session, |
|
|
VariableHandle::ServiceType |
serviceType, |
|
|
OpcUa_NodeId * |
nodeid, |
|
|
OpcUa_Int32 |
attributeId |
|
) |
| |
|
virtual |
◆ initCalculation()
void CanOpen::CanBusInterface::initCalculation |
( |
| ) |
|
|
static |
◆ initialize()
UaStatus CanOpen::CanBusInterface::initialize |
( |
| ) |
|
|
virtual |
◆ isDeviceVariable()
virtual bool CanOpen::CanBusInterface::isDeviceVariable |
( |
UaNodeId |
uaDevVar | ) |
|
|
inlinevirtual |
◆ isTraceVariable()
virtual bool CanOpen::CanBusInterface::isTraceVariable |
( |
UaNodeId |
uaTraceId | ) |
|
|
inlinevirtual |
◆ putTraceFunctions()
virtual void CanOpen::CanBusInterface::putTraceFunctions |
( |
OpcUa_DataValue * |
mvar | ) |
|
|
inlinevirtual |
◆ variableInitSet()
UaStatus CanOpen::CanBusInterface::variableInitSet |
( |
| ) |
|
|
static |
◆ factory
◆ g_pCanaccess
unique_ptr< CanBusAccess > CanOpen::CanBusInterface::g_pCanaccess |
|
static |
◆ m_canbuses
◆ m_CanBusList
◆ m_execute
◆ m_items
◆ m_listInitMethod
◆ m_listInitSet
◆ m_nodetypes
◆ m_regexprisson
◆ m_settings
◆ m_setvalue
◆ m_sLocale
UaString CanOpen::CanBusInterface::m_sLocale |
|
private |
◆ m_sLogFileName
UaString CanOpen::CanBusInterface::m_sLogFileName |
|
private |
◆ m_Trace
◆ m_uCanMaxBackupFiles
OpcUa_UInt32 CanOpen::CanBusInterface::m_uCanMaxBackupFiles |
|
private |
◆ m_uCanMaxTraceEntries
OpcUa_UInt32 CanOpen::CanBusInterface::m_uCanMaxTraceEntries |
|
private |
◆ m_vCCI
The documentation for this class was generated from the following files: