2014-11-25 16:10:29 +01:00
|
|
|
/*
|
2017-03-29 07:16:44 +02:00
|
|
|
* Licensed under the GNU General Public License version 2 with exceptions. See
|
|
|
|
* LICENSE file in the project root for full license information
|
2014-11-25 16:10:29 +01:00
|
|
|
*/
|
|
|
|
|
2015-11-04 13:02:33 +01:00
|
|
|
/** \file
|
2014-11-25 16:10:29 +01:00
|
|
|
* \brief
|
2015-11-04 13:02:33 +01:00
|
|
|
* Headerfile for ethercatconfig.c
|
2014-11-25 16:10:29 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ethercatconfig_
|
|
|
|
#define _ethercatconfig_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EC_NODEOFFSET 0x1000
|
|
|
|
#define EC_TEMPNODE 0xffff
|
|
|
|
|
|
|
|
#ifdef EC_VER1
|
|
|
|
int ec_config_init(uint8 usetable);
|
|
|
|
int ec_config_map(void *pIOmap);
|
2018-02-01 12:12:36 +01:00
|
|
|
int ec_config_overlap_map(void *pIOmap);
|
2014-11-25 16:10:29 +01:00
|
|
|
int ec_config_map_group(void *pIOmap, uint8 group);
|
2018-02-01 12:12:36 +01:00
|
|
|
int ec_config_overlap_map_group(void *pIOmap, uint8 group);
|
2014-11-25 16:10:29 +01:00
|
|
|
int ec_config(uint8 usetable, void *pIOmap);
|
2018-02-01 12:12:36 +01:00
|
|
|
int ec_config_overlap(uint8 usetable, void *pIOmap);
|
2014-11-25 16:10:29 +01:00
|
|
|
int ec_recover_slave(uint16 slave, int timeout);
|
|
|
|
int ec_reconfig_slave(uint16 slave, int timeout);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int ecx_config_init(ecx_contextt *context, uint8 usetable);
|
|
|
|
int ecx_config_map_group(ecx_contextt *context, void *pIOmap, uint8 group);
|
2018-02-01 12:12:36 +01:00
|
|
|
int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uint8 group);
|
2014-11-25 16:10:29 +01:00
|
|
|
int ecx_recover_slave(ecx_contextt *context, uint16 slave, int timeout);
|
|
|
|
int ecx_reconfig_slave(ecx_contextt *context, uint16 slave, int timeout);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|