diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-28 16:11:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-28 16:11:32 +0200 |
commit | 5d1b6420535c72d7a8df85a5db08ff1c0230690a (patch) | |
tree | f1263f6d67776b884fd484fdb87552a2fa147656 /src/dabOutput/edi | |
parent | a1921a1a967b65c99a830141e9faaecd77b0f317 (diff) | |
download | dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.tar.gz dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.tar.bz2 dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.zip |
Add work in progress odr-zmq2edi
Diffstat (limited to 'src/dabOutput/edi')
-rw-r--r-- | src/dabOutput/edi/TagItems.cpp | 6 | ||||
-rw-r--r-- | src/dabOutput/edi/TagItems.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dabOutput/edi/TagItems.cpp b/src/dabOutput/edi/TagItems.cpp index 75a4ecf..ed8517d 100644 --- a/src/dabOutput/edi/TagItems.cpp +++ b/src/dabOutput/edi/TagItems.cpp @@ -72,8 +72,8 @@ std::vector<uint8_t> TagDETI::Assemble() packet.push_back(0); packet.push_back(0); - uint8_t fct = dflc % 250; - uint8_t fcth = dflc / 250; + uint8_t fct = dlfc % 250; + uint8_t fcth = dlfc / 250; uint16_t detiHeader = fct | (fcth << 8) | (rfudf << 13) | (ficf << 14) | (atstf << 15); @@ -122,7 +122,7 @@ std::vector<uint8_t> TagDETI::Assemble() packet[6] = (taglength >> 8) & 0xFF; packet[7] = taglength & 0xFF; - dflc = (dflc+1) % 5000; + dlfc = (dlfc+1) % 5000; /* std::cerr << "TagItem deti, packet.size " << packet.size() << std::endl; diff --git a/src/dabOutput/edi/TagItems.h b/src/dabOutput/edi/TagItems.h index 856d25b..19284d2 100644 --- a/src/dabOutput/edi/TagItems.h +++ b/src/dabOutput/edi/TagItems.h @@ -64,7 +64,7 @@ class TagDETI : public TagItem uint8_t rfa = 0; uint8_t rfu = 0; // MNSC is valid uint16_t mnsc = 0; - uint16_t dflc = 0; // modulo 5000 frame counter + uint16_t dlfc = 0; // modulo 5000 frame counter // ATST (optional) bool atstf = false; // presence of atst data |