IgH EtherCAT Master  1.5.3
datagram_pair.h File Reference

EtherCAT datagram pair structure. More...

Go to the source code of this file.

Data Structures

struct  ec_datagram_pair_t
 Domain datagram pair. More...
 

Functions

int ec_datagram_pair_init (ec_datagram_pair_t *, ec_domain_t *, uint32_t, uint8_t *, size_t, const unsigned int [])
 Datagram pair constructor. More...
 
void ec_datagram_pair_clear (ec_datagram_pair_t *)
 Datagram pair destructor.
 
uint16_t ec_datagram_pair_process (ec_datagram_pair_t *, uint16_t[])
 Process received data. More...
 

Detailed Description

EtherCAT datagram pair structure.

Definition in file datagram_pair.h.

Function Documentation

◆ ec_datagram_pair_init()

int ec_datagram_pair_init ( ec_datagram_pair_t pair,
ec_domain_t domain,
uint32_t  logical_offset,
uint8_t *  data,
size_t  data_size,
const unsigned int  used[] 
)

Datagram pair constructor.

Returns
Zero on success, otherwise a negative error code.
Parameters
pairDatagram pair.
domainParent domain.
logical_offsetLogical offset.
dataData pointer.
data_sizeData size.
usedinput/output use count.

Definition at line 48 of file datagram_pair.c.

◆ ec_datagram_pair_process()

uint16_t ec_datagram_pair_process ( ec_datagram_pair_t pair,
uint16_t  wc_sum[] 
)

Process received data.

Returns
Working counter sum over all devices.
Parameters
pairDatagram pair.
wc_sumWorking counter sums.

Definition at line 176 of file datagram_pair.c.