Hello,
Simple but useful to see if PTP_SYS_OFFSET_PRECISE is supported on a PHC.
Emmanuel
diff --git a/phc_ctl.c b/phc_ctl.c
index 4a78a19..f6234da 100644
--- a/phc_ctl.c
+++ b/phc_ctl.c
@@ -353,12 +353,14 @@ static int do_caps(clockid_t clkid, int cmdc, char
*cmdv[])
" %d programable alarms\n"
" %d external time stamp channels\n"
" %d programmable periodic signals\n"
- " %s pulse per second support",
+ " %s pulse per second support\n"
+ " %s precise system-device cross timestamps support",
caps.max_adj,
caps.n_alarm,
caps.n_ext_ts,
caps.n_per_out,
- caps.pps ? "has" : "doesn't have");
+ caps.pps ? "has" : "doesn't have",
+ caps.cross_timestamping ? "has" : "doesn't have");
return 0;
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel