59 #define SyncDelay ((int32)100000000) 97 t = ((t1 +
SyncDelay) / CyclTime) * CyclTime + CyclTime + CyclShift;
106 tc =
htoel(CyclTime);
150 t = ((t1 +
SyncDelay) / CyclTime0) * CyclTime0 + CyclTime0 + CyclShift;
159 tc =
htoel(CyclTime0);
161 tc =
htoel(CyclTime1);
202 else if (aport & PORTM2)
210 else if (aport & PORTM2)
216 else if (aport & PORTM3)
218 else if (aport & PORTM0)
224 else if (aport & PORTM2)
226 else if (aport & PORTM1)
236 uint8 parentport = 0;
272 uint16 i, wc, slaveh, parent, child;
275 int32 ht, dt1, dt2, dt3;
351 if((nlist > 1) && (tlist[1] < tlist[entryport]))
355 if((nlist > 2) && (tlist[2] < tlist[entryport]))
359 if((nlist > 3) && (tlist[3] < tlist[entryport]))
363 entryport = plist[entryport];
403 if (dt1 > dt3) dt1 = -dt1;
406 if ((child - parent) > 1)
412 if (dt2 < 0) dt2 = -dt2;
448 ecx_dcsync0(&ecx_context, slave, act, CyclTime, CyclShift);
453 ecx_dcsync01(&ecx_context, slave, act, CyclTime0, CyclTime1, CyclShift);
456 boolean ec_configdc(
void)
int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
static int32 ecx_porttime(ecx_contextt *context, uint16 slave, uint8 port)
Headerfile for ethercatdc.c.
void ecx_dcsync01(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, uint32 CyclShift)
int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, uint32 CyclShift)
General typedefs and defines for EtherCAT.
static uint8 ecx_parentport(ecx_contextt *context, uint16 parent)
static uint8 ecx_prevport(ecx_contextt *context, uint16 slave, uint8 port)
boolean ecx_configdc(ecx_contextt *context)
Headerfile for ethercatbase.c.
Headerfile for ethercatmain.c.
int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)