Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __ethercat_slave_handler__
00034 #define __ethercat_slave_handler__
00035
00036 #include "ros_ethercat_eml/ethercat_FSM.h"
00037 #include "ros_ethercat_eml/ethercat_slave_conf.h"
00038
00039
00040 class EtherCAT_AL;
00041
00043
00044 class EtherCAT_SlaveHandler : public EC_ESM, public EtherCAT_SlaveConfig
00045 {
00046
00047 friend class EC_ESM_Ops;
00048 friend class EtherCAT_Router;
00049 friend class EtherCAT_AL;
00050
00051 public:
00053
00065 EtherCAT_SlaveHandler(uint16_t a_ring_position,
00066 uint32_t a_product_code,
00067 uint32_t a_revision,
00068 uint32_t a_serial,
00069 EC_FixedStationAddress a_station_address,
00070 EtherCAT_FMMU_Config * a_fmmu_config,
00071 EtherCAT_PD_Config * a_pd_config,
00072 EtherCAT_MbxConfig * a_mbx_config = NULL);
00074 EtherCAT_SlaveHandler(uint16_t a_ring_position,
00075 const EtherCAT_SlaveConfig * a_sconf,
00076 uint32_t a_serial);
00077
00079 uint16_t get_ring_position() const
00080 {
00081 return m_ring_position;
00082 }
00084 uint32_t get_serial() const
00085 {
00086 return m_serial;
00087 }
00088
00090 uint8_t get_mbx_counter();
00091 protected:
00092
00094 uint16_t m_ring_position;
00095
00097 uint32_t m_serial;
00098
00100 uint8_t m_mbx_counter;
00101 };
00102
00103 #endif // __ethercat_slave_handler__
ros_ethercat_eml
Author(s): Tom Panis, Klaas Gadeyne, Bob Koninckx, Austin Hendrix, Manos Nikolaidis
autogenerated on Thu Aug 27 2015 14:47:07