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

An SDO upload request. More...

#include <sdo.hpp>

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

Public Member Functions

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

Detailed Description

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

An SDO upload request.

Definition at line 197 of file sdo.hpp.

Constructor & Destructor Documentation

◆ UploadRequest() [1/2]

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

Constructs an empty SDO upload request.

The object index and sub-index 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::SubmitUpload<T>()

Definition at line 211 of file sdo.hpp.

◆ UploadRequest() [2/2]

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

Constructs an SDO upload request.

Parameters
idxthe object index.
subidxthe object sub-index.
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::SubmitUpload<T>()

Definition at line 230 of file sdo.hpp.


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