11 const std::string &ifname_;
12 std::atomic_bool running_;
13 bool pdo_communication_possible_ =
false;
15 std::chrono::time_point<std::chrono::steady_clock> start_;
26 static std::map<uint16_t, std::unique_ptr<EthercatSlave>>
slaveMap;
29 size_t start()
override;
32 int32_t
execute(uint64_t pending_signals)
override;
35 std::list<VirtualDevice *>
get_slaves()
override;
Definition: ethercat_master.h:9
Definition: notifier.h:10
Definition: soem_master.h:9
std::list< VirtualDevice * > get_slaves() override
Get all of the available slaves.
Definition: soem_master.cc:128
void checkstate()
Definition: soem_master.cc:206
bool disable_all_slaves() override
Switch all slaves to PREOP.
Definition: soem_master.cc:136
void stop() override
Stop the EtherCAT master.
Definition: soem_master.cc:86
~SoemMaster() override
Definition: soem_master.cc:73
static void wait_for_slaves(Notifier ¬ifier, const std::string &ifname)
Definition: soem_master.cc:146
int get_slaves_responding() override
Return the number of slaves actually responding on the bus.
Definition: soem_master.cc:126
static std::map< uint16_t, std::unique_ptr< EthercatSlave > > slaveMap
Definition: soem_master.h:26
void abort_all_client_requests() override
Definition: soem_master.h:37
int roundtrip()
Definition: soem_master.cc:180
size_t restart() override
Definition: soem_master.cc:104
bool is_running() override
Check if the EtherCAT master is currently running.
Definition: soem_master.cc:124
size_t start() override
Start the EtherCAT master.
Definition: soem_master.cc:75
int32_t execute(uint64_t pending_signals) override
Main EtherCAT master loop function to be executed at one millisecond interval.
Definition: soem_master.cc:106