A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-pdcp.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Manuel Requena <manuel.requena@cttc.es>
19
*/
20
21
#ifndef LTE_PDCP_H
22
#define LTE_PDCP_H
23
24
#include "ns3/traced-value.h"
25
#include "ns3/trace-source-accessor.h"
26
27
#include "ns3/object.h"
28
29
#include "ns3/lte-pdcp-sap.h"
30
#include "ns3/lte-rlc-sap.h"
31
32
namespace
ns3 {
33
37
class
LtePdcp
:
public
Object
// SimpleRefCount<LtePdcp>
38
{
39
friend
class
LtePdcpSpecificLteRlcSapUser
;
40
friend
class
LtePdcpSpecificLtePdcpSapProvider
<
LtePdcp
>;
41
public
:
42
LtePdcp
();
43
virtual
~LtePdcp
();
44
static
TypeId
GetTypeId
(
void
);
45
46
void
Start
();
47
53
void
SetRnti
(uint16_t rnti);
54
60
void
SetLcId
(uint8_t lcId);
61
67
void
SetLtePdcpSapUser
(
LtePdcpSapUser
* s);
68
74
LtePdcpSapProvider
*
GetLtePdcpSapProvider
();
75
81
void
SetLteRlcSapProvider
(
LteRlcSapProvider
* s);
82
88
LteRlcSapUser
*
GetLteRlcSapUser
();
89
90
91
protected
:
92
// Interface provided to upper RRC entity
93
virtual
void
DoTransmitRrcPdu
(
Ptr<Packet>
p);
94
95
LtePdcpSapUser
*
m_pdcpSapUser
;
96
LtePdcpSapProvider
*
m_pdcpSapProvider
;
97
98
// Interface provided to lower RLC entity
99
virtual
void
DoReceivePdu
(
Ptr<Packet>
p);
100
101
LteRlcSapUser
*
m_rlcSapUser
;
102
LteRlcSapProvider
*
m_rlcSapProvider
;
103
104
uint16_t
m_rnti
;
105
uint8_t
m_lcid
;
106
111
TracedCallback<uint16_t, uint8_t, uint32_t>
m_txPdu
;
116
TracedCallback<uint16_t, uint8_t, uint32_t, uint64_t>
m_rxPdu
;
117
118
private
:
122
uint16_t
m_txSequenceNumber
;
123
uint16_t
m_rxSequenceNumber
;
124
128
static
const
uint16_t
m_maxPdcpSn
= 4095;
129
130
};
131
132
133
}
// namespace ns3
134
135
#endif // LTE_PDCP_H
src
lte
model
lte-pdcp.h
Generated on Fri Dec 21 2012 19:00:39 for ns-3 by
1.8.1.2