summaryrefslogtreecommitdiffstats
path: root/data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-07-09 16:09:18 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-09 16:09:18 +0200
commit903a15fc26e225c2559c98eba362e29f09de3d2c (patch)
tree5680b3c68a728df86092a5b8a4756625724025c3 /data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp
import source code of Vovida GSML project (from www.vovida.org)HEADgsml-1_0master
This is the source code as it was published on vovida.org a couple of years ago. The filename was gsml-1_0.tar.bz2
Diffstat (limited to 'data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp')
-rw-r--r--data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp b/data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp
new file mode 100644
index 0000000..03e2a7c
--- /dev/null
+++ b/data/mnet/GP10/Host/Rlc_mac/src/ieMAIO.cpp
@@ -0,0 +1,58 @@
+// *******************************************************************
+//
+// (c) Copyright Cisco 2000
+// All Rights Reserved
+//
+// *******************************************************************
+
+// *******************************************************************
+//
+// File : ieMAIO.cpp
+// Author(s) : Tim Olson
+// Create Date : 6/5/2000
+// Description :
+//
+// *******************************************************************
+
+#include "ieMAIO.h"
+#include "logging\vclogging.h"
+#include "logging\vcmodules.h"
+
+// *******************************************************************
+// class IeMAIO
+//
+// Description:
+// MAIO IE -- GSM04.60 12.8
+// *******************************************************************
+RlcMacResult IeMAIO::EncodeIe(BitStreamOut &dataStream)
+{
+ DBG_FUNC("IeMAIO::EncodeIe", RLC_MAC);
+ DBG_ENTER();
+
+ RlcMacResult result = RLC_MAC_SUCCESS;
+
+ // Pack MAIO bits into the output bit stream.
+ if (isValid)
+ {
+ dataStream.InsertBits8(maio, 7);
+ }
+ else
+ {
+ result = RLC_MAC_INVALID_IE;
+ DBG_ERROR("IeMAIO::EncodeIe MAIO not valid\n");
+ }
+
+ DBG_LEAVE();
+ return (result);
+}
+
+
+void IeMAIO::DisplayDetails(DbgOutput *outObj)
+{
+ if (isValid)
+ {
+ outObj->Trace("\tMAIO ---> %d\n", maio);
+ }
+}
+
+