class CanSDOObject ensures the SDO operation on the bus
More...
#include <CanSDOObject.h>
Inherits CanOpen::CanOpenObject.
|
| | CanSDOObject (pUserDeviceStruct *par, SDO *conf, UaNode *blink, int code) |
| |
| virtual | ~CanSDOObject (void) |
| |
| virtual UaStatus | getDeviceMessage (OpcUa_UInt32 code) |
| | read data defined of function code from device Abstract function to take can messages based on type id (buldingAutomationTypeIds.h) 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 void | pass (const CanMsgStruct *) |
| | SDO callback function to put sdo message to buffer. 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) |
| |
| virtual bool | isMsgForObject (const CanMsgStruct *) |
| | Check id this message for this object. More...
|
| |
| virtual UaStatus | readSdo (UaDataValue &) |
| |
| virtual UaStatus | writeSdo (UaDataValue &udv) |
| |
| OpcUa_BuiltInType | getItemType () |
| |
| UaDateTime & | getLastTimeStamp () |
| |
| OpcUa_Byte | getSubIndex () |
| |
| OpcUa_UInt16 | getIndex () |
| |
| void | setIndex (OpcUa_UInt16 ind) |
| |
| CanSDOItem * | getSDOItem () |
| |
| void | setSDOItem (CanSDOItem *csdo) |
| |
| void | freeSDOItem () |
| |
| void | setTimeout (OpcUa_UInt32 t) |
| |
| | CanOpenObject (pUserDeviceStruct *parent,::xml_schema::type *conf, UaNode *blink, int code) |
| | This class defines operations for canopen protocol. More...
|
| |
| virtual | ~CanOpenObject (void) |
| | Destructor. More...
|
| |
| CCanAccess * | getCanBus () |
| |
| const char * | getBusName () |
| |
| OpcUa_UInt16 | getCobId () |
| |
| DirectionType | getDirectionType () |
| |
| UaStatus | waitOperation (OpcUa_UInt timeout) |
| |
| UaStatus | waitOperation () |
| |
| virtual void | messageCame () |
| |
| virtual UaStatus | releaseOperation () |
| |
| virtual UaStatus | signalOperation () |
| |
| | 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...
|
| |
| | 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 () |
| |
| UserDeviceStruct * | getParentDevice () |
| |
| pUserDeviceStruct * | getTopInterface () |
| |
| pUserDeviceStruct * | getParent () |
| |
| virtual void | setInvalid () |
| |
| UaNode * | getAddressSpaceEntry () |
| |
class CanSDOObject ensures the SDO operation on the bus
Definition at line 17 of file CanSDOObject.h.
◆ CanSDOObject()
| CanOpen::CanSDOObject::CanSDOObject |
( |
pUserDeviceStruct * |
par, |
|
|
SDO * |
conf, |
|
|
UaNode * |
blink, |
|
|
int |
code |
|
) |
| |
◆ ~CanSDOObject()
| CanOpen::CanSDOObject::~CanSDOObject |
( |
void |
| ) |
|
|
virtual |
◆ connectCode()
| UaStatus CanOpen::CanSDOObject::connectCode |
( |
OpcUa_UInt32 |
code, |
|
|
::xsd::cxx::tree::type * |
conf, |
|
|
UaNode * |
blink |
|
) |
| |
|
virtual |
connect function code to ua node to pass data
- Parameters
-
| code | function code defines the operation |
| conf | XML object containing the configuration information for this object |
| blink | ua node to pass data |
Implements UserDevice::InterfaceUserDataBase.
Definition at line 132 of file CanSDOObject.cpp.
◆ freeSDOItem()
| void CanOpen::CanSDOObject::freeSDOItem |
( |
| ) |
|
◆ getDeviceMessage()
| UaStatus CanOpen::CanSDOObject::getDeviceMessage |
( |
OpcUa_UInt32 |
code | ) |
|
|
virtual |
read data defined of function code from device Abstract function to take can messages based on type id (buldingAutomationTypeIds.h)
- Parameters
-
| code | function code defining of operation (send command ,data or read data) |
Implements UserDevice::InterfaceUserDataBase.
Definition at line 104 of file CanSDOObject.cpp.
◆ getIndex()
| OpcUa_UInt16 CanOpen::CanSDOObject::getIndex |
( |
| ) |
|
|
inline |
◆ getItemType()
| OpcUa_BuiltInType CanOpen::CanSDOObject::getItemType |
( |
| ) |
|
◆ getLastTimeStamp()
| UaDateTime& CanOpen::CanSDOObject::getLastTimeStamp |
( |
| ) |
|
|
inline |
◆ getPropertyValue()
| UaVariant CanOpen::CanSDOObject::getPropertyValue |
( |
OpcUa_UInt32 |
code, |
|
|
::xsd::cxx::tree::type * |
conf |
|
) |
| |
|
virtual |
◆ getSDOItem()
◆ getSubIndex()
| OpcUa_Byte CanOpen::CanSDOObject::getSubIndex |
( |
| ) |
|
◆ isMsgForObject()
| bool CanOpen::CanSDOObject::isMsgForObject |
( |
const CanMsgStruct * |
cms | ) |
|
|
virtual |
◆ pass()
| void CanOpen::CanSDOObject::pass |
( |
const CanMsgStruct * |
cms | ) |
|
|
virtual |
◆ readSdo()
| UaStatus CanOpen::CanSDOObject::readSdo |
( |
UaDataValue & |
udv | ) |
|
|
virtual |
◆ sendDeviceMessage()
| UaStatus CanOpen::CanSDOObject::sendDeviceMessage |
( |
OpcUa_UInt32 |
code, |
|
|
UaDataValue * |
value = 0 |
|
) |
| |
|
virtual |
◆ setIndex()
| void CanOpen::CanSDOObject::setIndex |
( |
OpcUa_UInt16 |
ind | ) |
|
|
inline |
◆ setSDOItem()
| void CanOpen::CanSDOObject::setSDOItem |
( |
CanSDOItem * |
csdo | ) |
|
◆ setTimeout()
| void CanOpen::CanSDOObject::setTimeout |
( |
OpcUa_UInt32 |
t | ) |
|
|
inline |
◆ writeSdo()
| UaStatus CanOpen::CanSDOObject::writeSdo |
( |
UaDataValue & |
udv | ) |
|
|
virtual |
◆ m_iLength
| OpcUa_UInt32 CanOpen::CanSDOObject::m_iLength |
◆ m_ind
| OpcUa_UInt16 CanOpen::CanSDOObject::m_ind |
|
private |
◆ m_pSDOItem
◆ m_segSdoBuffer
| UaByteArray CanOpen::CanSDOObject::m_segSdoBuffer |
The documentation for this class was generated from the following files: