aboutsummaryrefslogtreecommitdiffstats
path: root/src/Eti.h
diff options
context:
space:
mode:
authorMatthias (think) <matthias@mpb.li>2012-07-11 11:53:28 +0200
committerMatthias (think) <matthias@mpb.li>2012-07-11 11:53:28 +0200
commit37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e (patch)
tree5b1addcce04025582f14106938b0f46ac9a5af47 /src/Eti.h
parentbbab73a63b8c7b50e8a8cb228999d45024fad984 (diff)
downloaddabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.gz
dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.bz2
dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.zip
included timestamp modifications for dabmuxr4r3r2r1
Diffstat (limited to 'src/Eti.h')
-rw-r--r--src/Eti.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Eti.h b/src/Eti.h
index 5580aaf..d8e4b82 100644
--- a/src/Eti.h
+++ b/src/Eti.h
@@ -1,6 +1,9 @@
/*
Copyright (C) 2005, 2006, 2007, 2008, 2009 Her Majesty the Queen in Right
of Canada (Communications Research Center Canada)
+
+ Includes modifications
+ 2012, Matthias P. Braendli, matthias.braendli@mpb.li
*/
/*
This file is part of CRC-DabMux.
@@ -35,6 +38,7 @@ typedef DWORD32 uint32_t;
# pragma pack(push, 1)
#else
# include <stdint.h>
+# include <time.h>
# define PACKED __attribute__ ((packed))
#endif
@@ -93,4 +97,39 @@ struct eti_TIST {
} PACKED;
+struct eti_MNSC_TIME_0 {
+ uint32_t type:4;
+ uint32_t identifier:4;
+ uint32_t rfa:8;
+} PACKED;
+
+struct eti_MNSC_TIME_1 {
+ uint32_t second_unit:4;
+ uint32_t second_tens:3;
+ uint32_t accuracy:1;
+
+ uint32_t minute_unit:4;
+ uint32_t minute_tens:3;
+ uint32_t sync_to_frame:1;
+ void setFromTime(struct tm *time_tm);
+} PACKED;
+
+struct eti_MNSC_TIME_2 {
+ uint32_t hour_unit:4;
+ uint32_t hour_tens:4;
+
+ uint32_t day_unit:4;
+ uint32_t day_tens:4;
+ void setFromTime(struct tm *time_tm);
+} PACKED;
+
+struct eti_MNSC_TIME_3 {
+ uint32_t month_unit:4;
+ uint32_t month_tens:4;
+
+ uint32_t year_unit:4;
+ uint32_t year_tens:4;
+ void setFromTime(struct tm *time_tm);
+} PACKED;
+
#endif // ETI_