Public Member Functions | Protected Member Functions | Private Attributes | Friends
EC_ESM Class Reference

EtherCAT State Machine. More...

#include <ethercat_FSM.h>

Inheritance diagram for EC_ESM:
Inheritance graph
[legend]

List of all members.

Public Member Functions

EC_State get_state ()
bool to_state (EC_State a_state)
 State Transitions.

Protected Member Functions

 EC_ESM (EtherCAT_SlaveHandler *a_SH)
 Constructor.
void setState (EC_ESM_State *a_esm_state)
 Set the internal state.

Private Attributes

EC_ESM_Statem_esm_state

Friends

class EC_ESM_InitState
class EC_ESM_OpState
class EC_ESM_PreOpState
class EC_ESM_SafeOpState
class EC_ESM_State

Detailed Description

EtherCAT State Machine.

Todo:
Unexpected transitions in the state of the slave (via slaves application, only for complex slaves) are not dealt with for now... This should probably be fixed using a special mailbox msg or a polling mechanism but AFAIS this is undocumented in the spec (see 8.2.4.4.6 Stop output update)...

Definition at line 136 of file ethercat_FSM.h.


Constructor & Destructor Documentation

EC_ESM::EC_ESM ( EtherCAT_SlaveHandler a_SH) [protected]

Constructor.

Parameters:
a_SHpointer to Slave Handler this FSM concerns

Member Function Documentation

Definition at line 157 of file ethercat_FSM.h.

void EC_ESM::setState ( EC_ESM_State a_esm_state) [inline, protected]

Set the internal state.

Definition at line 164 of file ethercat_FSM.h.

bool EC_ESM::to_state ( EC_State  a_state) [inline]

State Transitions.

Parameters:
a_statestate to go to. Possibilities are
  • EC_INIT_STATE = 0x01,
  • EC_PREOP_STATE = 0x02,
  • EC_BOOTSTRAP_STATE = 0x03,
  • EC_SAFEOP_STATE = 0x04,
  • EC_OP_STATE = 0x08

Definition at line 153 of file ethercat_FSM.h.


Friends And Related Function Documentation

friend class EC_ESM_InitState [friend]

Definition at line 139 of file ethercat_FSM.h.

friend class EC_ESM_OpState [friend]

Definition at line 142 of file ethercat_FSM.h.

friend class EC_ESM_PreOpState [friend]

Definition at line 140 of file ethercat_FSM.h.

friend class EC_ESM_SafeOpState [friend]

Definition at line 141 of file ethercat_FSM.h.

friend class EC_ESM_State [friend]

Definition at line 138 of file ethercat_FSM.h.


Member Data Documentation

Definition at line 175 of file ethercat_FSM.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 Aug 27 2015 14:47:07