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

The Class defines the basic operation of any item which takes data from CAN message and put date into CAN message. More...

#include <CanSDOItem.h>

Inherits CanOpen::CanOpenItem.

Public Member Functions

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

Protected Attributes

OpcUa_Byte m_subind
 
OpcUa_UInt32 m_Timeout
 

Additional Inherited Members

- Static Public Member Functions inherited from CanOpen::CanOpenItem
static UaStatus convertOpcUaType (const OpcUa_Variant *sData, OpcUa_Variant *oData, OpcUa_BuiltInType bType)
 

Detailed Description

The Class defines the basic operation of any item which takes data from CAN message and put date into CAN message.

Definition at line 17 of file CanSDOItem.h.

Constructor & Destructor Documentation

◆ CanSDOItem() [1/3]

CanOpen::CanSDOItem::CanSDOItem ( pUserDeviceStruct par,
SDOITEM_TYPE1 conf,
UaNode *  blink,
int  code 
)

Definition at line 24 of file CanSDOItem.cpp.

◆ CanSDOItem() [2/3]

CanOpen::CanSDOItem::CanSDOItem ( pUserDeviceStruct par,
SDOITEM_TYPE2 conf,
UaNode *  blink,
int  code 
)

Definition at line 41 of file CanSDOItem.cpp.

◆ CanSDOItem() [3/3]

CanOpen::CanSDOItem::CanSDOItem ( pUserDeviceStruct par,
SDOITEM_TYPE3 conf,
UaNode *  blink,
int  code 
)

Definition at line 60 of file CanSDOItem.cpp.

◆ ~CanSDOItem()

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

Definition at line 33 of file CanSDOItem.h.

Member Function Documentation

◆ connectCode()

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

Reimplemented from CanOpen::CanOpenItem.

Definition at line 328 of file CanSDOItem.cpp.

◆ getCanSDOObject()

CanSDOObject* CanOpen::CanSDOItem::getCanSDOObject ( )
inline

Definition at line 46 of file CanSDOItem.h.

◆ getPropertyValue()

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

Reimplemented from CanOpen::CanOpenItem.

Definition at line 302 of file CanSDOItem.cpp.

◆ getSubIndex()

OpcUa_Byte CanOpen::CanSDOItem::getSubIndex ( )
inline

Definition at line 41 of file CanSDOItem.h.

◆ getTimeout()

OpcUa_UInt32 CanOpen::CanSDOItem::getTimeout ( )
inline

Definition at line 50 of file CanSDOItem.h.

◆ pack()

UaStatus CanOpen::CanSDOItem::pack ( const OpcUa_Variant *  sData)
virtual

Reimplemented from CanOpen::CanOpenItem.

Definition at line 101 of file CanSDOItem.cpp.

◆ read()

UaStatus CanOpen::CanSDOItem::read ( )
virtual

Reimplemented from CanOpen::CanOpenItem.

Definition at line 80 of file CanSDOItem.cpp.

◆ UnPack()

UaVariant CanOpen::CanSDOItem::UnPack ( )
virtual

Reimplemented from CanOpen::CanOpenItem.

Definition at line 225 of file CanSDOItem.cpp.

◆ write()

UaStatus CanOpen::CanSDOItem::write ( UaDataValue &  udv)
virtual

Reimplemented from CanOpen::CanOpenItem.

Definition at line 67 of file CanSDOItem.cpp.

Member Data Documentation

◆ m_subind

OpcUa_Byte CanOpen::CanSDOItem::m_subind
protected

Definition at line 52 of file CanSDOItem.h.

◆ m_Timeout

OpcUa_UInt32 CanOpen::CanSDOItem::m_Timeout
protected

Definition at line 53 of file CanSDOItem.h.


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