Go to the documentation of this file.
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);
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;
boolean ec_configdc(void)
static int32 ecx_porttime(ecx_contextt *context, uint16 slave, uint8 port)
Headerfile for ethercatmain.c.
ec_timet osal_current_time(void)
Headerfile for ethercatbase.c.
void ec_dcsync01(uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, int32 CyclShift)
static uint8 ecx_parentport(ecx_contextt *context, uint16 parent)
void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift)
boolean ecx_configdc(ecx_contextt *context)
int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
Headerfile for ethercatdc.c.
static uint8 ecx_prevport(ecx_contextt *context, uint16 slave, uint8 port)
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)
General typedefs and defines for EtherCAT.
int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
void ec_dcsync0(uint16 slave, boolean act, uint32 CyclTime, int32 CyclShift)
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:48