Abstract class collects the basic properties and function of the Device This class defines the interface which OpcUaCanOpen Server uses to connect to the hardware part and "send and get" functions to exchange data.
More...
#include <InterfaceUserDataBase.h>
Inherits UserDevice::UserDeviceStruct.
Inherited by CanOpen::CanObject, CanOpen::CanOpenObject, and UserDevice::UserDeviceItem.
|
| 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...
|
|
virtual UaStatus | getDeviceMessage (OpcUa_UInt32 code)=0 |
| 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)=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 *node)=0 |
| Connect UaVariable with function code. More...
|
|
virtual UaVariant | getPropertyValue (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf)=0 |
|
| 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 () |
|
Abstract class collects the basic properties and function of the Device This class defines the interface which OpcUaCanOpen Server uses to connect to the hardware part and "send and get" functions to exchange data.
Definition at line 17 of file InterfaceUserDataBase.h.
◆ InterfaceUserDataBase()
UserDevice::InterfaceUserDataBase::InterfaceUserDataBase |
( |
pUserDeviceStruct * |
parent, |
|
|
::xsd::cxx::tree::type * |
conf, |
|
|
UaNode * |
pAS, |
|
|
OpcUa_UInt |
code |
|
) |
| |
|
inline |
Constructor Also create the shared mutex which can be used to synchronize operation on device using lock/unlock function.
- Parameters
-
parent | the pointer on parent device |
conf | XML definition for device |
pAS | UaNode callback node to pass data ( if needed ) |
code | function code defines data or operation |
Definition at line 29 of file InterfaceUserDataBase.h.
◆ ~InterfaceUserDataBase()
virtual UserDevice::InterfaceUserDataBase::~InterfaceUserDataBase |
( |
void |
| ) |
|
|
inlinevirtual |
◆ connectCode()
virtual UaStatus UserDevice::InterfaceUserDataBase::connectCode |
( |
OpcUa_UInt32 |
code, |
|
|
::xsd::cxx::tree::type * |
conf, |
|
|
UaNode * |
node |
|
) |
| |
|
pure virtual |
◆ getDeviceMessage()
virtual UaStatus UserDevice::InterfaceUserDataBase::getDeviceMessage |
( |
OpcUa_UInt32 |
code | ) |
|
|
pure virtual |
◆ getPropertyValue()
virtual UaVariant UserDevice::InterfaceUserDataBase::getPropertyValue |
( |
OpcUa_UInt32 |
code, |
|
|
::xsd::cxx::tree::type * |
conf |
|
) |
| |
|
pure virtual |
◆ sendDeviceMessage()
virtual UaStatus UserDevice::InterfaceUserDataBase::sendDeviceMessage |
( |
OpcUa_UInt32 |
code, |
|
|
UaDataValue * |
value = 0 |
|
) |
| |
|
pure virtual |
◆ UA_DISABLE_COPY()
The documentation for this class was generated from the following file: