Headerfile for ethercatdc.c. More...
Go to the source code of this file.
Functions | |
boolean | ec_configdc () |
Set DC's of all slaves to sync with the first, measure propagation delays. | |
void | ec_dcsync0 (uint16 slave, boolean act, uint32 CyclTime, uint32 CyclShift) |
Set DC of slave to fire sync0 at CyclTime interval with CyclShift offset. | |
void | ec_dcsync01 (uint16 slave, boolean act, uint32 CyclTime0, uint32 CyclTime1, uint32 CyclShift) |
Set DC of slave to fire sync0 and sync1 at CyclTime interval with CyclShift offset. | |
Variables | |
uint16 | DCrefSlave |
uint16 | DClistN |
Headerfile for ethercatdc.c.
Definition in file ethercatdc.h.
boolean ec_configdc | ( | void | ) |
Set DC's of all slaves to sync with the first, measure propagation delays.
return DCfound
Set DC's of all slaves to sync with the first, measure propagation delays.
return boolean if slaves are found with DC
Definition at line 266 of file ethercatdc.c.
Set DC of slave to fire sync0 at CyclTime interval with CyclShift offset.
[in] | slave | Slave number. |
[in] | act | TRUE = active, FALSE = deactivated |
[in] | CyclTime | Cycltime in ns. |
[in] | CyclShift | CyclShift in ns. |
Definition at line 68 of file ethercatdc.c.
void ec_dcsync01 | ( | uint16 | slave, | |
boolean | act, | |||
uint32 | CyclTime0, | |||
uint32 | CyclTime1, | |||
uint32 | CyclShift | |||
) |
Set DC of slave to fire sync0 and sync1 at CyclTime interval with CyclShift offset.
[in] | slave | Slave number. |
[in] | act | TRUE = active, FALSE = deactivated |
[in] | CyclTime0 | Cycltime SYNC0 in ns. |
[in] | CyclTime1 | Cycltime SYNC1 in ns. This time is a delta time in relation to the SYNC0 fire. If CylcTime1 = 0 then SYNC1 fires a the same time as SYNC0. |
[in] | CyclShift | CyclShift in ns. |
Definition at line 120 of file ethercatdc.c.