EtherCAT Master instance. More...
#include <ethercat_master.h>
Public Member Functions | |
| EtherCAT_SlaveHandler * | get_slave_handler (EC_FixedStationAddress address) |
| Get Slave Handler. | |
| bool | txandrx_PD (size_t datalen, unsigned char *data) |
| Send Process data. | |
Static Public Member Functions | |
| static EtherCAT_Master * | instance () |
| This class is a singleton. | |
Protected Member Functions | |
| EtherCAT_Master () | |
| Constructor (protected) | |
Private Attributes | |
| EtherCAT_AL * | m_al_instance |
| Pointer to m_AL_instance. | |
| EtherCAT_DataLinkLayer * | m_dll_instance |
| Pointer to DLL instance. | |
| EC_Logic * | m_logic_instance |
| Pointer to logic instance. | |
| EtherCAT_PD_Buffer * | m_pdbuf_instance |
| Pointer to process data buffer instance. | |
| EtherCAT_Router * | m_router_instance |
| Pointer to router instance. | |
Static Private Attributes | |
| static EtherCAT_Master * | m_instance |
| Master instance. | |
EtherCAT Master instance.
Definition at line 50 of file ethercat_master.h.
| EtherCAT_Master::EtherCAT_Master | ( | ) | [protected] |
Constructor (protected)
Get Slave Handler.
| static EtherCAT_Master* EtherCAT_Master::instance | ( | ) | [static] |
This class is a singleton.
| bool EtherCAT_Master::txandrx_PD | ( | size_t | datalen, |
| unsigned char * | data | ||
| ) |
Send Process data.
| datalen | number of bytes that should be set |
| data | pointer to data array. Data is read, transmitted, and (if the operation succeeded) the received data is put in the data array. This happens synchronously with the method call. |
EtherCAT_AL* EtherCAT_Master::m_al_instance [private] |
Pointer to m_AL_instance.
Definition at line 80 of file ethercat_master.h.
Pointer to DLL instance.
Definition at line 95 of file ethercat_master.h.
EtherCAT_Master* EtherCAT_Master::m_instance [static, private] |
Master instance.
Definition at line 78 of file ethercat_master.h.
EC_Logic* EtherCAT_Master::m_logic_instance [private] |
Pointer to logic instance.
Definition at line 93 of file ethercat_master.h.
Pointer to process data buffer instance.
Definition at line 84 of file ethercat_master.h.
Pointer to router instance.
Definition at line 82 of file ethercat_master.h.