IgH EtherCAT Master  1.6.1
fsm_eoe.h File Reference

EtherCAT EoE set IP parameter state machines. More...

Go to the source code of this file.

Data Structures

struct  ec_fsm_eoe
 Finite state machines for the Ethernet over EtherCAT protocol. More...
 

Typedefs

typedef struct ec_fsm_eoe ec_fsm_eoe_t
 

Functions

void ec_fsm_eoe_init (ec_fsm_eoe_t *)
 Constructor.
 
void ec_fsm_eoe_clear (ec_fsm_eoe_t *)
 Destructor.
 
void ec_fsm_eoe_set_ip_param (ec_fsm_eoe_t *, ec_slave_t *, ec_eoe_request_t *)
 Starts to set the EoE IP partameters of a slave.
 
int ec_fsm_eoe_exec (ec_fsm_eoe_t *, ec_datagram_t *)
 Executes the current state of the state machine. More...
 
int ec_fsm_eoe_success (const ec_fsm_eoe_t *)
 Returns, if the state machine terminated with success. More...
 

Detailed Description

EtherCAT EoE set IP parameter state machines.

Definition in file fsm_eoe.h.

Typedef Documentation

◆ ec_fsm_eoe_t

typedef struct ec_fsm_eoe ec_fsm_eoe_t
See also
ec_fsm_eoe

Definition at line 39 of file fsm_eoe.h.

Function Documentation

◆ ec_fsm_eoe_exec()

int ec_fsm_eoe_exec ( ec_fsm_eoe_t fsm,
ec_datagram_t datagram 
)

Executes the current state of the state machine.

Returns
1 if the datagram was used, else 0.
Parameters
fsmfinite state machine
datagramDatagram to use.

Definition at line 121 of file fsm_eoe.c.

◆ ec_fsm_eoe_success()

int ec_fsm_eoe_success ( const ec_fsm_eoe_t fsm)

Returns, if the state machine terminated with success.

Returns
non-zero if successful.
Parameters
fsmFinite state machine

Definition at line 156 of file fsm_eoe.c.