From 7c8ae25ba83fc658dfbe4cd468bb1bdfd3513c74 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 13 Jan 2017 16:15:57 +0100 Subject: Integrate timestampdecoder into EDI input --- src/TimestampDecoder.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/TimestampDecoder.cpp') diff --git a/src/TimestampDecoder.cpp b/src/TimestampDecoder.cpp index 5f93407..42d53ab 100644 --- a/src/TimestampDecoder.cpp +++ b/src/TimestampDecoder.cpp @@ -2,7 +2,7 @@ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2014, 2015 + Copyright (C) 2017 Matthias P. Braendli, matthias.braendli@mpb.li http://opendigitalradio.org @@ -197,6 +197,16 @@ void TimestampDecoder::updateTimestampEti( latestFCT = fct; } +void TimestampDecoder::updateTimestampEdi( + uint32_t seconds_utc, + uint32_t pps, // In units of 1/16384000 s + int32_t fct) +{ + updateTimestampPPS(pps); + time_secs = seconds_utc; + latestFCT = fct; +} + void TimestampDecoder::set_parameter( const std::string& parameter, const std::string& value) -- cgit v1.2.3