EtherCAT Slave Handler. More...
#include <ethercat_slave_handler.h>
Public Member Functions | |
EtherCAT_SlaveHandler (uint16_t a_ring_position, uint32_t a_product_code, uint32_t a_revision, uint32_t a_serial, EC_FixedStationAddress a_station_address, EtherCAT_FMMU_Config *a_fmmu_config, EtherCAT_PD_Config *a_pd_config, EtherCAT_MbxConfig *a_mbx_config, EtherCAT_DataLinkLayer *_m_dll_instance, EC_Logic *_m_logic_instance, EtherCAT_PD_Buffer *_m_pdbuf_instance) | |
Constructor. | |
EtherCAT_SlaveHandler (uint16_t a_ring_position, EtherCAT_SlaveConfig *a_sconf, uint32_t a_serial, EtherCAT_DataLinkLayer *_m_dll_instance, EC_Logic *_m_logic_instance, EtherCAT_PD_Buffer *_m_pdbuf_instance) | |
Constructor using Slave Configuration. | |
uint8_t | get_mbx_counter () |
Returns and increments sequence number used for duplication mailbox write dectition. | |
uint16_t | get_ring_position () const |
Get position in the EtherCAT logical ring. | |
uint32_t | get_serial () const |
Get serial. | |
Protected Attributes | |
uint8_t | m_mbx_counter |
Sequence number for duplicate mailbox write detection. | |
uint16_t | m_ring_position |
Position in the EtherCAT logical Ring. | |
uint32_t | m_serial |
Serial. | |
Friends | |
class | EC_ESM_Ops |
class | EtherCAT_AL |
class | EtherCAT_Router |
EtherCAT Slave Handler.
Definition at line 44 of file ethercat_slave_handler.h.
EtherCAT_SlaveHandler::EtherCAT_SlaveHandler | ( | uint16_t | a_ring_position, |
uint32_t | a_product_code, | ||
uint32_t | a_revision, | ||
uint32_t | a_serial, | ||
EC_FixedStationAddress | a_station_address, | ||
EtherCAT_FMMU_Config * | a_fmmu_config, | ||
EtherCAT_PD_Config * | a_pd_config, | ||
EtherCAT_MbxConfig * | a_mbx_config, | ||
EtherCAT_DataLinkLayer * | _m_dll_instance, | ||
EC_Logic * | _m_logic_instance, | ||
EtherCAT_PD_Buffer * | _m_pdbuf_instance | ||
) |
Constructor.
a_ring_position | position in the EtherCAT ring |
a_product_code | product code of the slave |
a_revision | revision of the slave |
a_station_address | address of the station as given in config file |
a_fmmu_config | pointer to configuration of fmmus as created when parsing config file |
a_pd_config | pointer to configuration of SM for process data |
a_mbx_config | MBX configuration if this slave is complex. Default argument is NULL for simple slaves |
EtherCAT_SlaveHandler::EtherCAT_SlaveHandler | ( | uint16_t | a_ring_position, |
EtherCAT_SlaveConfig * | a_sconf, | ||
uint32_t | a_serial, | ||
EtherCAT_DataLinkLayer * | _m_dll_instance, | ||
EC_Logic * | _m_logic_instance, | ||
EtherCAT_PD_Buffer * | _m_pdbuf_instance | ||
) |
Constructor using Slave Configuration.
uint8_t EtherCAT_SlaveHandler::get_mbx_counter | ( | ) |
Returns and increments sequence number used for duplication mailbox write dectition.
uint16_t EtherCAT_SlaveHandler::get_ring_position | ( | ) | const [inline] |
Get position in the EtherCAT logical ring.
Definition at line 85 of file ethercat_slave_handler.h.
uint32_t EtherCAT_SlaveHandler::get_serial | ( | ) | const [inline] |
Get serial.
Definition at line 90 of file ethercat_slave_handler.h.
friend class EC_ESM_Ops [friend] |
Definition at line 47 of file ethercat_slave_handler.h.
friend class EtherCAT_AL [friend] |
Definition at line 49 of file ethercat_slave_handler.h.
friend class EtherCAT_Router [friend] |
Definition at line 48 of file ethercat_slave_handler.h.
uint8_t EtherCAT_SlaveHandler::m_mbx_counter [protected] |
Sequence number for duplicate mailbox write detection.
Definition at line 106 of file ethercat_slave_handler.h.
uint16_t EtherCAT_SlaveHandler::m_ring_position [protected] |
Position in the EtherCAT logical Ring.
Definition at line 100 of file ethercat_slave_handler.h.
uint32_t EtherCAT_SlaveHandler::m_serial [protected] |
Serial.
Definition at line 103 of file ethercat_slave_handler.h.