fsm.h File Reference


Detailed Description

EtherCAT finite state machines.

Definition in file fsm.h.

Go to the source code of this file.

Data Structures

struct  ec_fsm
 Finite state machine of an EtherCAT master. More...

Typedefs

typedef ec_fsm ec_fsm_t

Functions

int ec_fsm_init (ec_fsm_t *, ec_master_t *)
 Constructor.
void ec_fsm_clear (ec_fsm_t *)
 Destructor.
void ec_fsm_reset (ec_fsm_t *)
 Resets the state machine.
void ec_fsm_execute (ec_fsm_t *)
 Executes the current state of the state machine.
void ec_fsm_startup (ec_fsm_t *)
 Initializes the master startup state machine.
int ec_fsm_startup_running (ec_fsm_t *)
 Returns the running state of the master startup state machine.
int ec_fsm_startup_success (ec_fsm_t *)
 Returns, if the master startup state machine terminated with success.
void ec_fsm_configuration (ec_fsm_t *)
 Initializes the master configuration state machine.
int ec_fsm_configuration_running (ec_fsm_t *)
 Returns the running state of the master configuration state machine.
int ec_fsm_configuration_success (ec_fsm_t *)
 Returns, if the master confuguration state machine terminated with success.


Typedef Documentation

typedef struct ec_fsm ec_fsm_t
 

See also:
ec_fsm

Definition at line 51 of file fsm.h.


Function Documentation

int ec_fsm_startup_running ec_fsm_t fsm  ) 
 

Returns the running state of the master startup state machine.

Returns:
non-zero if not terminated yet.
Parameters:
fsm  Finite state machine

Definition at line 183 of file fsm.c.

int ec_fsm_startup_success ec_fsm_t fsm  ) 
 

Returns, if the master startup state machine terminated with success.

Returns:
non-zero if successful.
Parameters:
fsm  Finite state machine

Definition at line 196 of file fsm.c.

int ec_fsm_configuration_running ec_fsm_t fsm  ) 
 

Returns the running state of the master configuration state machine.

Returns:
non-zero if not terminated yet.
Parameters:
fsm  Finite state machine

Definition at line 219 of file fsm.c.

int ec_fsm_configuration_success ec_fsm_t fsm  ) 
 

Returns, if the master confuguration state machine terminated with success.

Returns:
non-zero if successful.
Parameters:
fsm  Finite state machine

Definition at line 232 of file fsm.c.


Generated on Fri Sep 1 14:56:56 2006 for IgH EtherCAT master by  doxygen 1.4.6