refclock_atom.h revision 1.4
1/* $NetBSD: refclock_atom.h,v 1.4 2014/12/19 20:43:14 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 11struct refclock_atom { 12 pps_handle_t handle; 13 pps_params_t pps_params; 14 struct timespec ts; 15}; 16 17extern int refclock_ppsapi(int, struct refclock_atom *); 18extern int refclock_params(int, struct refclock_atom *); 19extern int refclock_pps(struct peer *, struct refclock_atom *, int); 20