29 #ifndef __EC_PDO_LIST_H__ 30 #define __EC_PDO_LIST_H__ 32 #include <linux/list.h> 42 struct list_head list;
void ec_pdo_list_init(ec_pdo_list_t *)
PDO list constructor.
unsigned int ec_pdo_list_count(const ec_pdo_list_t *)
Get the number of PDOs in the list.
void ec_pdo_list_clear(ec_pdo_list_t *)
PDO list destructor.
ec_pdo_t * ec_pdo_list_add_pdo(ec_pdo_list_t *, uint16_t)
Add a new PDO to the list.
void ec_pdo_list_clear_pdos(ec_pdo_list_t *)
Clears the list of mapped PDOs.
Global definitions and macros.
void ec_pdo_list_print(const ec_pdo_list_t *)
Outputs the PDOs in the list.
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.
int ec_pdo_list_copy(ec_pdo_list_t *, const ec_pdo_list_t *)
Makes a deep copy of another PDO list.
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.
uint16_t ec_pdo_list_total_size(const ec_pdo_list_t *)
Calculates the total size of the mapped PDO entries.
ec_pdo_t * ec_pdo_list_find_pdo(const ec_pdo_list_t *, uint16_t)
Finds a PDO with the given index.
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.
int ec_pdo_list_equal(const ec_pdo_list_t *, const ec_pdo_list_t *)
Compares two PDO lists.
EtherCAT Process data object structure.