summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/AFPacket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-23 17:56:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-23 17:56:12 +0100
commit0f158ac9c63c6770cea423c8486a5ff192b36366 (patch)
tree7cd646cd32aa7f5fd099ef4923e04899fa29a99f /src/dabOutput/edi/AFPacket.cpp
parente473f5183a1146d76940e9bfe7e3d76bbfe7baca (diff)
downloaddabmux-0f158ac9c63c6770cea423c8486a5ff192b36366.tar.gz
dabmux-0f158ac9c63c6770cea423c8486a5ff192b36366.tar.bz2
dabmux-0f158ac9c63c6770cea423c8486a5ff192b36366.zip
Create namespace for EDI
Diffstat (limited to 'src/dabOutput/edi/AFPacket.cpp')
-rw-r--r--src/dabOutput/edi/AFPacket.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dabOutput/edi/AFPacket.cpp b/src/dabOutput/edi/AFPacket.cpp
index 509c3a6..a58a980 100644
--- a/src/dabOutput/edi/AFPacket.cpp
+++ b/src/dabOutput/edi/AFPacket.cpp
@@ -37,11 +37,13 @@
#include <stdint.h>
#include <arpa/inet.h>
+namespace edi {
+
// Header PT field. AF packet contains TAG payload
-#define AFHEADER_PT_TAG 'T'
+const uint8_t AFHEADER_PT_TAG = 'T';
// AF Packet Major (3 bits) and Minor (4 bits) version
-#define AFHEADER_VERSION 0x10 // MAJ=1, MIN=0
+const uint8_t AFHEADER_VERSION = 0x10; // MAJ=1, MIN=0
AFPacket AFPacketiser::Assemble(TagPacket tag_packet)
{
@@ -91,3 +93,4 @@ AFPacket AFPacketiser::Assemble(TagPacket tag_packet)
return packet;
}
+}