AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ethercatdc.h Source File

ethercatdc.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 ethercatdc.c
00009  */
00010 
00011 #ifndef _EC_ECATDC_H
00012 #define _EC_ECATDC_H
00013 
00014 #ifdef __cplusplus
00015 extern "C"
00016 {
00017 #endif
00018 
00019 #ifdef EC_VER1
00020 boolean ec_configdc();
00021 void ec_dcsync0(uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift);
00022 void ec_dcsync01(uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift);
00023 #endif
00024 
00025 boolean ecx_configdc(ecx_contextt *context);
00026 void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift);
00027 void ecx_dcsync01(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift);
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif
00032 
00033 #endif /* _EC_ECATDC_H */