HDLC-Daemon
FrameGenerator.h
Go to the documentation of this file.
1 
37 #ifndef HDLC_FRAME_GENERATOR_H
38 #define HDLC_FRAME_GENERATOR_H
39 
40 #include <vector>
41 #include "HdlcFrame.h"
42 
44 public:
45  static const std::vector<unsigned char> SerializeFrame(const HdlcFrame& a_HdlcFrame);
46  static std::vector<unsigned char> EscapeFrame(const std::vector<unsigned char> &a_HDLCFrame);
47 
48 private:
49  // Internal Helpers
50  static void ApplyFCS(std::vector<unsigned char> &a_HDLCFrame);
51 };
52 
53 #endif // HDLC_FRAME_GENERATOR_H
static std::vector< unsigned char > EscapeFrame(const std::vector< unsigned char > &a_HDLCFrame)
static const std::vector< unsigned char > SerializeFrame(const HdlcFrame &a_HdlcFrame)
Copyright (c) 2016, Florian Evers, florian-evers@gmx.de All rights reserved.