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.