IgH EtherCAT Master  1.5.2
fsm_reboot.h File Reference

EtherCAT slave reboot FSM. More...

Go to the source code of this file.

Data Structures

struct  ec_fsm_reboot
 EtherCAT slave reboot FSM. More...
 

Typedefs

typedef struct ec_fsm_reboot ec_fsm_reboot_t
 

Functions

void ec_fsm_reboot_init (ec_fsm_reboot_t *, ec_datagram_t *)
 Constructor.
 
void ec_fsm_reboot_clear (ec_fsm_reboot_t *)
 Destructor.
 
void ec_fsm_reboot_single (ec_fsm_reboot_t *, ec_slave_t *)
 Starts the reboot state machine for a single slave.
 
void ec_fsm_reboot_all (ec_fsm_reboot_t *, ec_master_t *)
 Starts the reboot state machine for all slaves on a master.
 
int ec_fsm_reboot_exec (ec_fsm_reboot_t *)
 Executes the current state of the state machine. More...
 
int ec_fsm_reboot_success (ec_fsm_reboot_t *)
 Returns, if the state machine terminated with success. More...
 

Detailed Description

EtherCAT slave reboot FSM.

Definition in file fsm_reboot.h.

Typedef Documentation

◆ ec_fsm_reboot_t

See also
ec_fsm_reboot

Definition at line 47 of file fsm_reboot.h.

Function Documentation

◆ ec_fsm_reboot_exec()

int ec_fsm_reboot_exec ( ec_fsm_reboot_t fsm)

Executes the current state of the state machine.

Returns
false, if the state machine has terminated
Parameters
fsmfinite state machine

Definition at line 123 of file fsm_reboot.c.

◆ ec_fsm_reboot_success()

int ec_fsm_reboot_success ( ec_fsm_reboot_t fsm)

Returns, if the state machine terminated with success.

Returns
non-zero if successful.
Parameters
fsmFinite state machine

Definition at line 138 of file fsm_reboot.c.