aboutsummaryrefslogtreecommitdiff
path: root/tools/test/ppsapi/README
blob: ea0c3e86e1b507b40e24be2c1a5a4be70227db14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $FreeBSD$

This is a small test program which I have had around since we wrote
the RFC 2783 API.

Options:
	-a 	capture assert flank
	-c	capture clear flank
	(if neither -a -c: capture all available flanks)
	-A	output on assert flank
	-C	output on clear flank
	(if neither -A -C: output on all flanks)
	-e	enable echo (all possible flanks)
	-u	unbuffered output.
	-v	verbose.

The output looks like:

# ./ppsapitest -C /dev/cuau4
1070915603 .703680117 119 1070915940 .902275676 121
1070915941 .703657317 120 1070915941 .902327516 122
1070915942 .703657077 121 1070915942 .902367957 123
1070915943 .703657557 122 1070915943 .902419077 124
1070915944 .703656717 123 1070915944 .902467197 125
1070915945 .703657077 124 1070915945 .902527078 126

Columns:

	assert seconds (tv_sec)
	assert nanoseconds (tv_nsec)
	assert sequence number
	clear seconds (tv_sec)
	clear nanoseconds (tv_nsec)
	clear sequence number

(If the -C option had not been specified, twice as many lines would
be output:

# ./ppsapitest /dev/cuau4
1070916432 .703624557 125 1070915945 .902527078 126
1070916432 .703624557 125 1070916432 .902303156 127
1070916433 .703624557 126 1070916432 .902303156 127
1070916433 .703624557 126 1070916433 .902348396 128
1070916434 .703625757 127 1070916433 .902348396 128
1070916434 .703625757 127 1070916434 .902396877 129
1070916435 .703623837 128 1070916434 .902396877 129
1070916435 .703623837 128 1070916435 .902444277 130