diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-29 15:27:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-29 15:27:32 +0200 |
commit | 14f69f9c915cf644147a52b803d79ff8f40a4ea1 (patch) | |
tree | b89eabcdb3c2fb2ae3f911b08867f46061e6cf37 /lib/edi/common.hpp | |
parent | 6ff1dd95a6552c0f7e868dda1dffeb9ae572b8b7 (diff) | |
download | dabmux-14f69f9c915cf644147a52b803d79ff8f40a4ea1.tar.gz dabmux-14f69f9c915cf644147a52b803d79ff8f40a4ea1.tar.bz2 dabmux-14f69f9c915cf644147a52b803d79ff8f40a4ea1.zip |
First prototype taking EDI TIST into account for contribution
Diffstat (limited to 'lib/edi/common.hpp')
-rw-r--r-- | lib/edi/common.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/edi/common.hpp b/lib/edi/common.hpp index 1433004..887bc3d 100644 --- a/lib/edi/common.hpp +++ b/lib/edi/common.hpp @@ -23,6 +23,7 @@ #include "PFT.hpp" #include <functional> #include <map> +#include <chrono> #include <string> #include <vector> #include <cstddef> @@ -33,9 +34,12 @@ namespace EdiDecoder { struct frame_timestamp_t { uint32_t seconds = 0; uint32_t utco = 0; + uint32_t tsta = 0; // According to EN 300 797 Annex B + bool valid() const; std::string to_string() const; time_t to_unix_epoch() const; + std::chrono::system_clock::time_point to_system_clock() const; }; struct decode_state_t { |