Skip to content

Commit

Permalink
Add an access method for a clock's currentDS.stepsRemoved.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Jan 7, 2012
1 parent b76c4e1 commit 3481c99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3481c99

Please sign in to comment.