|
rllib
1
|
#include <rlcanopenclient.h>


Public Member Functions | |
| rlCanClient (int _port, char *_remoteadress, int _boardnr) | |
| ~rlCanClient () | |
| int | sdo_read (int _nodeid, int _objectindex, int _subindex, rlCanOpenTypes &_sdo_data) |
| int | sdo_write (int _nodeid, int _objectindex, int _subindex, rlCanOpenTypes &_sdo_data) |
| int | pdo_receive (int _nodeid, int _pdonr, int _mappingnr, rlCanOpenTypes &_pdo_data) |
| receives an 8 byte pdo from daemon. | |
| int | pdo_receive (int _nodeid, int _pdonr, rlCanOpenTypes &_pdo_data) |
| int | pdo_transmit (int _nodeid, int _pdonr, int _mappingnr, rlCanOpenTypes &_pdo_data) |
| sends an 8 byte pdo to daemon. | |
| int | pdo_transmit (int _nodeid, int _pdonr, rlCanOpenTypes &_pdo_data) |
| int | sendNMTCommand (int _nodeid, unsigned char _cmd, bool &returnstate) |
| int | restartBoard (int _restarttype, bool &returnstate) |
| int | getNodeState (int _nodeid, rlCanOpenTypes &_data) |
Private Attributes | |
| int | boardnr |
Definition at line 158 of file rlcanopenclient.h.
| rlCanClient::rlCanClient | ( | int | _port, |
| char * | _remoteadress, | ||
| int | _boardnr | ||
| ) |
Definition at line 18 of file rlcanopenclient.cpp.
:rlCanOpenClient(_port, _remoteadress) { boardnr = _boardnr; rlCanOpenClient::connect(); }
| rlCanClient::~rlCanClient | ( | ) |
Definition at line 25 of file rlcanopenclient.cpp.
{
rlCanOpenClient::disconnect();
}
| int rlCanClient::getNodeState | ( | int | _nodeid, |
| rlCanOpenTypes & | _data | ||
| ) |
Definition at line 86 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::getNodeState(boardnr, _nodeid, _data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::pdo_receive | ( | int | _boardnr, |
| int | _nodeid, | ||
| int | _pdonr, | ||
| rlCanOpenTypes & | _pdo_data | ||
| ) |
receives an 8 byte pdo from daemon.
receives an 8 byte pdo from daemon. Function will return NULL if connection to daemon broke down. CanOpen interface related errors are accessable in _sdo_data.get_rlmsgerr()
Reimplemented from rlCanOpenClient.
Definition at line 44 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::pdo_receive(boardnr, _nodeid, _pdonr, _mappingnr, _pdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::pdo_receive | ( | int | _nodeid, |
| int | _pdonr, | ||
| rlCanOpenTypes & | _pdo_data | ||
| ) |
Definition at line 51 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::pdo_receive(boardnr, _nodeid, _pdonr, _pdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::pdo_transmit | ( | int | _boardnr, |
| int | _nodeid, | ||
| int | _pdonr, | ||
| rlCanOpenTypes & | _pdo_data | ||
| ) |
sends an 8 byte pdo to daemon.
sends an 8 byte pdo to daemon. Function will return NULL if connection to daemon broke down. CanOpen interface related errors are accessable in _pdo_data.get_rlmsgerr()
Reimplemented from rlCanOpenClient.
Definition at line 58 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::pdo_receive(boardnr, _nodeid, _pdonr, _mappingnr, _pdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::pdo_transmit | ( | int | _nodeid, |
| int | _pdonr, | ||
| rlCanOpenTypes & | _pdo_data | ||
| ) |
Definition at line 65 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::pdo_receive(boardnr, _nodeid, _pdonr, _pdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::restartBoard | ( | int | _restarttype, |
| bool & | returnstate | ||
| ) |
Definition at line 79 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::restartBoard(boardnr, _restarttype, returnstate);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::sdo_read | ( | int | _nodeid, |
| int | _objectindex, | ||
| int | _subindex, | ||
| rlCanOpenTypes & | _sdo_data | ||
| ) |
Definition at line 30 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::sdo_read(boardnr, _nodeid, _objectindex, _subindex, _sdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::sdo_write | ( | int | _nodeid, |
| int | _objectindex, | ||
| int | _subindex, | ||
| rlCanOpenTypes & | _sdo_data | ||
| ) |
Definition at line 37 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::sdo_write(boardnr, _nodeid, _objectindex, _subindex, _sdo_data);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
| int rlCanClient::sendNMTCommand | ( | int | _nodeid, |
| unsigned char | _cmd, | ||
| bool & | returnstate | ||
| ) |
Definition at line 72 of file rlcanopenclient.cpp.
{
int ret = rlCanOpenClient::sendNMTCommand(boardnr, _nodeid, _cmd, returnstate);
if(ret != 1) rlCanOpenClient::connect();
return ret;
}
int rlCanClient::boardnr [private] |
Definition at line 173 of file rlcanopenclient.h.
1.7.5.1