#include <ethercat_master.h>
◆ ~EthercatMaster()
virtual EthercatMaster::~EthercatMaster |
( |
| ) |
|
|
virtualdefault |
◆ abort_all_client_requests()
virtual void EthercatMaster::abort_all_client_requests |
( |
| ) |
|
|
pure virtual |
◆ disable_all_slaves()
virtual bool EthercatMaster::disable_all_slaves |
( |
| ) |
|
|
pure virtual |
Switch all slaves to PREOP.
- Attention
- Must be implemented as non-blocking!
- Returns
- true on success, false otherwise
Implemented in MockMaster, and SoemMaster.
◆ execute()
virtual int32_t EthercatMaster::execute |
( |
uint64_t |
pending_signals | ) |
|
|
pure virtual |
Main EtherCAT master loop function to be executed at one millisecond interval.
- Returns
- error if any
Implemented in MockMaster, and SoemMaster.
◆ get_slaves()
virtual std::list< VirtualDevice * > EthercatMaster::get_slaves |
( |
| ) |
|
|
pure virtual |
Get all of the available slaves.
- Returns
- map of available slaves
Implemented in MockMaster, and SoemMaster.
◆ get_slaves_responding()
virtual int EthercatMaster::get_slaves_responding |
( |
| ) |
|
|
pure virtual |
Return the number of slaves actually responding on the bus.
- Returns
- number of responding slaves
Implemented in MockMaster, and SoemMaster.
◆ is_running()
virtual bool EthercatMaster::is_running |
( |
| ) |
|
|
pure virtual |
Check if the EtherCAT master is currently running.
- Returns
- true if currently running, false otherwise
Implemented in MockMaster, and SoemMaster.
◆ restart()
virtual size_t EthercatMaster::restart |
( |
| ) |
|
|
pure virtual |
Restart the EtherCAT master.
This function deactivates the master (and slaves) and activates it again
- Returns
- the number of responding slaves
- Exceptions
-
Implemented in MockMaster, and SoemMaster.
◆ start()
virtual size_t EthercatMaster::start |
( |
| ) |
|
|
pure virtual |
Start the EtherCAT master.
- Returns
- the number of initially responding slaves
Implemented in MockMaster, and SoemMaster.
◆ stop()
virtual void EthercatMaster::stop |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: