Lely core libraries
2.2.5
|
An SDO download (i.e., write) request. More...
#include <sdo.hpp>
Public Types | |
using | Signature = void(uint8_t id, uint16_t idx, uint8_t subidx, ::std::error_code ec) |
The signature of the callback function invoked on completion of an SDO download request. More... | |
Public Member Functions | |
template<class F > | |
SdoDownloadRequest (ev_exec_t *exec, F &&con) | |
Constructs an empty SDO download request. More... | |
![]() | |
ev::Executor | GetExecutor () const noexcept |
Returns the executor to which the completion task is (to be) submitted. | |
Additional Inherited Members | |
![]() | |
T | value {} |
The value to be written. | |
![]() | |
uint8_t | id {0} |
The node-ID. | |
uint16_t | idx {0} |
The object index. | |
uint8_t | subidx {0} |
The object sub-index. | |
::std::chrono::milliseconds | timeout |
The SDO timeout. More... | |
::std::error_code | ec |
The SDO abort code (0 on success). | |
![]() | |
ev_exec_t * | exec |
A pointer to the executor to which the task is (to be) submitted. | |
ev_task_func_t * | func |
The function to be invoked when the task is run. | |
An SDO download (i.e., write) request.
using lely::canopen::SdoDownloadRequest< T >::Signature = void(uint8_t id, uint16_t idx, uint8_t subidx, ::std::error_code ec) |
The signature of the callback function invoked on completion of an SDO download request.
Note that the callback function SHOULD NOT throw exceptions. Since it is invoked from C, any exception that is thrown cannot be caught and will result in a call to std::terminate()
.
id | the node-ID. |
idx | the object index. |
subidx | the object sub-index. |
ec | the SDO abort code (0 on success). |
|
inline |