From b682f55b97000f5d93508e3017e81fcc98e8a75f Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Thu, 23 Apr 2009 12:20:35 +0000 Subject: [PATCH] Added shift times to api. --- include/ecrt.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/ecrt.h b/include/ecrt.h index 568b1e2e..ac53f9e7 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -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 @@ void ecrt_slave_config_dc_sync_cycle_times( 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