pdo.c File Reference
EtherCAT process data object methods.
More...
Go to the source code of this file.
Detailed Description
EtherCAT process data object methods.
Definition in file pdo.c.
Function Documentation
PDO constructor.
- Parameters:
-
Definition at line 46 of file pdo.c.
PDO copy constructor.
- Return values:
-
| 0 | Success. |
| <0 | Error code. |
- Parameters:
-
| pdo |
PDO to create. |
| other_pdo |
PDO to copy from. |
Definition at line 62 of file pdo.c.
PDO destructor.
- Parameters:
-
Definition at line 94 of file pdo.c.
| void ec_pdo_clear_entries |
( |
ec_pdo_t * |
pdo |
) |
|
Clear PDO entry list.
- Parameters:
-
Definition at line 106 of file pdo.c.
| int ec_pdo_set_name |
( |
ec_pdo_t * |
pdo, |
|
|
const char * |
name | |
|
) |
| | |
Set PDO name.
- Return values:
-
| 0 | Success. |
| <0 | Error code. |
- Parameters:
-
Definition at line 125 of file pdo.c.
Add a new PDO entry to the configuration.
- Return values:
-
| Pointer | to the added entry, otherwise a ERR_PTR() code. |
- Parameters:
-
| pdo |
PDO. |
| index |
New entry's index. |
| subindex |
New entry's subindex. |
| bit_length |
New entry's bit length. |
Definition at line 157 of file pdo.c.
Copy PDO entries from another PDO.
- Return values:
-
| 0 | Success. |
| <0 | Error code. |
- Parameters:
-
| pdo |
PDO whos entries shall be replaced. |
| other |
Pdo with entries to copy. |
Definition at line 186 of file pdo.c.
Compares the entries of two PDOs.
- Return values:
-
| 1 | The entries of the given PDOs are equal. |
| 0 | The entries of the given PDOs differ. |
- Parameters:
-
| pdo1 |
First PDO. |
| pdo2 |
Second PDO. |
Definition at line 222 of file pdo.c.
| unsigned int ec_pdo_entry_count |
( |
const ec_pdo_t * |
pdo |
) |
|
Get the number of PDO entries.
- Returns:
- Number of PDO entries.
- Parameters:
-
Definition at line 257 of file pdo.c.
Finds a PDO entry via its position in the list.
Const version.
- Returns:
- Search result, or NULL.
- Parameters:
-
| pdo |
PDO. |
| pos |
Position in the list. |
Definition at line 279 of file pdo.c.
| void ec_pdo_print_entries |
( |
const ec_pdo_t * |
pdo |
) |
|
Outputs the PDOs in the list.
- Parameters:
-
Definition at line 299 of file pdo.c.