IgH EtherCAT Master  1.5.3
fsm_pdo.h File Reference

EtherCAT PDO configuration state machine structures. More...

Go to the source code of this file.

Data Structures

struct  ec_fsm_pdo
 PDO configuration state machine. More...
 

Typedefs

typedef struct ec_fsm_pdo ec_fsm_pdo_t
 

Functions

void ec_fsm_pdo_init (ec_fsm_pdo_t *, ec_fsm_coe_t *)
 Constructor.
 
void ec_fsm_pdo_clear (ec_fsm_pdo_t *)
 Destructor.
 
void ec_fsm_pdo_start_reading (ec_fsm_pdo_t *, ec_slave_t *)
 Start reading the PDO configuration.
 
void ec_fsm_pdo_start_configuration (ec_fsm_pdo_t *, ec_slave_t *)
 Start writing the PDO configuration.
 
int ec_fsm_pdo_exec (ec_fsm_pdo_t *, ec_datagram_t *)
 Executes the current state of the state machine. More...
 
int ec_fsm_pdo_success (const ec_fsm_pdo_t *)
 Get execution result. More...
 

Detailed Description

EtherCAT PDO configuration state machine structures.

Definition in file fsm_pdo.h.

Typedef Documentation

◆ ec_fsm_pdo_t

typedef struct ec_fsm_pdo ec_fsm_pdo_t
See also
ec_fsm_pdo

Definition at line 50 of file fsm_pdo.h.

Function Documentation

◆ ec_fsm_pdo_exec()

int ec_fsm_pdo_exec ( ec_fsm_pdo_t fsm,
ec_datagram_t datagram 
)

Executes the current state of the state machine.

If the state machine's datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle.

Returns
false, if state machine has terminated
Parameters
fsmPDO configuration state machine.
datagramDatagram to use.

Definition at line 164 of file fsm_pdo.c.

◆ ec_fsm_pdo_success()

int ec_fsm_pdo_success ( const ec_fsm_pdo_t fsm)

Get execution result.

Returns
true, if the state machine terminated gracefully
Parameters
fsmPDO configuration state machine.

Definition at line 180 of file fsm_pdo.c.