Headerfile for ethercatconfig.c. More...
Go to the source code of this file.
Macros | |
#define | EC_NODEOFFSET 0x1000 |
#define | EC_TEMPNODE 0xffff |
Functions | |
int | ecx_config_init (ecx_contextt *context, uint8 usetable) |
int | ecx_config_map_group (ecx_contextt *context, void *pIOmap, uint8 group) |
int | ecx_reconfig_slave (ecx_contextt *context, uint16 slave, int timeout) |
int | ecx_recover_slave (ecx_contextt *context, uint16 slave, int timeout) |
Headerfile for ethercatconfig.c.
Definition in file ethercatconfig.h.
#define EC_NODEOFFSET 0x1000 |
Definition at line 54 of file ethercatconfig.h.
#define EC_TEMPNODE 0xffff |
Definition at line 55 of file ethercatconfig.h.
int ecx_config_init | ( | ecx_contextt * | context, |
uint8 | usetable | ||
) |
Enumerate and init all slaves.
[in] | context | = context struct |
[in] | usetable | = TRUE when using configtable to init slaves, FALSE otherwise |
Definition at line 139 of file ethercatconfig.c.
int ecx_config_map_group | ( | ecx_contextt * | context, |
void * | pIOmap, | ||
uint8 | group | ||
) |
Map all PDOs in one group of slaves to IOmap.
[in] | context | = context struct |
[out] | pIOmap | = pointer to IOmap |
[in] | group | = group to map, 0 = all groups |
Definition at line 533 of file ethercatconfig.c.
int ecx_reconfig_slave | ( | ecx_contextt * | context, |
uint16 | slave, | ||
int | timeout | ||
) |
Reconfigure slave.
[in] | context | = context struct |
[in] | slave | = slave to reconfigure |
[in] | timeout | = local timeout f.e. EC_TIMEOUTRET3 |
Definition at line 1079 of file ethercatconfig.c.
int ecx_recover_slave | ( | ecx_contextt * | context, |
uint16 | slave, | ||
int | timeout | ||
) |
Recover slave.
[in] | context | = context struct |
[in] | slave | = slave to recover |
[in] | timeout | = local timeout f.e. EC_TIMEOUTRET3 |
Definition at line 1017 of file ethercatconfig.c.