Motion Master
Loading...
Searching...
No Matches
ethercat_master.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <map>
6
7#include "virtual_device.h"
8
10 public:
11 virtual ~EthercatMaster() = default;
12
18 virtual size_t start() = 0;
19
23 virtual void stop() = 0;
24
34 virtual size_t restart() = 0;
35
42 virtual int32_t execute(uint64_t pending_signals) = 0;
43
49 virtual bool is_running() = 0;
50
56 virtual int get_slaves_responding() = 0;
57
63 virtual std::list<VirtualDevice*> get_slaves() = 0;
64
72 virtual bool disable_all_slaves() = 0;
73
74 virtual void abort_all_client_requests() = 0;
75};
Definition: ethercat_master.h:9
virtual std::list< VirtualDevice * > get_slaves()=0
Get all of the available slaves.
virtual void stop()=0
Stop the EtherCAT master.
virtual size_t restart()=0
Restart the EtherCAT master.
virtual bool is_running()=0
Check if the EtherCAT master is currently running.
virtual bool disable_all_slaves()=0
Switch all slaves to PREOP.
virtual void abort_all_client_requests()=0
virtual ~EthercatMaster()=default
virtual size_t start()=0
Start the EtherCAT master.
virtual int32_t execute(uint64_t pending_signals)=0
Main EtherCAT master loop function to be executed at one millisecond interval.
virtual int get_slaves_responding()=0
Return the number of slaves actually responding on the bus.