|
Lely core libraries 2.3.5
|
An LSS 'switch state global' request. More...
#include <lss_master.hpp>


Public Types | |
| using | Signature = void(::std::error_code ec) |
| The signature of the callback function invoked on completion of an LSS 'switch state global' request. | |
Public Member Functions | |
| template<class F> | |
| LssSwitchRequest (ev_exec_t *exec, F &&con) | |
| Constructs an empty LSS 'switch state global' request with a completion task. | |
| template<class F> | |
| LssSwitchRequest (F &&con) | |
Equivalent to LssSwitchRequest(nullptr, con). | |
Public Member Functions inherited from lely::canopen::detail::LssRequestBase | |
| ev::Executor | GetExecutor () const noexcept |
| Returns the executor to which the completion task is (to be) submitted. | |
Additional Inherited Members | |
Data Fields inherited from lely::canopen::detail::LssSwitchRequestBase | |
| LssState | state {LssState::WAITING} |
| The desired state of the LSS slave devices. | |
Data Fields inherited from lely::canopen::detail::LssRequestBase | |
| ::std::error_code | ec {} |
| The error code (0 on success). | |
Data Fields inherited from ev_task | |
| 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 LSS 'switch state global' request.
Definition at line 296 of file lss_master.hpp.
| using lely::canopen::LssSwitchRequest::Signature = void(::std::error_code ec) |
The signature of the callback function invoked on completion of an LSS 'switch state global' 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().
| ec | the error code (0 on success). |
Definition at line 306 of file lss_master.hpp.
|
inlineexplicit |
Constructs an empty LSS 'switch state global' request with a completion task.
The desired state of the LSS slave devices has to be set before the request can be submitted.
Definition at line 314 of file lss_master.hpp.