Public Member Functions | Protected Attributes | Friends
EtherCAT_SlaveHandler Class Reference

EtherCAT Slave Handler. More...

#include <ethercat_slave_handler.h>

Inheritance diagram for EtherCAT_SlaveHandler:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

EtherCAT Slave Handler.

Definition at line 44 of file ethercat_slave_handler.h.


Constructor & Destructor Documentation

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.

Parameters:
a_ring_positionposition in the EtherCAT ring
a_product_codeproduct code of the slave
a_revisionrevision of the slave
a_station_addressaddress of the station as given in config file
a_fmmu_configpointer to configuration of fmmus as created when parsing config file
a_pd_configpointer to configuration of SM for process data
a_mbx_configMBX 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.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


Member Data Documentation

Sequence number for duplicate mailbox write detection.

Definition at line 106 of file ethercat_slave_handler.h.

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.


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 Jul 4 2019 20:01:50