IgH EtherCAT Master
1.6.2
|
EtherCAT PDO list structure. More...
Go to the source code of this file.
Data Structures | |
struct | ec_pdo_list_t |
EtherCAT PDO list. More... | |
Functions | |
void | ec_pdo_list_init (ec_pdo_list_t *) |
PDO list constructor. | |
void | ec_pdo_list_clear (ec_pdo_list_t *) |
PDO list destructor. | |
void | ec_pdo_list_clear_pdos (ec_pdo_list_t *) |
Clears the list of mapped PDOs. | |
ec_pdo_t * | ec_pdo_list_add_pdo (ec_pdo_list_t *, uint16_t) |
Add a new PDO to the list. More... | |
int | ec_pdo_list_add_pdo_copy (ec_pdo_list_t *, const ec_pdo_t *) |
Add the copy of an existing PDO to the list. More... | |
int | ec_pdo_list_copy (ec_pdo_list_t *, const ec_pdo_list_t *) |
Makes a deep copy of another PDO list. More... | |
uint16_t | ec_pdo_list_total_size (const ec_pdo_list_t *) |
Calculates the total size of the mapped PDO entries. More... | |
int | ec_pdo_list_equal (const ec_pdo_list_t *, const ec_pdo_list_t *) |
Compares two PDO lists. More... | |
ec_pdo_t * | ec_pdo_list_find_pdo (const ec_pdo_list_t *, uint16_t) |
Finds a PDO with the given index. More... | |
const ec_pdo_t * | ec_pdo_list_find_pdo_const (const ec_pdo_list_t *, uint16_t) |
Finds a PDO with the given index and returns a const pointer. More... | |
const ec_pdo_t * | ec_pdo_list_find_pdo_by_pos_const (const ec_pdo_list_t *, unsigned int) |
Finds a PDO via its position in the list. More... | |
unsigned int | ec_pdo_list_count (const ec_pdo_list_t *) |
Get the number of PDOs in the list. More... | |
void | ec_pdo_list_print (const ec_pdo_list_t *) |
Outputs the PDOs in the list. | |
EtherCAT PDO list structure.
Definition in file pdo_list.h.
ec_pdo_t* ec_pdo_list_add_pdo | ( | ec_pdo_list_t * | pl, |
uint16_t | index | ||
) |
Add a new PDO to the list.
pl | PDO list. |
index | PDO index. |
Definition at line 109 of file pdo_list.c.
int ec_pdo_list_add_pdo_copy | ( | ec_pdo_list_t * | pl, |
const ec_pdo_t * | pdo | ||
) |
Add the copy of an existing PDO to the list.
pl | PDO list. |
pdo | PDO to add. |
Definition at line 133 of file pdo_list.c.
int ec_pdo_list_copy | ( | ec_pdo_list_t * | pl, |
const ec_pdo_list_t * | other | ||
) |
Makes a deep copy of another PDO list.
pl | PDO list. |
other | PDO list to copy from. |
Definition at line 169 of file pdo_list.c.
uint16_t ec_pdo_list_total_size | ( | const ec_pdo_list_t * | pl | ) |
Calculates the total size of the mapped PDO entries.
Data | size in byte. |
pl | PDO list. |
Definition at line 79 of file pdo_list.c.
int ec_pdo_list_equal | ( | const ec_pdo_list_t * | pl1, |
const ec_pdo_list_t * | pl2 | ||
) |
Compares two PDO lists.
Only the list is compared, not the PDO entries (i. e. the PDO mapping).
1 | The given PDO lists are equal. |
0 | The given PDO lists differ. |
pl1 | First list. |
pl2 | Second list. |
Definition at line 199 of file pdo_list.c.
ec_pdo_t* ec_pdo_list_find_pdo | ( | const ec_pdo_list_t * | pl, |
uint16_t | index | ||
) |
Finds a PDO with the given index.
pl | PDO list. |
index | PDO index. |
Definition at line 235 of file pdo_list.c.
const ec_pdo_t* ec_pdo_list_find_pdo_const | ( | const ec_pdo_list_t * | pl, |
uint16_t | index | ||
) |
Finds a PDO with the given index and returns a const pointer.
pl | PDO list. |
index | PDO index. |
Definition at line 257 of file pdo_list.c.
const ec_pdo_t* ec_pdo_list_find_pdo_by_pos_const | ( | const ec_pdo_list_t * | pl, |
unsigned int | pos | ||
) |
Finds a PDO via its position in the list.
Const version.
pl | PDO list. |
pos | Position in the list. |
Definition at line 281 of file pdo_list.c.
unsigned int ec_pdo_list_count | ( | const ec_pdo_list_t * | pl | ) |
Get the number of PDOs in the list.
pl | PDO list. |
Definition at line 303 of file pdo_list.c.