12 #include <soem/ethercattype.h>
13 #include <soem/nicdrv.h>
14 #include <soem/ethercatbase.h>
15 #include <soem/ethercatmain.h>
16 #include <soem/ethercatconfig.h>
17 #include <soem/ethercatdc.h>
18 #include <soem/ethercatcoe.h>
19 #include <soem/ethercatprint.h>
22 #include <boost/signals2/signal.hpp>
32 std::string description;
42 std::string description;
66 const std::string&
getName()
const;
114 virtual void setDC(
bool active,
unsigned int sync0Time,
unsigned int sync0Shift);
const std::string & getName() const
Get the slave name.
Definition: EcSlave.cpp:11
virtual bool checkState(ec_state state)
Checks the slave state.
Definition: EcSlave.cpp:39
Class EcSlave.
Definition: EcSlave.h:53
virtual bool requestState(ec_state state)
Requests the slave state.
Definition: EcSlave.cpp:30
unsigned int m_slave_nr
Definition: EcSlave.h:134
virtual void update()=0
Updates the slave.
virtual void start()
Starts the slave.
Definition: EcSlave.cpp:21
virtual void setDC(bool active, unsigned int sync0Time, unsigned int sync0Shift)
Set the Distributed clock.
Definition: EcSlave.cpp:25
virtual bool configure()
Configures the slave.
Definition: EcSlave.cpp:16
boost::signals2::signal< void()> updateMaster
Update Master outputs.
Definition: EcSlave.h:126
ec_slavet * m_datap
Definition: EcSlave.h:132
virtual void stop()
Stops the slave.
Definition: EcSlave.cpp:23
virtual ec_state getState()
Gets the slave state.
Definition: EcSlave.cpp:46
virtual void setPDOBuffer(char *input, char *output)
Set PDO buffer.
Definition: EcSlave.cpp:28
EcSlave(ec_slavet *mem_loc)
Definition: EcSlave.cpp:6
virtual ~EcSlave()
Destructor.
Definition: EcSlave.cpp:9
Definition: EcMaster.h:37
std::string m_name
Definition: EcSlave.h:133