26#if !LELY_NO_COAPP_MASTER
34BasicLogicalDriver<BasicDriver>::BasicLogicalDriver(BasicDriver& driver_,
35 int num, uint32_t dev)
36 : master(driver_.master),
40 tpdo_event_mutex(driver_.tpdo_event_mutex),
46BasicLogicalDriver<BasicDriver>::~BasicLogicalDriver() { driver.Erase(*
this); }
64 if ((value) >> 16 == 0xffff)
return read_67ff();
71 auto value = driver.master[0x1f84][driver.id()].Read<
uint32_t>(ec);
94 OnConfig([p](::std::error_code ec)
mutable {
95 p.set(::std::make_exception_ptr(::std::system_error(ec,
"OnConfig")));
97 return p.get_future();
105 GetExecutor().post([
this, p]()
mutable {
106 OnDeconfig([p](::std::error_code ec)
mutable {
107 p.set(::std::make_exception_ptr(::std::system_error(ec,
"OnDeconfig")));
110 return p.get_future();
The base class for drivers for logical devices on remote CANopen nodes.
This is the internal header file of the C++ CANopen application library.
This header file is part of the C++ CANopen application library; it contains the logical device drive...
SdoFuture< void > make_empty_sdo_future()
Returns an SDO future with a shared state that is immediately ready, containing a successful result o...