OpcUaCanOpen
CANopen OPC-UA server
|
This class takes the can massage and distribute it to ua variables. More...
#include <CCanUACallback.h>
Public Member Functions | |
CCanUACallback (CanBusObject *cB) | |
Constructor. More... | |
virtual | ~CCanUACallback (void) |
virtual void | FireOnChange (const CanMsgStruct &) |
Callback function to distribute can message to servers items. More... | |
virtual void | FireOnError (const int, const char *, timeval &) |
Callback function to send error message to UaVariable PortError and Description. More... | |
void | addPDO (CanPDOObject *pdoObject) |
Add pdo message which can take from can bus. More... | |
void | addCanNode (CanNodeObject *cno) |
Add Can Node existing on the bus. More... | |
busNodes & | getListNodes () |
void | ConnectCallback () |
Function is to connect callback function to signals. More... | |
void | sendInitNodeNmt () |
Send initial nmt message. More... | |
void | waitAllData () |
Wait when all asking messages coming. More... | |
void | waitRTRData () |
Wait answer on rtr message. More... | |
void | executeRTR () |
Private Attributes | |
CanBusObject * | cBus |
CanBus connecting with this callback. More... | |
busPdos | PDOs |
set of PDOs on the bus More... | |
busNodes | NODEs |
set of nodes on the bus More... | |
This class takes the can massage and distribute it to ua variables.
Definition at line 23 of file CCanUACallback.h.
CanOpen::CCanUACallback::CCanUACallback | ( | CanBusObject * | cB | ) |
|
virtual |
Definition at line 23 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::addCanNode | ( | CanNodeObject * | cno | ) |
Add Can Node existing on the bus.
Definition at line 126 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::addPDO | ( | CanPDOObject * | pdoObject | ) |
Add pdo message which can take from can bus.
Definition at line 122 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::ConnectCallback | ( | ) |
Function is to connect callback function to signals.
Definition at line 37 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::executeRTR | ( | ) |
Definition at line 158 of file CCanUACallback.cpp.
|
virtual |
Callback function to distribute can message to servers items.
Definition at line 51 of file CCanUACallback.cpp.
|
virtual |
Callback function to send error message to UaVariable PortError and Description.
Definition at line 116 of file CCanUACallback.cpp.
|
inline |
Definition at line 42 of file CCanUACallback.h.
void CanOpen::CCanUACallback::sendInitNodeNmt | ( | ) |
Send initial nmt message.
Definition at line 130 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::waitAllData | ( | ) |
Wait when all asking messages coming.
Definition at line 138 of file CCanUACallback.cpp.
void CanOpen::CCanUACallback::waitRTRData | ( | ) |
Wait answer on rtr message.
Definition at line 149 of file CCanUACallback.cpp.
|
private |
CanBus connecting with this callback.
Definition at line 54 of file CCanUACallback.h.
|
private |
set of nodes on the bus
Definition at line 57 of file CCanUACallback.h.
|
private |
set of PDOs on the bus
Definition at line 56 of file CCanUACallback.h.