IgH EtherCAT Master  1.5.3
pdo_entry.c File Reference

EtherCAT process data object entry methods. More...

Go to the source code of this file.

Functions

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

Detailed Description

EtherCAT process data object entry methods.

Definition in file pdo_entry.c.

Function Documentation

◆ ec_pdo_entry_init()

void ec_pdo_entry_init ( ec_pdo_entry_t entry)

PDO entry constructor.

Parameters
entryPDO entry.

Definition at line 45 of file pdo_entry.c.

◆ 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 59 of file pdo_entry.c.

◆ ec_pdo_entry_clear()

void ec_pdo_entry_clear ( ec_pdo_entry_t entry)

PDO entry destructor.

Parameters
entryPDO entry.

Definition at line 76 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 89 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 122 of file pdo_entry.c.