blob: efa8f40bec6dea9c47e54f56c060b28633f3d75b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// *******************************************************************
//
// (c) Copyright Cisco 2000
// All Rights Reserved
//
// *******************************************************************
// *******************************************************************
//
// File : ieRLCBlocksGranted.cpp
// Author(s) : Tim Olson
// Create Date : 6/5/2000
// Description :
//
// *******************************************************************
#include "ieRLCBlocksGranted.h"
#include "logging\vclogging.h"
#include "logging\vcmodules.h"
// *******************************************************************
// class IeRLCBlocksGranted
//
// Description:
// RLC Blocks Granted IE -- GSM04.60 11.2.29
//
// *******************************************************************
RlcMacResult IeRLCBlocksGranted::EncodeIe(BitStreamOut &dataStream)
{
DBG_FUNC("IeRLCBlocksGranted::EncodeIe", RLC_MAC);
DBG_ENTER();
RlcMacResult result = RLC_MAC_SUCCESS;
// Pack RLC Blocks Granted bits into the output bit stream.
if (isValid)
{
dataStream.InsertBits8(rlcBlocksGranted, 8);
}
else
{
result = RLC_MAC_INVALID_IE;
DBG_ERROR("IeRLCBlocksGranted::EncodeIe RLC Blocks Granted not valid\n");
}
DBG_LEAVE();
return (result);
}
void IeRLCBlocksGranted::DisplayDetails(DbgOutput *outObj)
{
if (isValid)
{
outObj->Trace("\tRLC Blocks Granted ---> %#x\n", rlcBlocksGranted);
}
}
|