IgH EtherCAT Master  1.6.2
ec_datagram_t Struct Reference

EtherCAT datagram. More...

Data Fields

struct list_head queue
 Master datagram queue item, protected by user-supplied mutex. More...
 
struct list_head ext_queue
 External datagram queue item, protected by ext_queue_sem. More...
 
struct list_head sent
 Master list item for sent datagrams. More...
 
ec_device_index_t device_index
 Device via which the datagram shall be / was sent. More...
 
ec_datagram_type_t type
 Datagram type (APRD, BWR, etc.). More...
 
uint8_t address [EC_ADDR_LEN]
 Recipient address. More...
 
uint8_t * data
 Datagram payload. More...
 
ec_origin_t data_origin
 Origin of the data memory. More...
 
size_t mem_size
 Datagram data memory size. More...
 
size_t data_size
 Size of the data in data. More...
 
uint8_t index
 Index (set by master). More...
 
uint16_t working_counter
 Working counter. More...
 
ec_datagram_state_t state
 State. More...
 
unsigned long jiffies_sent
 Jiffies, when the datagram was sent. More...
 
unsigned long jiffies_received
 Jiffies, when the datagram was received. More...
 
unsigned int skip_count
 Number of requeues when not yet received. More...
 
unsigned long stats_output_jiffies
 Last statistics output. More...
 
char name [EC_DATAGRAM_NAME_SIZE]
 Description of the datagram. More...
 

Detailed Description

EtherCAT datagram.

Definition at line 79 of file datagram.h.

Field Documentation

◆ queue

struct list_head ec_datagram_t::queue

Master datagram queue item, protected by user-supplied mutex.

Definition at line 80 of file datagram.h.

◆ ext_queue

struct list_head ec_datagram_t::ext_queue

External datagram queue item, protected by ext_queue_sem.

Definition at line 82 of file datagram.h.

◆ sent

struct list_head ec_datagram_t::sent

Master list item for sent datagrams.

Definition at line 83 of file datagram.h.

◆ device_index

ec_device_index_t ec_datagram_t::device_index

Device via which the datagram shall be / was sent.

Definition at line 84 of file datagram.h.

◆ type

ec_datagram_type_t ec_datagram_t::type

Datagram type (APRD, BWR, etc.).

Definition at line 86 of file datagram.h.

◆ address

uint8_t ec_datagram_t::address[EC_ADDR_LEN]

Recipient address.

Definition at line 87 of file datagram.h.

◆ data

uint8_t* ec_datagram_t::data

Datagram payload.

Definition at line 88 of file datagram.h.

◆ data_origin

ec_origin_t ec_datagram_t::data_origin

Origin of the data memory.

Definition at line 89 of file datagram.h.

◆ mem_size

size_t ec_datagram_t::mem_size

Datagram data memory size.

Definition at line 90 of file datagram.h.

◆ data_size

size_t ec_datagram_t::data_size

Size of the data in data.

Definition at line 91 of file datagram.h.

◆ index

uint8_t ec_datagram_t::index

Index (set by master).

Definition at line 92 of file datagram.h.

◆ working_counter

uint16_t ec_datagram_t::working_counter

Working counter.

Definition at line 93 of file datagram.h.

◆ state

ec_datagram_state_t ec_datagram_t::state

State.

Definition at line 94 of file datagram.h.

◆ jiffies_sent

unsigned long ec_datagram_t::jiffies_sent

Jiffies, when the datagram was sent.

Definition at line 98 of file datagram.h.

◆ jiffies_received

unsigned long ec_datagram_t::jiffies_received

Jiffies, when the datagram was received.

Definition at line 102 of file datagram.h.

◆ skip_count

unsigned int ec_datagram_t::skip_count

Number of requeues when not yet received.

Definition at line 104 of file datagram.h.

◆ stats_output_jiffies

unsigned long ec_datagram_t::stats_output_jiffies

Last statistics output.

Definition at line 105 of file datagram.h.

◆ name

char ec_datagram_t::name[EC_DATAGRAM_NAME_SIZE]

Description of the datagram.

Definition at line 106 of file datagram.h.