OpcUaCanOpen
CANopen OPC-UA server
|
The Class defines the basic operation of any item which takes data from CAN pdo message and put date into CAN pdo message. More...
#include <CanPDOItem.h>
Inherits CanOpen::CanOpenItem.
Public Member Functions | |
CanPDOItem (pUserDeviceStruct *parent, PDOITEM *conf, UaNode *pAS, OpcUa_UInt32 code) | |
Constructor. More... | |
CanPDOItem ()=default | |
virtual UaVariant | UnPack () |
retrieve value from can pdo message More... | |
virtual UaStatus | pack (const OpcUa_Variant *) |
put value to can pdo message More... | |
virtual | ~CanPDOItem (void) |
Destructor. More... | |
virtual void | setItemValue () |
Write value to UaVariable. More... | |
void | setIndex (OpcUa_Byte i) |
set channel number More... | |
OpcUa_Byte | getIndex () |
OpcUa_Byte | getStartByte () |
OpcUa_Byte | getBit () |
CanPDOObject * | getCanPDOObject () |
virtual UaStatus | connectCode (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf, UaNode *blink) |
virtual UaVariant | getPropertyValue (OpcUa_UInt32 code, ::xsd::cxx::tree::type *conf) |
virtual UaStatus | write (UaDataValue &udv) |
Send value to can bus. More... | |
virtual UaStatus | read () |
function does not use More... | |
![]() | |
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) |
![]() | |
UserDeviceItem (UserDataBase *parrent,::xml_schema::type *conf, UaNode *pAS, OpcUa_UInt code) | |
virtual | ~UserDeviceItem (void) |
Protected Attributes | |
OpcUa_Byte | m_Index |
Channel number for ELMB for normal PDO = 0. More... | |
OpcUa_Byte | m_startByte |
initial byte of date More... | |
OpcUa_Byte | m_numBit |
fir bit type bit number in byte More... | |
Additional Inherited Members | |
![]() | |
static UaStatus | convertOpcUaType (const OpcUa_Variant *sData, OpcUa_Variant *oData, OpcUa_BuiltInType bType) |
The Class defines the basic operation of any item which takes data from CAN pdo message and put date into CAN pdo message.
Definition at line 19 of file CanPDOItem.h.
CanOpen::CanPDOItem::CanPDOItem | ( | pUserDeviceStruct * | parent, |
PDOITEM * | conf, | ||
UaNode * | pAS, | ||
OpcUa_UInt32 | code | ||
) |
Constructor.
parent | - pointer on parent CanPdoObject |
conf | - XML configuration entry for this item |
pAS | - pointer to UaNode to pass data |
code | - function code of operation |
start byte in can message
bit position in byte
Definition at line 8 of file CanPDOItem.cpp.
|
default |
|
inlinevirtual |
Destructor.
Definition at line 35 of file CanPDOItem.h.
|
virtual |
Reimplemented from CanOpen::CanOpenItem.
Definition at line 321 of file CanPDOItem.cpp.
|
inline |
Definition at line 47 of file CanPDOItem.h.
CanPDOObject * CanOpen::CanPDOItem::getCanPDOObject | ( | ) |
Definition at line 69 of file CanPDOItem.cpp.
|
inline |
Definition at line 43 of file CanPDOItem.h.
|
virtual |
Reimplemented from CanOpen::CanOpenItem.
Definition at line 351 of file CanPDOItem.cpp.
|
inline |
Definition at line 45 of file CanPDOItem.h.
|
virtual |
put value to can pdo message
Pack data from item to can message.
sData | data to pack |
Reimplemented from CanOpen::CanOpenItem.
Definition at line 84 of file CanPDOItem.cpp.
|
inlinevirtual |
function does not use
Reimplemented from CanOpen::CanOpenItem.
Definition at line 59 of file CanPDOItem.h.
|
inline |
set channel number
Definition at line 41 of file CanPDOItem.h.
|
virtual |
Write value to UaVariable.
Definition at line 305 of file CanPDOItem.cpp.
|
virtual |
retrieve value from can pdo message
Reimplemented from CanOpen::CanOpenItem.
Definition at line 218 of file CanPDOItem.cpp.
|
virtual |
Send value to can bus.
udv | value to send |
Reimplemented from CanOpen::CanOpenItem.
Definition at line 74 of file CanPDOItem.cpp.
|
protected |
Channel number for ELMB for normal PDO = 0.
Definition at line 62 of file CanPDOItem.h.
|
protected |
fir bit type bit number in byte
Definition at line 64 of file CanPDOItem.h.
|
protected |
initial byte of date
Definition at line 63 of file CanPDOItem.h.