blob: a44e920cca3c01ce51b434d3e44a0b40d51cbee4 (
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
|
// *******************************************************************
//
// (c) Copyright Cisco 2000
// All Rights Reserved
//
// *******************************************************************
// *******************************************************************
//
// File : iePO.cpp
// Author(s) : Tim Olson
// Create Date : 6/5/2000
// Description :
//
// *******************************************************************
#include "iePO.h"
#include "logging\vclogging.h"
#include "logging\vcmodules.h"
// *******************************************************************
// class IePO
//
// Description:
// PO IE -- GSM04.60 11.2.29
// *******************************************************************
RlcMacResult IePO::EncodeIe(BitStreamOut &dataStream)
{
DBG_FUNC("IePO::EncodeIe", RLC_MAC);
DBG_ENTER();
RlcMacResult result = RLC_MAC_SUCCESS;
// Pack PO bits into the output bit stream.
if (isValid)
{
dataStream.InsertBits8(po, 4);
}
else
{
result = RLC_MAC_INVALID_IE;
DBG_ERROR("IePO::EncodeIe PO not valid\n");
}
DBG_LEAVE();
return (result);
}
void IePO::DisplayDetails(DbgOutput *outObj)
{
if (isValid)
{
outObj->Trace("\tPO ---> %d dB\n", po*2);
}
}
|