IgH EtherCAT Master  1.5.2
ec_device Struct Reference

EtherCAT device. More...

#include <device.h>

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.
 
u64 last_tx_count
 Number of frames sent of last statistics cycle.
 
u64 rx_count
 Number of frames received.
 
u64 last_rx_count
 Number of frames received of last statistics cycle.
 
u64 tx_bytes
 Number of bytes sent.
 
u64 last_tx_bytes
 Number of bytes sent of last statistics cycle.
 
u64 rx_bytes
 Number of bytes received.
 
u64 last_rx_bytes
 Number of bytes received of last statistics cycle.
 
u64 tx_errors
 Number of transmit errors.
 
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.
 
s32 rx_byte_rates [EC_RATE_COUNT]
 Receive rates in byte/s for different statistics cycle periods.
 

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 81 of file device.h.

Field Documentation

◆ master

ec_master_t* ec_device::master

EtherCAT master.

Definition at line 83 of file device.h.

◆ dev

struct net_device* ec_device::dev

pointer to the assigned net_device

Definition at line 84 of file device.h.

◆ poll

ec_pollfunc_t ec_device::poll

pointer to the device's poll function

Definition at line 85 of file device.h.

◆ module

struct module* ec_device::module

pointer to the device's owning module

Definition at line 86 of file device.h.

◆ open

uint8_t ec_device::open

true, if the net_device has been opened

Definition at line 87 of file device.h.

◆ link_state

uint8_t ec_device::link_state

device link state

Definition at line 88 of file device.h.

◆ tx_skb

struct sk_buff* ec_device::tx_skb[EC_TX_RING_SIZE]

transmit skb ring

Definition at line 89 of file device.h.

◆ tx_ring_index

unsigned int ec_device::tx_ring_index

last ring entry used to transmit

Definition at line 90 of file device.h.

◆ jiffies_poll

unsigned long ec_device::jiffies_poll

jiffies of last poll

Definition at line 97 of file device.h.

◆ tx_count

u64 ec_device::tx_count

Number of frames sent.

Definition at line 100 of file device.h.

◆ last_tx_count

u64 ec_device::last_tx_count

Number of frames sent of last statistics cycle.

Definition at line 101 of file device.h.

◆ rx_count

u64 ec_device::rx_count

Number of frames received.

Definition at line 102 of file device.h.

◆ last_rx_count

u64 ec_device::last_rx_count

Number of frames received of last statistics cycle.

Definition at line 103 of file device.h.

◆ tx_bytes

u64 ec_device::tx_bytes

Number of bytes sent.

Definition at line 105 of file device.h.

◆ last_tx_bytes

u64 ec_device::last_tx_bytes

Number of bytes sent of last statistics cycle.

Definition at line 106 of file device.h.

◆ rx_bytes

u64 ec_device::rx_bytes

Number of bytes received.

Definition at line 107 of file device.h.

◆ last_rx_bytes

u64 ec_device::last_rx_bytes

Number of bytes received of last statistics cycle.

Definition at line 108 of file device.h.

◆ tx_errors

u64 ec_device::tx_errors

Number of transmit errors.

Definition at line 110 of file device.h.

◆ tx_frame_rates

s32 ec_device::tx_frame_rates[EC_RATE_COUNT]

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

Definition at line 111 of file device.h.

◆ rx_frame_rates

s32 ec_device::rx_frame_rates[EC_RATE_COUNT]

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

Definition at line 114 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 117 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 119 of file device.h.