|
MIRA
|
A CANopen SDO client. More...
#include <can/CANOpenSDOClient.h>

Public Member Functions | |
| virtual void | onDestructFuture (uint64 requestID) |
Constructors and destructor | |
| CANOpenSDOClient (CANInterfacePtr iIfc) | |
| The constructor. More... | |
| virtual | ~CANOpenSDOClient () |
| The destructor. More... | |
Expedited SDO uploads for standard data types. | |
| template<typename T > | |
| SDOFuture< T > | read (uint8 node, uint16 index, uint8 subIndex) |
| Perform an expedited SDO upload (a read operation) More... | |
| template<typename T > | |
| T | readSync (uint8 node, uint16 index, uint8 subIndex, Duration waitTime=Duration::milliseconds(50), uint32 maxTries=5) |
| Perform a synchronous SDO upload (read operation) More... | |
| CANOpenNodeInfo | readNodeInfo (uint8 node) |
| Reads informations about a node via SDOs. More... | |
Expedited SDO downloads for standard data types. | |
| template<typename T > | |
| SDOFuture< void > | write (uint8 node, uint16 index, uint8 subIndex, T value) |
| Perform an expedited SDO download (a write operation) More... | |
| template<typename T > | |
| SDOFuture< void > | writeSync (uint8 node, uint16 index, uint8 subIndex, T value, Duration waitTime=Duration::milliseconds(50), uint32 maxTries=5) |
| Perform a synchronous write operation. More... | |
A CANopen SDO client.
An implementation of a CANopen SDO client. This class is able to read and write service data objects (SDO) from other CANopen nodes.
| CANOpenSDOClient | ( | CANInterfacePtr | iIfc | ) |
The constructor.
| [in] | iIfc | The interface to the CAN bus |
|
virtual |
The destructor.
Perform an expedited SDO upload (a read operation)
| [in] | node | The requested CANopen node. |
| [in] | index | The index of the requested SDO. |
| [in] | subIndex | The requested sub-index. |
|
inline |
Perform a synchronous SDO upload (read operation)
| [in] | node | The requested CANopen node. |
| [in] | index | The index of the requested SDO. |
| [in] | subIndex | The requested sub-index. |
| [in] | waitTime | The wait time for the read operation. |
| [in] | maxTries | The maximum number of tries. |
| CANOpenNodeInfo readNodeInfo | ( | uint8 | node | ) |
Reads informations about a node via SDOs.
| [in] | node | ID of the node |
Perform an expedited SDO download (a write operation)
| [in] | node | The requested CANopen node. |
| [in] | index | The index of the requested SDO. |
| [in] | subIndex | The requested sub-index. |
| [in] | value | The value to write. |
|
inline |
Perform a synchronous write operation.
| [in] | node | The requested CANopen node. |
| [in] | index | The index of the requested SDO. |
| [in] | subIndex | The requested sub-index. |
| [in] | value | The value. |
| [in] | waitTime | The wait time for the read operation. |
| [in] | maxTries | The maximum number of tries. |
|
virtual |
Implements SDOClientBase.
1.8.14