xref: /freebsd/tools/test/ppsapi/README (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1
2This is a small test program which I have had around since we wrote
3the RFC 2783 API.
4
5Options:
6	-a 	capture assert flank
7	-c	capture clear flank
8	(if neither -a -c: capture all available flanks)
9	-A	output on assert flank
10	-C	output on clear flank
11	(if neither -A -C: output on all flanks)
12	-e	enable echo (all possible flanks)
13	-u	unbuffered output.
14	-v	verbose.
15
16The output looks like:
17
18# ./ppsapitest -C /dev/cuau4
191070915603 .703680117 119 1070915940 .902275676 121
201070915941 .703657317 120 1070915941 .902327516 122
211070915942 .703657077 121 1070915942 .902367957 123
221070915943 .703657557 122 1070915943 .902419077 124
231070915944 .703656717 123 1070915944 .902467197 125
241070915945 .703657077 124 1070915945 .902527078 126
25
26Columns:
27
28	assert seconds (tv_sec)
29	assert nanoseconds (tv_nsec)
30	assert sequence number
31	clear seconds (tv_sec)
32	clear nanoseconds (tv_nsec)
33	clear sequence number
34
35(If the -C option had not been specified, twice as many lines would
36be output:
37
38# ./ppsapitest /dev/cuau4
391070916432 .703624557 125 1070915945 .902527078 126
401070916432 .703624557 125 1070916432 .902303156 127
411070916433 .703624557 126 1070916432 .902303156 127
421070916433 .703624557 126 1070916433 .902348396 128
431070916434 .703625757 127 1070916433 .902348396 128
441070916434 .703625757 127 1070916434 .902396877 129
451070916435 .703623837 128 1070916434 .902396877 129
461070916435 .703623837 128 1070916435 .902444277 130
47
48