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

#include <CanOpenItem.h>

Inherits CanOpen::UserDeviceItem.

Inherited by CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Public Member Functions

 CanOpenItem (pUserDeviceStruct *parent,::xml_schema::type *conf, UaNode *pAS, OpcUa_UInt code)
 
 CanOpenItem ()=default
 
virtual UaVariant UnPack ()
 
virtual UaStatus pack (const OpcUa_Variant *)
 
virtual UaStatus write (UaDataValue &udv)
 
virtual UaStatus read ()
 
virtual ~CanOpenItem (void)
 
virtual UaStatus getDeviceMessage (OpcUa_UInt32 commandCode)
 
virtual UaStatus sendDeviceMessage (OpcUa_UInt32 code, UaDataValue *value=0)
 
virtual UaStatus connectCode (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf, UaNode *blink)
 
virtual UaVariant getPropertyValue (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf)
 
- Public Member Functions inherited from CanOpen::UserDeviceItem
 UserDeviceItem (UserDataBase *parrent,::xml_schema::type *conf, UaNode *pAS, OpcUa_UInt code)
 
virtual ~UserDeviceItem (void)
 

Static Public Member Functions

static UaStatus convertOpcUaType (const OpcUa_Variant *sData, OpcUa_Variant *oData, OpcUa_BuiltInType bType)
 

Detailed Description

Definition at line 23 of file CanOpenItem.h.

Constructor & Destructor Documentation

◆ CanOpenItem() [1/2]

CanOpen::CanOpenItem::CanOpenItem ( pUserDeviceStruct parent,
::xml_schema::type conf,
UaNode *  pAS,
OpcUa_UInt  code 
)
inline

Definition at line 27 of file CanOpenItem.h.

◆ CanOpenItem() [2/2]

CanOpen::CanOpenItem::CanOpenItem ( )
default

◆ ~CanOpenItem()

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

Definition at line 59 of file CanOpenItem.h.

Member Function Documentation

◆ connectCode()

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

Reimplemented from CanOpen::UserDeviceItem.

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 77 of file CanOpenItem.h.

◆ convertOpcUaType()

UaStatus CanOpen::CanOpenItem::convertOpcUaType ( const OpcUa_Variant *  sData,
OpcUa_Variant *  oData,
OpcUa_BuiltInType  bType 
)
static

Definition at line 5 of file CanOpenItem.cpp.

◆ getDeviceMessage()

virtual UaStatus CanOpen::CanOpenItem::getDeviceMessage ( OpcUa_UInt32  commandCode)
inlinevirtual

Definition at line 64 of file CanOpenItem.h.

◆ getPropertyValue()

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

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 85 of file CanOpenItem.h.

◆ pack()

virtual UaStatus CanOpen::CanOpenItem::pack ( const OpcUa_Variant *  )
inlinevirtual

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 38 of file CanOpenItem.h.

◆ read()

virtual UaStatus CanOpen::CanOpenItem::read ( )
inlinevirtual

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 49 of file CanOpenItem.h.

◆ sendDeviceMessage()

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

Definition at line 70 of file CanOpenItem.h.

◆ UnPack()

virtual UaVariant CanOpen::CanOpenItem::UnPack ( )
inlinevirtual

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 34 of file CanOpenItem.h.

◆ write()

virtual UaStatus CanOpen::CanOpenItem::write ( UaDataValue &  udv)
inlinevirtual

Reimplemented in CanOpen::CanPDOItem, and CanOpen::CanSDOItem.

Definition at line 42 of file CanOpenItem.h.


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