IgH EtherCAT Master  1.6.2
ec_device Struct Reference

EtherCAT device. More...

Data Fields

ec_master_tmaster
 EtherCAT master.
 
struct net_device * dev
 pointer to the assigned net_device
 
ec_pollfunc_t poll
 pointer to the device's poll function
 
struct module * module
 pointer to the device's owning module
 
uint8_t open
 true, if the net_device has been opened
 
uint8_t link_state
 device link state
 
struct sk_buff * tx_skb [EC_TX_RING_SIZE]
 transmit skb ring
 
unsigned int tx_ring_index
 last ring entry used to transmit
 
unsigned long jiffies_poll
 jiffies of last poll
 
u64 tx_count
 Number of frames sent. More...
 
u64 last_tx_count
 Number of frames sent of last statistics cycle. More...
 
u64 rx_count
 Number of frames received. More...
 
u64 last_rx_count
 Number of frames received of last statistics cycle. More...
 
u64 tx_bytes
 Number of bytes sent. More...
 
u64 last_tx_bytes
 Number of bytes sent of last statistics cycle. More...
 
u64 rx_bytes
 Number of bytes received. More...
 
u64 last_rx_bytes
 Number of bytes received of last statistics cycle.
 
u64 tx_errors
 Number of transmit errors. More...
 
s32 tx_frame_rates [EC_RATE_COUNT]
 Transmit rates in frames/s for different statistics cycle periods.
 
s32 rx_frame_rates [EC_RATE_COUNT]
 Receive rates in frames/s for different statistics cycle periods.
 
s32 tx_byte_rates [EC_RATE_COUNT]
 Transmit rates in byte/s for different statistics cycle periods. More...
 
s32 rx_byte_rates [EC_RATE_COUNT]
 Receive rates in byte/s for different statistics cycle periods. More...
 

Detailed Description

EtherCAT device.

An EtherCAT device is a network interface card, that is owned by an EtherCAT master to send and receive EtherCAT frames with.

Definition at line 73 of file device.h.

Field Documentation

◆ tx_count

u64 ec_device::tx_count

Number of frames sent.

Definition at line 92 of file device.h.

◆ last_tx_count

u64 ec_device::last_tx_count

Number of frames sent of last statistics cycle.

Definition at line 93 of file device.h.

◆ rx_count

u64 ec_device::rx_count

Number of frames received.

Definition at line 94 of file device.h.

◆ last_rx_count

u64 ec_device::last_rx_count

Number of frames received of last statistics cycle.

Definition at line 95 of file device.h.

◆ tx_bytes

u64 ec_device::tx_bytes

Number of bytes sent.

Definition at line 97 of file device.h.

◆ last_tx_bytes

u64 ec_device::last_tx_bytes

Number of bytes sent of last statistics cycle.

Definition at line 98 of file device.h.

◆ rx_bytes

u64 ec_device::rx_bytes

Number of bytes received.

Definition at line 99 of file device.h.

◆ tx_errors

u64 ec_device::tx_errors

Number of transmit errors.

Definition at line 102 of file device.h.

◆ tx_byte_rates

s32 ec_device::tx_byte_rates[EC_RATE_COUNT]

Transmit rates in byte/s for different statistics cycle periods.

Definition at line 109 of file device.h.

◆ rx_byte_rates

s32 ec_device::rx_byte_rates[EC_RATE_COUNT]

Receive rates in byte/s for different statistics cycle periods.

Definition at line 111 of file device.h.