IgH EtherCAT Master  1.6.1
ec_master_state_t Struct Reference

Master state. More...

Data Fields

unsigned int slaves_responding
 Sum of responding slaves on all Ethernet devices. More...
 
unsigned int al_states: 4
 Application-layer states of all slaves. More...
 
unsigned int link_up: 1
 true, if at least one Ethernet link is up. More...
 

Detailed Description

Master state.

This is used for the output parameter of ecrt_master_state().

See also
ecrt_master_state().

Definition at line 328 of file ecrt.h.

Field Documentation

◆ slaves_responding

unsigned int ec_master_state_t::slaves_responding

Sum of responding slaves on all Ethernet devices.

Definition at line 329 of file ecrt.h.

◆ al_states

unsigned int ec_master_state_t::al_states

Application-layer states of all slaves.

The states are coded in the lower 4 bits. If a bit is set, it means that at least one slave in the network is in the corresponding state:

  • Bit 0: INIT
  • Bit 1: PREOP
  • Bit 2: SAFEOP
  • Bit 3: OP

Definition at line 331 of file ecrt.h.

◆ link_up

unsigned int ec_master_state_t::link_up

true, if at least one Ethernet link is up.

Definition at line 340 of file ecrt.h.