Add an access method for a clock's currentDS.stepsRemoved.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
This commit is contained in:
		
							parent
							
								
									b76c4e108f
								
							
						
					
					
						commit
						3481c99c70
					
				
							
								
								
									
										5
									
								
								clock.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								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, | ||||
|  | ||||
							
								
								
									
										7
									
								
								clock.h
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								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. | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user