refclock: add option to filter wrong pulse edges

Add width option to the refclock directive to set expected width of
pulses in a PPS signal. The width adds a limit for the maximum offset
and root distance in order to reject PPS samples from wrong events, e.g.
PHCs which cannot be configured to timestamp only rising of falling
edges.
This commit is contained in:
Miroslav Lichvar
2017-05-19 18:51:03 +02:00
parent eceb8d9937
commit 1ca099473f
3 changed files with 36 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ typedef struct {
double delay;
double precision;
double max_dispersion;
double pulse_width;
} RefclockParameters;
typedef struct RCL_Instance_Record *RCL_Instance;