IgH EtherCAT Master  1.5.3
fsm_pdo_entry.h File Reference

EtherCAT PDO entry configuration state machine structures. More...

Go to the source code of this file.

Data Structures

struct  ec_fsm_pdo_entry
 PDO configuration state machine. More...
 

Typedefs

typedef struct ec_fsm_pdo_entry ec_fsm_pdo_entry_t
 

Functions

void ec_fsm_pdo_entry_init (ec_fsm_pdo_entry_t *, ec_fsm_coe_t *)
 Constructor.
 
void ec_fsm_pdo_entry_clear (ec_fsm_pdo_entry_t *)
 Destructor.
 
void ec_fsm_pdo_entry_start_reading (ec_fsm_pdo_entry_t *, ec_slave_t *, ec_pdo_t *)
 Start reading a PDO's entries.
 
void ec_fsm_pdo_entry_start_configuration (ec_fsm_pdo_entry_t *, ec_slave_t *, const ec_pdo_t *, const ec_pdo_t *)
 Start PDO mapping state machine.
 
int ec_fsm_pdo_entry_exec (ec_fsm_pdo_entry_t *, ec_datagram_t *)
 Executes the current state. More...
 
int ec_fsm_pdo_entry_success (const ec_fsm_pdo_entry_t *)
 Get execution result. More...
 

Detailed Description

EtherCAT PDO entry configuration state machine structures.

Definition in file fsm_pdo_entry.h.

Typedef Documentation

◆ ec_fsm_pdo_entry_t

See also
ec_fsm_pdo_entry

Definition at line 48 of file fsm_pdo_entry.h.

Function Documentation

◆ ec_fsm_pdo_entry_exec()

int ec_fsm_pdo_entry_exec ( ec_fsm_pdo_entry_t fsm,
ec_datagram_t datagram 
)

Executes the current state.

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

Definition at line 165 of file fsm_pdo_entry.c.

◆ ec_fsm_pdo_entry_success()

int ec_fsm_pdo_entry_success ( const ec_fsm_pdo_entry_t fsm)

Get execution result.

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

Definition at line 181 of file fsm_pdo_entry.c.