summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/AFPacket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-06 14:06:22 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 21:39:36 +0200
commit6efd2aec302c119f7e88b677d0d1bedf99e8cad9 (patch)
treebab869320067a43da58e549b31b198d7dbee4087 /src/dabOutput/edi/AFPacket.h
parent05da854addac962e20ff9f1e7bdad3cbacb66905 (diff)
downloaddabmux-6efd2aec302c119f7e88b677d0d1bedf99e8cad9.tar.gz
dabmux-6efd2aec302c119f7e88b677d0d1bedf99e8cad9.tar.bz2
dabmux-6efd2aec302c119f7e88b677d0d1bedf99e8cad9.zip
add AFPacket generator
Diffstat (limited to 'src/dabOutput/edi/AFPacket.h')
-rw-r--r--src/dabOutput/edi/AFPacket.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dabOutput/edi/AFPacket.h b/src/dabOutput/edi/AFPacket.h
index c4f33bf..1fd0d16 100644
--- a/src/dabOutput/edi/AFPacket.h
+++ b/src/dabOutput/edi/AFPacket.h
@@ -49,11 +49,13 @@ class AFPacket
public:
AFPacket();
- std::vector<uint8_t> Assemble();
+ std::vector<uint8_t> Assemble(char protocol_type, std::vector<uint8_t> payload);
private:
+ static const bool have_crc = true;
+
AFHeader header;
- std::vector<uint8_t> packet_;
+ uint16_t seq; //counter that overflows at 0xFFFF
};
#endif