diff options
author | Matthias (think) <matthias@mpb.li> | 2012-07-11 11:53:28 +0200 |
---|---|---|
committer | Matthias (think) <matthias@mpb.li> | 2012-07-11 11:53:28 +0200 |
commit | 37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e (patch) | |
tree | 5b1addcce04025582f14106938b0f46ac9a5af47 /src/Eti.h | |
parent | bbab73a63b8c7b50e8a8cb228999d45024fad984 (diff) | |
download | dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.gz dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.bz2 dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.zip |
Diffstat (limited to 'src/Eti.h')
-rw-r--r-- | src/Eti.h | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -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_ |