From 3481c99c70a2edaea28292be4002e9471b0893e6 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 27 Dec 2011 11:28:09 +0100 Subject: [PATCH] Add an access method for a clock's currentDS.stepsRemoved. Signed-off-by: Richard Cochran --- clock.c | 5 +++++ clock.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/clock.c b/clock.c index a1ede51..0582563 100644 --- a/clock.c +++ b/clock.c @@ -371,6 +371,11 @@ int clock_slave_only(struct clock *c) return c->dds.slaveOnly; } +UInteger16 clock_steps_removed(struct clock *c) +{ + return c->cur.stepsRemoved; +} + enum servo_state clock_synchronize(struct clock *c, struct timespec ingress_ts, struct timestamp origin_ts, diff --git a/clock.h b/clock.h index 537e957..d3b8b10 100644 --- a/clock.h +++ b/clock.h @@ -134,6 +134,13 @@ int clock_poll(struct clock *c); */ int clock_slave_only(struct clock *c); +/** + * Obtain the steps removed field from a clock's current data set. + * @param c The clock instance. + * @return The value of the clock's steps removed field. + */ +UInteger16 clock_steps_removed(struct clock *c); + /** * Provide a data point to synchronize the clock. * @param c The clock instance to synchronize.