EtherCAT Master Application Layer. More...
#include <ethercat_AL.h>
Public Member Functions | |
| unsigned int | get_num_slaves () |
| Get the number of slaves. | |
| EtherCAT_SlaveHandler * | get_slave_handler (EC_FixedStationAddress station_address) |
| Get pointer to slaveHandler. | |
| bool | isReady () |
| Check the AL is ready (init was succesful) | |
| ~EtherCAT_AL () | |
| Destructor. | |
Static Public Member Functions | |
| static EtherCAT_AL * | instance () |
| This class is a singleton. | |
Protected Member Functions | |
| EtherCAT_AL () | |
| Constructor (protected) | |
| bool | init (void) |
| Init of EtherCAT network. | |
| bool | put_slaves_in_init (void) |
| Put all slaves in their init state. | |
| bool | reset_slaves (void) |
| Reset slaves. | |
| bool | scan_slaves (void) |
| Scan the slave network, create the necessary slave Handlers. | |
Private Member Functions | |
| bool | read_SII (uint16_t slave_adp, uint32_t address, unsigned char *a_buffer) |
| Get information from the SII (in Autoincrement mode) | |
Private Attributes | |
| EtherCAT_DataLinkLayer * | m_dll_instance |
| DLL Instance. | |
| EC_Logic * | m_logic_instance |
| Using commonly idx. | |
| unsigned int | m_num_slaves |
| Number of slaves in the setup. | |
| bool | m_ready |
| Set is init is succesful. | |
| EtherCAT_SlaveDb * | m_slave_db |
| Pointer to the slave database. | |
| EtherCAT_SlaveHandler ** | m_slave_handler |
| Pointer to the slave Handlers. | |
Static Private Attributes | |
| static EtherCAT_AL * | m_instance |
| Instance. | |
Friends | |
| class | EtherCAT_Router |
EtherCAT Master Application Layer.
Definition at line 96 of file ethercat_AL.h.
Destructor.
| EtherCAT_AL::EtherCAT_AL | ( | ) | [protected] |
Constructor (protected)
| unsigned int EtherCAT_AL::get_num_slaves | ( | ) | [inline] |
Get the number of slaves.
Definition at line 118 of file ethercat_AL.h.
| EtherCAT_SlaveHandler* EtherCAT_AL::get_slave_handler | ( | EC_FixedStationAddress | station_address | ) |
Get pointer to slaveHandler.
| bool EtherCAT_AL::init | ( | void | ) | [protected] |
Init of EtherCAT network.
Counts and identifies the number of slaves in the network, and resets the slaves configuration.
| static EtherCAT_AL* EtherCAT_AL::instance | ( | ) | [static] |
This class is a singleton.
| bool EtherCAT_AL::isReady | ( | ) |
Check the AL is ready (init was succesful)
| bool EtherCAT_AL::put_slaves_in_init | ( | void | ) | [protected] |
Put all slaves in their init state.
| bool EtherCAT_AL::read_SII | ( | uint16_t | slave_adp, |
| uint32_t | address, | ||
| unsigned char * | a_buffer | ||
| ) | [private] |
Get information from the SII (in Autoincrement mode)
| slave_adp | address pointer of the slave to read in autoincrement mode |
| address | address of the EEPROM that should be read |
| a_buffer | buffer to put the data in |
| bool EtherCAT_AL::reset_slaves | ( | void | ) | [protected] |
Reset slaves.
| bool EtherCAT_AL::scan_slaves | ( | void | ) | [protected] |
Scan the slave network, create the necessary slave Handlers.
friend class EtherCAT_Router [friend] |
Definition at line 98 of file ethercat_AL.h.
DLL Instance.
Definition at line 161 of file ethercat_AL.h.
EtherCAT_AL* EtherCAT_AL::m_instance [static, private] |
Instance.
Definition at line 159 of file ethercat_AL.h.
EC_Logic* EtherCAT_AL::m_logic_instance [private] |
Using commonly idx.
Definition at line 163 of file ethercat_AL.h.
unsigned int EtherCAT_AL::m_num_slaves [private] |
Number of slaves in the setup.
Definition at line 181 of file ethercat_AL.h.
bool EtherCAT_AL::m_ready [private] |
Set is init is succesful.
Definition at line 184 of file ethercat_AL.h.
EtherCAT_SlaveDb* EtherCAT_AL::m_slave_db [private] |
Pointer to the slave database.
Definition at line 169 of file ethercat_AL.h.
EtherCAT_SlaveHandler** EtherCAT_AL::m_slave_handler [private] |
Pointer to the slave Handlers.
Definition at line 166 of file ethercat_AL.h.