24 #define SyncDelay ((int32)100000000) 63 t = ((t1 +
SyncDelay) / CyclTime) * CyclTime + CyclTime + CyclShift;
103 TrueCyclTime = ((CyclTime1 / CyclTime0) + 1) * CyclTime0;
126 t = ((t1 +
SyncDelay) / TrueCyclTime) * TrueCyclTime + TrueCyclTime + CyclShift;
135 tc =
htoel(CyclTime0);
137 tc =
htoel(CyclTime1);
192 else if (aport & PORTM2)
198 else if (aport & PORTM3)
200 else if (aport & PORTM0)
206 else if (aport & PORTM2)
208 else if (aport & PORTM1)
218 uint8 parentport = 0;
254 uint16 i, slaveh, parent, child;
257 int32 ht, dt1, dt2, dt3;
272 mastertime.
sec -= 946684800UL;
339 if((nlist > 1) && (tlist[1] < tlist[entryport]))
343 if((nlist > 2) && (tlist[2] < tlist[entryport]))
347 if((nlist > 3) && (tlist[3] < tlist[entryport]))
351 entryport = plist[entryport];
391 if (dt1 > dt3) dt1 = -dt1;
394 if ((child - parent) > 1)
400 if (dt2 < 0) dt2 = -dt2;
static int32 ecx_porttime(ecx_contextt *context, uint16 slave, uint8 port)
Headerfile for ethercatdc.c.
void ec_dcsync0(uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift)
void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift)
int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
General typedefs and defines for EtherCAT.
int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
void ecx_dcsync01(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift)
ec_timet osal_current_time(void)
int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
static uint8 ecx_parentport(ecx_contextt *context, uint16 parent)
void ec_dcsync01(uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift)
static uint8 ecx_prevport(ecx_contextt *context, uint16 slave, uint8 port)
boolean ecx_configdc(ecx_contextt *context)
Headerfile for ethercatbase.c.
boolean ec_configdc(void)
Headerfile for ethercatmain.c.