OpcUaCanOpen
CANopen OPC-UA server
|
This class represent the generic variable created based on XML definitions. More...
#include <UaControlDeviceItem.h>
Inherits AddressSpace::UaControlVariable, and AddressSpace::UaControlVariable.
Public Member Functions | |
UaControlDeviceItem (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
UaControlDeviceItem (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaVariableType *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
virtual UaStatus | write (UaDataValue &udv) |
virtual UaStatus | read () |
read data from hardware More... | |
virtual UaStatus | read (IOVariableCallback *iom) |
read data from hardware via callback function this function are using for subscribe item More... | |
void | setAccess (DirectionType ac) |
Set Access function where ac can be CAN_IN,CAN_OUT,CAN_IO. More... | |
virtual void | addMethod (OpcUa::BaseMethod *meth) |
UaControlDeviceItem (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
UaControlDeviceItem (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaVariableType *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
virtual UaStatus | write (UaDataValue &udv) |
virtual UaStatus | read () |
read data from hardware More... | |
virtual UaStatus | read (IOVariableCallback *iom) |
read data from hardware via callback function this function are using for subscribe item More... | |
void | setAccess (DirectionType ac) |
Set Access function where ac can be CAN_IN,CAN_OUT,CAN_IO. More... | |
virtual void | addMethod (OpcUa::BaseMethod *meth) |
![]() | |
UaControlVariable (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
UaControlVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaMutexRefCounted *pSharedMutex) | |
virtual | ~UaControlVariable () |
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
Redefine setValue function to sent data change signal;. More... | |
virtual UaStatus | setValueOnChange (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
Redefine setValue function to sent data change signal;. More... | |
virtual void | connectItem (UaControlVariable *item) |
virtual UaNodeId | typeDefinitionId () const |
virtual void | setTypeDefinition (UaNodeId uni) |
set node id of type of variable More... | |
void | convertToDouble (const UaDataValue &dataValue) |
Signal. More... | |
UaControlVariable (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, UaMutexRefCounted *pSharedMutex) | |
Constructor. More... | |
UaControlVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaMutexRefCounted *pSharedMutex) | |
virtual | ~UaControlVariable () |
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
Redefine setValue function to sent data change signal;. More... | |
virtual UaStatus | setValueOnChange (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
Redefine setValue function to sent data change signal;. More... | |
virtual void | connectItem (UaControlVariable *item) |
virtual UaNodeId | typeDefinitionId () const |
virtual void | setTypeDefinition (UaNodeId uni) |
set node id of type of variable More... | |
void | convertToDouble (const UaDataValue &dataValue) |
Signal. More... | |
Protected Attributes | |
std::vector< OpcUa::BaseMethod * > | m_pMethod |
Private Member Functions | |
UA_DISABLE_COPY (UaControlDeviceItem) | |
UA_DISABLE_COPY (UaControlDeviceItem) | |
Additional Inherited Members | |
![]() | |
boost::signals2::signal< void(Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) > | valueChange |
write date to hardware More... | |
OpcUa_Double | curValue |
This class represent the generic variable created based on XML definitions.
It comprises the function using all variable in OpcUaCanOpenServer. (read,write, TypeDefinition)
Definition at line 193 of file UaControlDeviceItem.h.
AddressSpace::UaControlDeviceItem::UaControlDeviceItem | ( | UaNode * | cur, |
NmBuildingAutomation * | pNodeManager, | ||
UaVariable * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf, | ||
UaMutexRefCounted * | pSharedMutex | ||
) |
Constructor.
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
baTypeId | identifier of a device (using to connect to hardware device) |
conf | XML configuration entry for this node |
interf | pointer to the object representing hardware device |
pSharedMutex | pointer to shared mutex (using toolkit) |
Definition at line 28 of file UaControlDeviceItem.cpp.
AddressSpace::UaControlDeviceItem::UaControlDeviceItem | ( | const UaString & | name, |
const UaNodeId & | newNodeId, | ||
NmBuildingAutomation * | pNodeManager, | ||
UaVariant & | dv, | ||
UaVariableType * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf, | ||
UaMutexRefCounted * | pSharedMutex | ||
) |
Constructor.
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
instance | pointer to variable type defining common parameters |
conf | xml configuration entry for this node |
interf | pointer to the object representing hardware device |
pSharedMutex | pointer to shared mutex (using toolkit) |
Definition at line 54 of file UaControlDeviceItem.cpp.
AddressSpace::UaControlDeviceItem::UaControlDeviceItem | ( | UaNode * | cur, |
NmBuildingAutomation * | pNodeManager, | ||
UaVariable * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf, | ||
UaMutexRefCounted * | pSharedMutex | ||
) |
Constructor.
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
baTypeId | identifier of a device (using to connect to hardware device) |
conf | XML configuration entry for this node |
interf | pointer to the object representing hardware device |
pSharedMutex | pointer to shared mutex (using toolkit) |
AddressSpace::UaControlDeviceItem::UaControlDeviceItem | ( | const UaString & | name, |
const UaNodeId & | newNodeId, | ||
NmBuildingAutomation * | pNodeManager, | ||
UaVariant & | dv, | ||
UaVariableType * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf, | ||
UaMutexRefCounted * | pSharedMutex | ||
) |
Constructor.
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
instance | pointer to variable type defining common parameters |
conf | xml configuration entry for this node |
interf | pointer to the object representing hardware device |
pSharedMutex | pointer to shared mutex (using toolkit) |
|
inlinevirtual |
Definition at line 270 of file UaControlDeviceItem.hpp.
|
inlinevirtual |
Definition at line 271 of file UaControlDeviceItem.h.
|
virtual |
read data from hardware
Reimplemented from AddressSpace::UaControlVariable.
|
virtual |
read data from hardware
Reimplemented from AddressSpace::UaControlVariable.
Definition at line 119 of file UaControlDeviceItem.cpp.
|
virtual |
read data from hardware via callback function this function are using for subscribe item
iom | callback function to inform toolkit about value changing |
|
virtual |
read data from hardware via callback function this function are using for subscribe item
iom | callback function to inform toolkit about value changing |
Definition at line 132 of file UaControlDeviceItem.cpp.
|
inline |
Set Access function where ac can be CAN_IN,CAN_OUT,CAN_IO.
Definition at line 253 of file UaControlDeviceItem.hpp.
|
inline |
Set Access function where ac can be CAN_IN,CAN_OUT,CAN_IO.
Definition at line 254 of file UaControlDeviceItem.h.
|
private |
|
private |
|
virtual |
Reimplemented from AddressSpace::UaControlVariable.
|
virtual |
Reimplemented from AddressSpace::UaControlVariable.
Definition at line 98 of file UaControlDeviceItem.cpp.
|
protected |
Definition at line 273 of file UaControlDeviceItem.h.