Lely core libraries  1.9.2
lely::canopen::Sdo::DownloadRequest< T > Class Template Reference

An SDO download request. More...

#include <sdo.hpp>

Inheritance diagram for lely::canopen::Sdo::DownloadRequest< T >:
Collaboration diagram for lely::canopen::Sdo::DownloadRequest< T >:

Public Member Functions

template<class F >
 DownloadRequest (aio::ExecutorBase &exec, F &&con)
 Constructs an empty SDO download request. More...
 
template<class U , class F >
 DownloadRequest (uint16_t idx, uint8_t subidx, U &&value, aio::ExecutorBase &exec, F &&con, const duration &timeout)
 Constructs an SDO download request. More...
 

Detailed Description

template<class T>
class lely::canopen::Sdo::DownloadRequest< T >

An SDO download request.

Definition at line 132 of file sdo.hpp.

Constructor & Destructor Documentation

◆ DownloadRequest() [1/2]

template<class T>
template<class F >
lely::canopen::Sdo::DownloadRequest< T >::DownloadRequest ( aio::ExecutorBase &  exec,
F &&  con 
)
inline

Constructs an empty SDO download request.

The object index and sub-index, the value to be written and, optionally, the SDO timeout have to be set before the request can be submitted.

Parameters
execthe executor used to execute the confirmation function.
conthe confirmation function to be called on completion of the SDO request.
See also
Sdo::SubmitDownload<T>()

Definition at line 146 of file sdo.hpp.

◆ DownloadRequest() [2/2]

template<class T>
template<class U , class F >
lely::canopen::Sdo::DownloadRequest< T >::DownloadRequest ( uint16_t  idx,
uint8_t  subidx,
U &&  value,
aio::ExecutorBase &  exec,
F &&  con,
const duration timeout 
)
inline

Constructs an SDO download request.

Parameters
idxthe object index.
subidxthe object sub-index.
valuethe value to be written.
execthe executor used to execute the confirmation function.
conthe confirmation function to be called on completion of the SDO request.
timeoutthe SDO timeout. If, after the request is initiated, the timeout expires before receiving a response from the server, the client aborts the transfer with abort code SdoErrc::TIMEOUT.
See also
Sdo::SubmitDownload<T>()

Definition at line 166 of file sdo.hpp.


The documentation for this class was generated from the following files: