File: refclock_pps.h

package info (click to toggle)
ntpsec 1.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,044 kB
  • sloc: ansic: 60,737; python: 31,610; sh: 1,494; yacc: 1,291; makefile: 176; javascript: 138
file content (21 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Definitions for the PPS driver and its friends
 */

struct refclock_ppsctl {
	pps_handle_t handle;
	pps_params_t pps_params;
	struct timespec ts;
	unsigned long sequence;
};

typedef enum {
    PPS_OK,
    PPS_SETUP,  /* PPS not setup */
    PPS_KERNEL, /* PPS error from kernel */
    PPS_NREADY  /* PPS not ready */
} pps_status;

extern	bool	refclock_ppsapi(int, struct refclock_ppsctl *);
extern	bool	refclock_params(int, struct refclock_ppsctl *);
extern pps_status refclock_catcher(struct peer *, struct refclock_ppsctl *, int);