IgH EtherCAT Master  1.6.2
pdo_entry.h File Reference

EtherCAT Process data object structure. More...

Go to the source code of this file.

Data Structures

struct  ec_pdo_entry_t
 PDO entry description. More...
 

Functions

void ec_pdo_entry_init (ec_pdo_entry_t *)
 PDO entry constructor.
 
int ec_pdo_entry_init_copy (ec_pdo_entry_t *, const ec_pdo_entry_t *)
 PDO entry copy constructor. More...
 
void ec_pdo_entry_clear (ec_pdo_entry_t *)
 PDO entry destructor.
 
int ec_pdo_entry_set_name (ec_pdo_entry_t *, const char *)
 Set PDO entry name. More...
 
int ec_pdo_entry_equal (const ec_pdo_entry_t *, const ec_pdo_entry_t *)
 Compares two PDO entries. More...
 

Detailed Description

EtherCAT Process data object structure.

Definition in file pdo_entry.h.

Function Documentation

◆ ec_pdo_entry_init_copy()

int ec_pdo_entry_init_copy ( ec_pdo_entry_t entry,
const ec_pdo_entry_t other 
)

PDO entry copy constructor.

Return values
0Success.
<0Error code.
Parameters
entryPDO entry.
otherPDO entry to copy from.

Definition at line 51 of file pdo_entry.c.

◆ ec_pdo_entry_set_name()

int ec_pdo_entry_set_name ( ec_pdo_entry_t entry,
const char *  name 
)

Set PDO entry name.

Return values
0Success.
<0Error code.
Parameters
entryPDO entry.
nameNew name.

Definition at line 81 of file pdo_entry.c.

◆ ec_pdo_entry_equal()

int ec_pdo_entry_equal ( const ec_pdo_entry_t entry1,
const ec_pdo_entry_t entry2 
)

Compares two PDO entries.

Return values
1The entries are equal.
0The entries differ.
Parameters
entry1First PDO entry.
entry2Second PDO entry.

Definition at line 114 of file pdo_entry.c.