IgH EtherCAT Master  1.6.2
ec_slave Struct Reference

EtherCAT slave. More...

Data Fields

ec_master_tmaster
 Master owning the slave. More...
 
ec_device_index_t device_index
 Index of device the slave responds on. More...
 
uint16_t ring_position
 Ring position. More...
 
uint16_t station_address
 Configured station address. More...
 
uint16_t effective_alias
 Effective alias address. More...
 
ec_slave_port_t ports [EC_MAX_PORTS]
 Ports. More...
 
ec_slave_config_tconfig
 Current configuration. More...
 
ec_slave_state_t requested_state
 Requested application state. More...
 
ec_slave_state_t current_state
 Current application state. More...
 
unsigned int error_flag
 Stop processing after an error. More...
 
unsigned int force_config
 Force (re-)configuration. More...
 
uint16_t configured_rx_mailbox_offset
 Configured receive mailbox offset. More...
 
uint16_t configured_rx_mailbox_size
 Configured receive mailbox size.
 
uint16_t configured_tx_mailbox_offset
 Configured send mailbox offset. More...
 
uint16_t configured_tx_mailbox_size
 Configured send mailbox size. More...
 
uint8_t base_type
 Slave type. More...
 
uint8_t base_revision
 Revision. More...
 
uint16_t base_build
 Build number. More...
 
uint8_t base_fmmu_count
 Number of supported FMMUs. More...
 
uint8_t base_sync_count
 Number of supported sync managers. More...
 
uint8_t base_fmmu_bit_operation
 FMMU bit operation is supported. More...
 
uint8_t base_dc_supported
 Distributed clocks are supported. More...
 
ec_slave_dc_range_t base_dc_range
 DC range. More...
 
uint8_t has_dc_system_time
 The slave supports the DC system time register. More...
 
uint32_t transmission_delay
 DC system time transmission delay (offset from reference clock). More...
 
uint16_t * sii_words
 Complete SII image. More...
 
size_t sii_nwords
 Size of the SII contents in words. More...
 
ec_sii_t sii
 Extracted SII data. More...
 
struct list_head sdo_dictionary
 SDO dictionary list.
 
uint8_t sdo_dictionary_fetched
 Dictionary has been fetched. More...
 
unsigned long jiffies_preop
 Time, the slave went to PREOP. More...
 
struct list_head sdo_requests
 SDO access requests. More...
 
struct list_head reg_requests
 Register access requests. More...
 
struct list_head foe_requests
 FoE requests. More...
 
struct list_head soe_requests
 SoE requests. More...
 
struct list_head eoe_requests
 EoE set IP parameter requests. More...
 
ec_fsm_slave_t fsm
 Slave state machine. More...
 

Detailed Description

EtherCAT slave.

Definition at line 168 of file slave.h.

Field Documentation

◆ master

ec_master_t* ec_slave::master

Master owning the slave.

Definition at line 170 of file slave.h.

◆ device_index

ec_device_index_t ec_slave::device_index

Index of device the slave responds on.

Definition at line 171 of file slave.h.

◆ ring_position

uint16_t ec_slave::ring_position

Ring position.

Definition at line 175 of file slave.h.

◆ station_address

uint16_t ec_slave::station_address

Configured station address.

Definition at line 176 of file slave.h.

◆ effective_alias

uint16_t ec_slave::effective_alias

Effective alias address.

Definition at line 177 of file slave.h.

◆ ports

ec_slave_port_t ec_slave::ports[EC_MAX_PORTS]

Ports.

Definition at line 179 of file slave.h.

◆ config

ec_slave_config_t* ec_slave::config

Current configuration.

Definition at line 182 of file slave.h.

◆ requested_state

ec_slave_state_t ec_slave::requested_state

Requested application state.

Definition at line 183 of file slave.h.

◆ current_state

ec_slave_state_t ec_slave::current_state

Current application state.

Definition at line 184 of file slave.h.

◆ error_flag

unsigned int ec_slave::error_flag

Stop processing after an error.

Definition at line 185 of file slave.h.

◆ force_config

unsigned int ec_slave::force_config

Force (re-)configuration.

Definition at line 186 of file slave.h.

◆ configured_rx_mailbox_offset

uint16_t ec_slave::configured_rx_mailbox_offset

Configured receive mailbox offset.

Definition at line 187 of file slave.h.

◆ configured_tx_mailbox_offset

uint16_t ec_slave::configured_tx_mailbox_offset

Configured send mailbox offset.

Definition at line 191 of file slave.h.

◆ configured_tx_mailbox_size

uint16_t ec_slave::configured_tx_mailbox_size

Configured send mailbox size.

Definition at line 193 of file slave.h.

◆ base_type

uint8_t ec_slave::base_type

Slave type.

Definition at line 196 of file slave.h.

◆ base_revision

uint8_t ec_slave::base_revision

Revision.

Definition at line 197 of file slave.h.

◆ base_build

uint16_t ec_slave::base_build

Build number.

Definition at line 198 of file slave.h.

◆ base_fmmu_count

uint8_t ec_slave::base_fmmu_count

Number of supported FMMUs.

Definition at line 199 of file slave.h.

◆ base_sync_count

uint8_t ec_slave::base_sync_count

Number of supported sync managers.

Definition at line 200 of file slave.h.

◆ base_fmmu_bit_operation

uint8_t ec_slave::base_fmmu_bit_operation

FMMU bit operation is supported.

Definition at line 201 of file slave.h.

◆ base_dc_supported

uint8_t ec_slave::base_dc_supported

Distributed clocks are supported.

Definition at line 202 of file slave.h.

◆ base_dc_range

ec_slave_dc_range_t ec_slave::base_dc_range

DC range.

Definition at line 203 of file slave.h.

◆ has_dc_system_time

uint8_t ec_slave::has_dc_system_time

The slave supports the DC system time register.

Otherwise it can only be used for delay measurement.

Definition at line 204 of file slave.h.

◆ transmission_delay

uint32_t ec_slave::transmission_delay

DC system time transmission delay (offset from reference clock).

Definition at line 207 of file slave.h.

◆ sii_words

uint16_t* ec_slave::sii_words

Complete SII image.

Definition at line 211 of file slave.h.

◆ sii_nwords

size_t ec_slave::sii_nwords

Size of the SII contents in words.

Definition at line 212 of file slave.h.

◆ sii

ec_sii_t ec_slave::sii

Extracted SII data.

Definition at line 215 of file slave.h.

◆ sdo_dictionary_fetched

uint8_t ec_slave::sdo_dictionary_fetched

Dictionary has been fetched.

Definition at line 218 of file slave.h.

◆ jiffies_preop

unsigned long ec_slave::jiffies_preop

Time, the slave went to PREOP.

Definition at line 219 of file slave.h.

◆ sdo_requests

struct list_head ec_slave::sdo_requests

SDO access requests.

Definition at line 221 of file slave.h.

◆ reg_requests

struct list_head ec_slave::reg_requests

Register access requests.

Definition at line 222 of file slave.h.

◆ foe_requests

struct list_head ec_slave::foe_requests

FoE requests.

Definition at line 223 of file slave.h.

◆ soe_requests

struct list_head ec_slave::soe_requests

SoE requests.

Definition at line 224 of file slave.h.

◆ eoe_requests

struct list_head ec_slave::eoe_requests

EoE set IP parameter requests.

Definition at line 225 of file slave.h.

◆ fsm

ec_fsm_slave_t ec_slave::fsm

Slave state machine.

Definition at line 227 of file slave.h.