Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
EtherCAT_SlaveDb Class Reference

Database of EtherCAT slave configurations. More...

#include <ethercat_slave_conf.h>

List of all members.

Public Member Functions

const EtherCAT_SlaveConfigfind (uint32_t productcode, uint32_t revision) const
 Find a configuration...
EtherCAT_SlaveConfigoperator[] (unsigned int i)
const EtherCAT_SlaveConfigoperator[] (unsigned int i) const
void set_conf (EtherCAT_SlaveConfig *conf, unsigned int i)
 ~EtherCAT_SlaveDb ()

Static Public Member Functions

static EtherCAT_SlaveDbinstance (unsigned int num_slaves=0)
 Singleton.

Protected Member Functions

 EtherCAT_SlaveDb (unsigned int num_slaves)
 Constructor.

Private Attributes

unsigned int m_num_slaves
EtherCAT_SlaveConfig ** m_sc

Static Private Attributes

static EtherCAT_SlaveDbm_instance

Detailed Description

Database of EtherCAT slave configurations.

Todo:
allow dynamic updating by adding of removing a slave configuration

Definition at line 248 of file ethercat_slave_conf.h.


Constructor & Destructor Documentation

Definition at line 253 of file ethercat_slave_conf.h.

EtherCAT_SlaveDb::EtherCAT_SlaveDb ( unsigned int  num_slaves) [protected]

Constructor.


Member Function Documentation

const EtherCAT_SlaveConfig* EtherCAT_SlaveDb::find ( uint32_t  productcode,
uint32_t  revision 
) const

Find a configuration...

Parameters:
productcodeproduct code
revisionrevision
Returns:
Pointer to slave configuration if found, or NULL otherwise)
static EtherCAT_SlaveDb* EtherCAT_SlaveDb::instance ( unsigned int  num_slaves = 0) [static]

Singleton.

EtherCAT_SlaveConfig* EtherCAT_SlaveDb::operator[] ( unsigned int  i)
const EtherCAT_SlaveConfig* EtherCAT_SlaveDb::operator[] ( unsigned int  i) const
void EtherCAT_SlaveDb::set_conf ( EtherCAT_SlaveConfig conf,
unsigned int  i 
)

Member Data Documentation

Definition at line 275 of file ethercat_slave_conf.h.

unsigned int EtherCAT_SlaveDb::m_num_slaves [private]

Definition at line 278 of file ethercat_slave_conf.h.

Definition at line 277 of file ethercat_slave_conf.h.


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


ros_ethercat_eml
Author(s): Tom Panis, Klaas Gadeyne, Bob Koninckx, Austin Hendrix, Manos Nikolaidis
autogenerated on Thu Aug 27 2015 14:47:07