#include <ethercat_master.h>
|
| virtual | ~EthercatMaster ()=default |
| virtual size_t | start ()=0 |
| | Start the EtherCAT master.
|
| virtual void | stop ()=0 |
| | Stop the EtherCAT master.
|
| virtual size_t | restart ()=0 |
| | Restart 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 bool | is_running ()=0 |
| | Check if the EtherCAT master is currently running.
|
| virtual int | get_slaves_responding ()=0 |
| | Return the number of slaves actually responding on the bus.
|
| virtual std::list< VirtualDevice * > | get_slaves ()=0 |
| | Get all of the available slaves.
|
| virtual bool | disable_all_slaves ()=0 |
| | Switch all slaves to PREOP.
|
◆ ~EthercatMaster()
| virtual EthercatMaster::~EthercatMaster |
( |
| ) |
|
|
virtualdefault |
◆ 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 EthernetMaster, MockMaster, and SoemMaster.
◆ execute()
| virtual int32_t EthercatMaster::execute |
( |
uint64_t | pending_signals | ) |
|
|
pure virtual |
◆ get_slaves()
| virtual std::list< VirtualDevice * > EthercatMaster::get_slaves |
( |
| ) |
|
|
pure virtual |
◆ get_slaves_responding()
| virtual int EthercatMaster::get_slaves_responding |
( |
| ) |
|
|
pure virtual |
◆ is_running()
| virtual bool EthercatMaster::is_running |
( |
| ) |
|
|
pure virtual |
◆ 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 EthernetMaster, MockMaster, and SoemMaster.
◆ start()
| virtual size_t EthercatMaster::start |
( |
| ) |
|
|
pure virtual |
◆ stop()
| virtual void EthercatMaster::stop |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: