Database of EtherCAT slave configurations. More...
#include <ethercat_slave_conf.h>
Public Member Functions | |
| const EtherCAT_SlaveConfig * | find (uint32_t productcode, uint32_t revision) const |
| Find a configuration... | |
| EtherCAT_SlaveConfig * | operator[] (unsigned int i) |
| const EtherCAT_SlaveConfig * | operator[] (unsigned int i) const |
| void | set_conf (EtherCAT_SlaveConfig *conf, unsigned int i) |
| ~EtherCAT_SlaveDb () | |
Static Public Member Functions | |
| static EtherCAT_SlaveDb * | instance (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_SlaveDb * | m_instance |
Database of EtherCAT slave configurations.
Definition at line 248 of file ethercat_slave_conf.h.
| EtherCAT_SlaveDb::~EtherCAT_SlaveDb | ( | ) | [inline] |
Definition at line 253 of file ethercat_slave_conf.h.
| EtherCAT_SlaveDb::EtherCAT_SlaveDb | ( | unsigned int | num_slaves | ) | [protected] |
Constructor.
| const EtherCAT_SlaveConfig* EtherCAT_SlaveDb::find | ( | uint32_t | productcode, |
| uint32_t | revision | ||
| ) | const |
Find a configuration...
| productcode | product code |
| revision | revision |
| 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 | ||
| ) |
EtherCAT_SlaveDb* EtherCAT_SlaveDb::m_instance [static, private] |
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.
EtherCAT_SlaveConfig** EtherCAT_SlaveDb::m_sc [private] |
Definition at line 277 of file ethercat_slave_conf.h.