OpcUaCanOpen
CANopen OPC-UA server
CanOpen::Emergency Class Reference

This class ensure Emergency data. More...

#include <Emergency.h>

Inherits CanOpen::CanObject.

Public Member Functions

 Emergency (pUserDeviceStruct *interf, NODE *ca, UaNode *blink, OpcUa_UInt32 code)
 Constructor. More...
 
virtual ~Emergency (void)
 Destructor. More...
 
virtual UaStatus getDeviceMessage (OpcUa_UInt32 code)
 Read data From device There is no any date for this object. More...
 
virtual UaStatus sendDeviceMessage (OpcUa_UInt32 code, UaDataValue *value=0)
 send data or command on device Abstract function to send data based on type id (buldingAutomationTypeIds.h) More...
 
virtual UaStatus connectCode (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf, UaNode *blink)
 connect function code to ua node to pass data More...
 
virtual UaVariant getPropertyValue (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf)
 
- Public Member Functions inherited from CanOpen::CanObject
 CanObject (pUserDeviceStruct *parent,::xsd::cxx::tree::type *conf, UaNode *pAS, OpcUa_UInt32 code)
 Constructor. More...
 
virtual ~CanObject (void)
 Destructor. More...
 
OpcUa_Byte getCanNodeId ()
 get Node Id More...
 
void sendNMT (enum ::NMTcommand nmt)
 Send nmt message. More...
 
virtual void setInitNmt (enum NMTcommand iNMT)
 Save initial nmt message which will send to initialize devices. More...
 
virtual void setInitNmt (std::string sNmt)
 Save initial nmt message which will send to initialize devices. More...
 
virtual void sendInitNmt ()
 send initial nmt message More...
 
CCanAccessgetCanBusInterface ()
 get pointer to can bus interface More...
 
void setCanBusInterface (CCanAccess *ccac)
 save pointer to can bus interface More...
 
IOManager * getIOManager ()
 
- Public Member Functions inherited from UserDevice::InterfaceUserDataBase
 InterfaceUserDataBase (pUserDeviceStruct *parent,::xsd::cxx::tree::type *conf, UaNode *pAS, OpcUa_UInt code)
 Constructor Also create the shared mutex which can be used to synchronize operation on device using lock/unlock function. More...
 
virtual ~InterfaceUserDataBase (void)
 Destructor. More...
 
- Public Member Functions inherited from UserDevice::UserDeviceStruct
 UserDeviceStruct (pUserDeviceStruct *parent, ::xsd::cxx::tree::type *conf, UaNode *pAS, OpcUa_UInt code)
 constructor More...
 
void lock ()
 lock shared mutex to protect More...
 
void unlock ()
 unlock shared mutex More...
 
::UaMutexRefCounted * getShareMutex ()
 get mutex More...
 
void releaseMutex ()
 
OpcUa_Int32 countMutex ()
 
virtual ~UserDeviceStruct (void)
 
OpcUa_UInt getCodeFunction ()
 
UserDeviceStructgetParentDevice ()
 
pUserDeviceStructgetTopInterface ()
 
pUserDeviceStructgetParent ()
 
virtual void setInvalid ()
 
UaNode * getAddressSpaceEntry ()
 

Additional Inherited Members

- Protected Attributes inherited from CanOpen::CanObject
CCanAccessm_pCommIf
 Address of can interface. More...
 
OpcUa_Byte m_CanNodeId
 Node Id for bus = 0. More...
 
enum NMTcommand m_initNMTcommand
 initial NMT commands More...
 
IOManager * m_pIOManager
 
- Protected Attributes inherited from UserDevice::UserDeviceStruct
UaMutexRefCounted * m_pSharedMutex
 

Detailed Description

This class ensure Emergency data.

Definition at line 16 of file Emergency.h.

Constructor & Destructor Documentation

◆ Emergency()

CanOpen::Emergency::Emergency ( pUserDeviceStruct interf,
NODE ca,
UaNode *  blink,
OpcUa_UInt32  code 
)
inline

Constructor.

Parameters
interfthe parent interface in this case is a CanBUsObject
caXML description of node properties
blinkthe UaNode which control this device
codefunction code of operation

Definition at line 27 of file Emergency.h.

◆ ~Emergency()

virtual CanOpen::Emergency::~Emergency ( void  )
inlinevirtual

Destructor.

Definition at line 31 of file Emergency.h.

Member Function Documentation

◆ connectCode()

virtual UaStatus CanOpen::Emergency::connectCode ( OpcUa_UInt32  code,
::xsd::cxx::tree::type *  conf,
UaNode *  blink 
)
inlinevirtual

connect function code to ua node to pass data

Parameters
codefunction code defines the operation
confconfiguration data to link node
blinkua node to pass data

Implements UserDevice::InterfaceUserDataBase.

Definition at line 55 of file Emergency.h.

◆ getDeviceMessage()

virtual UaStatus CanOpen::Emergency::getDeviceMessage ( OpcUa_UInt32  code)
inlinevirtual

Read data From device There is no any date for this object.

Parameters
codefunction code of operation

Implements UserDevice::InterfaceUserDataBase.

Definition at line 37 of file Emergency.h.

◆ getPropertyValue()

virtual UaVariant CanOpen::Emergency::getPropertyValue ( OpcUa_UInt32  code,
::xsd::cxx::tree::type *  conf 
)
inlinevirtual

Implements UserDevice::InterfaceUserDataBase.

Definition at line 61 of file Emergency.h.

◆ sendDeviceMessage()

virtual UaStatus CanOpen::Emergency::sendDeviceMessage ( OpcUa_UInt32  code,
UaDataValue *  value = 0 
)
inlinevirtual

send data or command on device Abstract function to send data based on type id (buldingAutomationTypeIds.h)

Parameters
codefunction code
valuedata to send

Implements UserDevice::InterfaceUserDataBase.

Definition at line 42 of file Emergency.h.


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