libcpp4ec
C++ for EtherCat Library
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
cpp4ec::EcSlave Class Referenceabstract

Class EcSlave. More...

#include <EcSlave.h>

Inheritance diagram for cpp4ec::EcSlave:
cpp4ec::EcSlaveSGDV cpp4ec::EcSlaveTrack

Public Member Functions

virtual ~EcSlave ()
 Destructor.
 
const std::string & getName () const
 Get the slave name.
 
virtual bool configure ()
 Configures the slave.
 
virtual void start ()
 Starts the slave.
 
virtual void update ()=0
 Updates the slave.
 
virtual void stop ()
 Stops the slave.
 
virtual bool requestState (ec_state state)
 Requests the slave state.
 
virtual bool checkState (ec_state state)
 Checks the slave state.
 
virtual ec_state getState ()
 Gets the slave state.
 
virtual void setDC (bool active, unsigned int sync0Time, unsigned int sync0Shift)
 Set the Distributed clock.
 
virtual void setPDOBuffer (char *input, char *output)
 Set PDO buffer.
 

Public Attributes

boost::signals2::signal< void()> updateMaster
 Update Master outputs.
 

Protected Member Functions

 EcSlave (ec_slavet *mem_loc)
 

Protected Attributes

ec_slavet * m_datap
 
std::string m_name
 
unsigned int m_slave_nr
 

Detailed Description

Class EcSlave.

The EcSlave is a base class designed as a template for ethercat slaves.

Constructor & Destructor Documentation

cpp4ec::EcSlave::EcSlave ( ec_slavet *  mem_loc)
protected

The constructor

Member Data Documentation

ec_slavet* cpp4ec::EcSlave::m_datap
protected

A pointer to the soem slave information

std::string cpp4ec::EcSlave::m_name
protected

The slave name

unsigned int cpp4ec::EcSlave::m_slave_nr
protected

The slave number


The documentation for this class was generated from the following files: