summaryrefslogtreecommitdiff
path: root/third_party/ptpd-1.1.0/src/ptpd.h
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2014-08-08 14:42:07 +0300
committerYuval Adam <yuv.adm@gmail.com>2014-08-08 14:42:07 +0300
commita6163888f3c56123b1db313743c6147ba498732c (patch)
treeff7d15d991d1d09ba6cbc0cec80924f57445bfdd /third_party/ptpd-1.1.0/src/ptpd.h
parentc3e4c9a25c2910d2d66d52215b3406b13d5b23d5 (diff)
Add third_party libs
Diffstat (limited to 'third_party/ptpd-1.1.0/src/ptpd.h')
-rw-r--r--third_party/ptpd-1.1.0/src/ptpd.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/third_party/ptpd-1.1.0/src/ptpd.h b/third_party/ptpd-1.1.0/src/ptpd.h
new file mode 100644
index 0000000..b0abe7e
--- /dev/null
+++ b/third_party/ptpd-1.1.0/src/ptpd.h
@@ -0,0 +1,49 @@
+/**
+ * @file ptpd.h
+ * @mainpage Ptpd Documentation
+ * @authors Martin Burnicki, Alexandre van Kempen, Steven Kreuzer,
+ * George Neville-Neil
+ * @version 1.0
+ * @date Tue Jul 20 16:15:04 2010
+ *
+ *
+ */
+
+#ifndef PTPD_H
+#define PTPD_H
+
+/* Definitions and dependencies for the TI TivaWare port */
+#include "constants.h"
+#include "dep-tiva/constants_dep.h"
+#include "dep-tiva/datatypes_dep.h"
+#include "datatypes.h"
+#include "dep-tiva/ptpd_dep.h"
+
+/* arith.c */
+UInteger32 crc_algorithm(Octet *, Integer16);
+UInteger32 sum(Octet *, Integer16);
+void fromInternalTime(TimeInternal *, TimeRepresentation *, Boolean);
+void toInternalTime(TimeInternal *, TimeRepresentation *, Boolean *);
+void normalizeTime(TimeInternal *);
+void addTime(TimeInternal *, TimeInternal *, TimeInternal *);
+void subTime(TimeInternal *, TimeInternal *, TimeInternal *);
+
+/* bmc.c */
+UInteger8 bmc(ForeignMasterRecord *, RunTimeOpts *, PtpClock *);
+void m1 (PtpClock *);
+void s1 (MsgHeader *, MsgSync *, PtpClock *);
+void initData(RunTimeOpts *, PtpClock *);
+
+/* probe.c */
+void probe(RunTimeOpts *, PtpClock *);
+
+/* protocol.c */
+void protocol(RunTimeOpts *, PtpClock *);
+
+/* Split versions of protocol() that may be used when no RTOS is present.
+ * These functions were added by TI.
+ */
+void protocol_first(RunTimeOpts*,PtpClock*);
+void protocol_loop(RunTimeOpts*,PtpClock*);
+
+#endif