2014-11-25 23:10:29 +08:00
|
|
|
/*
|
2017-03-29 13:16:44 +08: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 23:10:29 +08:00
|
|
|
*/
|
|
|
|
|
2015-11-04 20:02:33 +08:00
|
|
|
/** \file
|
2014-11-25 23:10:29 +08:00
|
|
|
* \brief
|
2015-11-04 20:02:33 +08:00
|
|
|
* Headerfile for ethercatdc.c
|
2014-11-25 23:10:29 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _EC_ECATDC_H
|
|
|
|
#define _EC_ECATDC_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EC_VER1
|
|
|
|
boolean ec_configdc();
|
2016-03-30 00:03:38 +08:00
|
|
|
void ec_dcsync0(uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift);
|
|
|
|
void ec_dcsync01(uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift);
|
2014-11-25 23:10:29 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
boolean ecx_configdc(ecx_contextt *context);
|
2016-03-30 00:03:38 +08:00
|
|
|
void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift);
|
|
|
|
void ecx_dcsync01(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift);
|
2014-11-25 23:10:29 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _EC_ECATDC_H */
|