IgH EtherCAT Master  1.6.2
ec_fsm_master Struct Reference

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

Data Fields

ec_master_tmaster
 master the FSM runs on
 
ec_datagram_tdatagram
 datagram used in the state machine
 
unsigned int retries
 retries on datagram timeout. More...
 
void(* state )(ec_fsm_master_t *)
 master state function
 
ec_device_index_t dev_idx
 Current device index (for scanning etc.).
 
int idle
 state machine is in idle phase
 
unsigned long scan_jiffies
 beginning of slave scanning
 
uint8_t link_state [EC_MAX_NUM_DEVICES]
 Last link state for every device. More...
 
unsigned int slaves_responding [EC_MAX_NUM_DEVICES]
 Number of responding slaves for every device. More...
 
unsigned int rescan_required
 A bus rescan is required. More...
 
ec_slave_state_t slave_states [EC_MAX_NUM_DEVICES]
 AL states of responding slaves for every device. More...
 
ec_slave_tslave
 current slave
 
ec_sii_write_request_tsii_request
 SII write request.
 
off_t sii_index
 index to SII write request data
 
ec_sdo_request_tsdo_request
 SDO request to process. More...
 
ec_soe_request_tsoe_request
 SoE request to process. More...
 
ec_fsm_coe_t fsm_coe
 CoE state machine.
 
ec_fsm_soe_t fsm_soe
 SoE state machine.
 
ec_fsm_pdo_t fsm_pdo
 PDO configuration state machine. More...
 
ec_fsm_eoe_t fsm_eoe
 EoE state machine.
 
ec_fsm_change_t fsm_change
 State change state machine.
 
ec_fsm_slave_config_t fsm_slave_config
 slave state machine
 
ec_fsm_slave_scan_t fsm_slave_scan
 slave state machine
 
ec_fsm_sii_t fsm_sii
 SII state machine.
 

Detailed Description

Finite state machine of an EtherCAT master.

Definition at line 60 of file fsm_master.h.

Field Documentation

◆ retries

unsigned int ec_fsm_master::retries

retries on datagram timeout.

Definition at line 63 of file fsm_master.h.

◆ link_state

uint8_t ec_fsm_master::link_state[EC_MAX_NUM_DEVICES]

Last link state for every device.

Definition at line 70 of file fsm_master.h.

◆ slaves_responding

unsigned int ec_fsm_master::slaves_responding[EC_MAX_NUM_DEVICES]

Number of responding slaves for every device.

Definition at line 72 of file fsm_master.h.

◆ rescan_required

unsigned int ec_fsm_master::rescan_required

A bus rescan is required.

Definition at line 75 of file fsm_master.h.

◆ slave_states

ec_slave_state_t ec_fsm_master::slave_states[EC_MAX_NUM_DEVICES]

AL states of responding slaves for every device.

Definition at line 76 of file fsm_master.h.

◆ sdo_request

ec_sdo_request_t* ec_fsm_master::sdo_request

SDO request to process.

Definition at line 82 of file fsm_master.h.

◆ soe_request

ec_soe_request_t* ec_fsm_master::soe_request

SoE request to process.

Definition at line 83 of file fsm_master.h.

◆ fsm_pdo

ec_fsm_pdo_t ec_fsm_master::fsm_pdo

PDO configuration state machine.

Definition at line 87 of file fsm_master.h.