IgH EtherCAT Master  1.5.3
datagram_pair.c File Reference

EtherCAT datagram pair methods. More...

Go to the source code of this file.

Functions

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. More...
 
void ec_datagram_pair_clear (ec_datagram_pair_t *pair)
 Datagram pair destructor. More...
 
uint16_t ec_datagram_pair_process (ec_datagram_pair_t *pair, uint16_t wc_sum[])
 Process received data. More...
 

Detailed Description

EtherCAT datagram pair methods.

Definition in file datagram_pair.c.

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_clear()

void ec_datagram_pair_clear ( ec_datagram_pair_t pair)

Datagram pair destructor.

Parameters
pairDatagram pair.

Definition at line 151 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.