AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ethercatconfig.h Source File

ethercatconfig.h

Go to the documentation of this file.
00001 /*
00002  * Licensed under the GNU General Public License version 2 with exceptions. See
00003  * LICENSE file in the project root for full license information
00004  */
00005 
00006 /** \file
00007  * \brief
00008  * Headerfile for ethercatconfig.c
00009  */
00010 
00011 #ifndef _ethercatconfig_
00012 #define _ethercatconfig_
00013 
00014 #ifdef __cplusplus
00015 extern "C"
00016 {
00017 #endif
00018 
00019 #define EC_NODEOFFSET      0x1000
00020 #define EC_TEMPNODE        0xffff
00021 
00022 #ifdef EC_VER1
00023 int ec_config_init(uint8 usetable);
00024 int ec_config_map(void *pIOmap);
00025 int ec_config_overlap_map(void *pIOmap);
00026 int ec_config_map_group(void *pIOmap, uint8 group);
00027 int ec_config_overlap_map_group(void *pIOmap, uint8 group);
00028 int ec_config(uint8 usetable, void *pIOmap);
00029 int ec_config_overlap(uint8 usetable, void *pIOmap);
00030 int ec_recover_slave(uint16 slave, int timeout);
00031 int ec_reconfig_slave(uint16 slave, int timeout);
00032 #endif
00033 
00034 int ecx_config_init(ecx_contextt *context, uint8 usetable);
00035 int ecx_config_map_group(ecx_contextt *context, void *pIOmap, uint8 group);
00036 int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uint8 group);
00037 int ecx_recover_slave(ecx_contextt *context, uint16 slave, int timeout);
00038 int ecx_reconfig_slave(ecx_contextt *context, uint16 slave, int timeout);
00039 
00040 #ifdef __cplusplus
00041 }
00042 #endif
00043 
00044 #endif