1 /*	$NetBSD: refclock_atom.h,v 1.7 2020/05/25 20:47:20 christos Exp $	*/
2 
3 /*
4  * Definitions for the atom driver and its friends
5  */
6 #ifndef NANOSECOND
7 #define NANOSECOND	1000000000 /* one second (ns) */
8 #endif
9 #define RANGEGATE	500000  /* range gate (ns) */
10 
11 struct refclock_atom {
12 	pps_handle_t handle;
13 	pps_params_t pps_params;
14 	struct timespec ts;
15 };
16 
17 extern	int	refclock_ppsapi(int, struct refclock_atom *);
18 extern	int	refclock_params(int, struct refclock_atom *);
19 extern	int	refclock_pps(struct peer *, struct refclock_atom *, int);
20