Add an access method for a clock's currentDS.stepsRemoved.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2011-12-27 11:28:09 +01:00
parent b76c4e108f
commit 3481c99c70
2 changed files with 12 additions and 0 deletions

View File

@ -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,

View File

@ -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.