summaryrefslogtreecommitdiff
path: root/examples/simple_talker
diff options
context:
space:
mode:
authorMarcin Miklas <marcin.miklas@symphonyteleca.com>2015-09-15 15:24:12 +0200
committerMarcin Miklas <marcin.miklas@symphonyteleca.com>2015-09-16 10:31:22 +0200
commit7c50870d6e2254d58ba3fe2ffed2bdd5f4aa135e (patch)
tree42d19a48b2781e0c95f54fa71e21981a77602ec3 /examples/simple_talker
parentad1d4f6164bd96ea3bf93e89feff7b6cc6605b0e (diff)
downloadOpen-AVB-7c50870d6e2254d58ba3fe2ffed2bdd5f4aa135e.tar.gz
Consistent gPtpTimeData definitions in examples.
Diffstat (limited to 'examples/simple_talker')
-rw-r--r--examples/simple_talker/simple_talker.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/simple_talker/simple_talker.c b/examples/simple_talker/simple_talker.c
index 573af26e..0a1c8776 100644
--- a/examples/simple_talker/simple_talker.c
+++ b/examples/simple_talker/simple_talker.c
@@ -72,12 +72,14 @@
#define L4_PORT ((uint16_t)5004)
#define PKT_SZ (100)
+typedef long double FrequencyRatio;
+
typedef struct {
- int64_t ml_phoffset;
- int64_t ls_phoffset;
- long double ml_freqoffset;
- long double ls_freqoffset;
- uint64_t local_time;
+ int64_t ml_phoffset;
+ int64_t ls_phoffset;
+ FrequencyRatio ml_freqoffset;
+ FrequencyRatio ls_freqoffset;
+ int64_t local_time;
} gPtpTimeData;
typedef struct __attribute__ ((packed)) {