CanOpenObject class represents the can open messages which can be sent or received via can bus.
More...
#include <CanOpenObject.h>
Inherits UserDevice::InterfaceUserDataBase.
Inherited by CanOpen::CanPDOObject, and CanOpen::CanSDOObject.
|
| | 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 () |
| |
| virtual void | pass (const CanMsgStruct *)=0 |
| |
| virtual bool | isMsgForObject (const CanMsgStruct *) |
| | check if message for this object (cobId) More...
|
| |
| 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...
|
| |
| 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 () |
| |
CanOpenObject class represents the can open messages which can be sent or received via can bus.
Definition at line 24 of file CanOpenObject.h.
◆ CanOpenObject()
This class defines operations for canopen protocol.
Constructor
- Parameters
-
| parent | pointer to parent object usually null for CanBusObject |
| conf | XML configuration entry |
| blink | pointer to Ua Node |
| code | function code for this object |
Definition at line 13 of file CanOpenObject.cpp.
◆ ~CanOpenObject()
| CanOpen::CanOpenObject::~CanOpenObject |
( |
void |
| ) |
|
|
virtual |
◆ getBusName()
| const char* CanOpen::CanOpenObject::getBusName |
( |
| ) |
|
|
inline |
◆ getCanBus()
| CCanAccess * CanOpen::CanOpenObject::getCanBus |
( |
| ) |
|
◆ getCobId()
| OpcUa_UInt16 CanOpen::CanOpenObject::getCobId |
( |
| ) |
|
|
inline |
◆ getDirectionType()
◆ isMsgForObject()
| bool CanOpen::CanOpenObject::isMsgForObject |
( |
const CanMsgStruct * |
cmg | ) |
|
|
virtual |
◆ messageCame()
| virtual void CanOpen::CanOpenObject::messageCame |
( |
| ) |
|
|
inlinevirtual |
◆ pass()
| virtual void CanOpen::CanOpenObject::pass |
( |
const CanMsgStruct * |
| ) |
|
|
pure virtual |
◆ releaseOperation()
| UaStatus CanOpen::CanOpenObject::releaseOperation |
( |
| ) |
|
|
virtual |
◆ signalOperation()
| virtual UaStatus CanOpen::CanOpenObject::signalOperation |
( |
| ) |
|
|
inlinevirtual |
◆ waitOperation() [1/2]
| UaStatus CanOpen::CanOpenObject::waitOperation |
( |
OpcUa_UInt |
timeout | ) |
|
◆ waitOperation() [2/2]
| UaStatus CanOpen::CanOpenObject::waitOperation |
( |
| ) |
|
◆ m_buffer
| UaByteArray CanOpen::CanOpenObject::m_buffer |
◆ m_cobId
| OpcUa_UInt16 CanOpen::CanOpenObject::m_cobId |
|
protected |
◆ m_direction
◆ m_iCount
| OpcUa_UInt32 CanOpen::CanOpenObject::m_iCount |
|
protected |
◆ m_iMaxCount
| OpcUa_UInt32 CanOpen::CanOpenObject::m_iMaxCount |
|
protected |
◆ m_iTimeout
| OpcUa_UInt32 CanOpen::CanOpenObject::m_iTimeout |
|
protected |
◆ m_udt
| UaDateTime CanOpen::CanOpenObject::m_udt |
◆ m_waitMessage
| UaSemaphore CanOpen::CanOpenObject::m_waitMessage |
|
protected |
The documentation for this class was generated from the following files: