# HG changeset patch # User Florian Pose # Date 1240489235 0 # Node ID 3ebef749275c879ab45c0b320eca6a13f219bf6b # Parent fb6719008bf56df3f53cc666a7dc74e8804ad2c1 Added shift times to api. diff -r fb6719008bf5 -r 3ebef749275c include/ecrt.h --- a/include/ecrt.h Thu Apr 23 12:02:26 2009 +0000 +++ b/include/ecrt.h Thu Apr 23 12:20:35 2009 +0000 @@ -42,8 +42,9 @@ * Changes in version 1.5: * * - Added the distributed clocks feature and the respective methods - * ecrt_slave_config_dc_assign_activate() and - * ecrt_slave_config_dc_sync_cycle_times() to configure a slave for cyclic + * ecrt_slave_config_dc_assign_activate(), + * ecrt_slave_config_dc_sync_cycle_times() and + * ecrt_slave_config_dc_sync_shift_times() to configure a slave for cyclic * operation, and ecrt_master_sync_reference_clock() and * ecrt_master_sync_slave_clocks() for drift compensation. * - Changed the meaning of the negative return values of @@ -714,6 +715,14 @@ uint32_t sync1_cycle_time /**< SYNC1 cycle time [ns]. */ ); +/** Sets the shift times for the SYNC0 and SYNC1 signals. + */ +void ecrt_slave_config_dc_sync_shift_times( + ec_slave_config_t *sc, /**< Slave configuration. */ + uint32_t sync0_shift_time, /**< SYNC0 shift time [ns]. */ + uint32_t sync1_shift_time /**< SYNC1 shift time [ns]. */ + ); + /** Add an SDO configuration. * * An SDO configuration is stored in the slave configuration object and is