2 * Data for pretty printing clock types
8 #include "lib_strbuf.h"
9 #include "ntp_refclock.h"
10 #include "ntp_stdlib.h"
12 struct clktype clktypes[] = {
13 { REFCLK_NONE, "unspecified type (0)",
15 { REFCLK_LOCALCLOCK, "Undisciplined local clock (1)",
17 { REFCLK_GPS_TRAK, "TRAK 8810 GPS Receiver (2)",
19 { REFCLK_WWV_PST, "PSTI/Traconex WWV/WWVH Receiver (3)",
21 { REFCLK_SPECTRACOM, "Spectracom (generic) Receivers (4)",
23 { REFCLK_TRUETIME, "TrueTime (generic) Receivers (5)",
25 { REFCLK_IRIG_AUDIO, "IRIG Audio Decoder (6)",
27 { REFCLK_CHU_AUDIO, "CHU Audio Demodulator/Decoder (7)",
29 { REFCLK_PARSE, "Generic reference clock driver (8)",
31 { REFCLK_GPS_MX4200, "Magnavox MX4200 GPS Receiver (9)",
33 { REFCLK_GPS_AS2201, "Austron 2201A GPS Receiver (10)",
35 { REFCLK_GPS_ARBITER, "Arbiter 1088A/B GPS Receiver (11)",
37 { REFCLK_IRIG_TPRO, "KSI/Odetics TPRO/S IRIG Interface (12)",
39 { REFCLK_ATOM_LEITCH, "Leitch CSD 5300 Master Clock Controller (13)",
41 { REFCLK_MSF_EES, "EES M201 MSF Receiver (14)",
43 { REFCLK_GPSTM_TRUE, "TrueTime (old GPSTM driver) Receiver (15)",
45 { REFCLK_IRIG_BANCOMM, "Bancomm GPS/IRIG Receiver (16)",
47 { REFCLK_GPS_DATUM, "Datum Precision Time System (17)",
49 { REFCLK_NIST_ACTS, "NIST Automated Computer Time Service (18)",
51 { REFCLK_WWV_HEATH, "Heath WWV/WWVH Receiver (19)",
53 { REFCLK_GPS_NMEA, "Generic NMEA GPS Receiver (20)",
55 { REFCLK_GPS_VME, "TrueTime GPS-VME Interface (21)",
57 { REFCLK_ATOM_PPS, "PPS Clock Discipline (22)",
59 { REFCLK_PTB_ACTS, "PTB Automated Computer Time Service (23)",
61 { REFCLK_USNO, "Naval Observatory dialup (24)",
63 { REFCLK_TRUETIME, "TrueTime (generic) Receivers (25)",
65 { REFCLK_GPS_HP, "HP 58503A GPS Time & Frequency Receiver (26)",
67 { REFCLK_ARCRON_MSF, "ARCRON MSF (and DCF77) Receiver (27)",
69 { REFCLK_SHM, "Clock attached thru shared Memory (28)",
71 { REFCLK_PALISADE, "Trimble Navigation Palisade GPS (29)",
73 { REFCLK_ONCORE, "Motorola UT Oncore GPS (30)",
75 { REFCLK_GPS_JUPITER, "Rockwell Jupiter GPS (31)",
77 { REFCLK_CHRONOLOG, "Chrono-log K (32)",
79 { REFCLK_DUMBCLOCK, "Dumb generic hh:mm:ss local clock (33)",
81 { REFCLK_ULINK, "Ultralink M320 WWVB receiver (34)",
83 { REFCLK_PCF, "Conrad parallel port radio clock (35)",
85 { REFCLK_WWV_AUDIO, "WWV/H Audio Demodulator/Decoder (36)",
87 { REFCLK_FG, "Forum Graphic GPS Dating Station (37)",
97 register struct clktype *clk;
99 for (clk = clktypes; clk->code != -1; clk++) {
100 if (num == clk->code)
101 return (clk->abbrev);