diff options
Diffstat (limited to 'third_party/ptpd-1.1.0/src/ptpd.h')
| -rw-r--r-- | third_party/ptpd-1.1.0/src/ptpd.h | 49 |
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
|
