A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
lte-ue-cmac-sap.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: Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
#ifndef LTE_UE_CMAC_SAP_H
22
#define LTE_UE_CMAC_SAP_H
23
24
#include <ns3/packet.h>
25
#include <ns3/ff-mac-common.h>
26
#include <ns3/eps-bearer.h>
27
#include <ns3/lte-common.h>
28
29
namespace
ns3
{
30
31
32
33
class
LteMacSapUser;
34
40
class
LteUeCmacSapProvider
41
{
42
public
:
43
virtual
~LteUeCmacSapProvider
();
44
46
struct
RachConfig
47
{
48
uint8_t
numberOfRaPreambles
;
49
uint8_t
preambleTransMax
;
50
uint8_t
raResponseWindowSize
;
51
};
52
58
virtual
void
ConfigureRach
(
RachConfig
rc) = 0;
59
65
virtual
void
StartContentionBasedRandomAccessProcedure
() = 0;
66
75
virtual
void
StartNonContentionBasedRandomAccessProcedure
(uint16_t rnti, uint8_t rapId, uint8_t prachMask) = 0;
76
77
79
struct
LogicalChannelConfig
80
{
81
uint8_t
priority
;
82
uint16_t
prioritizedBitRateKbps
;
83
uint16_t
bucketSizeDurationMs
;
84
uint8_t
logicalChannelGroup
;
85
};
86
94
virtual
void
AddLc
(uint8_t lcId,
LogicalChannelConfig
lcConfig,
LteMacSapUser
* msu) = 0;
95
101
virtual
void
RemoveLc
(uint8_t lcId) = 0;
102
107
virtual
void
Reset
() = 0;
108
113
virtual
void
SetRnti
(uint16_t rnti) = 0;
114
115
};
116
117
118
124
class
LteUeCmacSapUser
125
{
126
public
:
127
128
virtual
~LteUeCmacSapUser
();
129
135
virtual
void
SetTemporaryCellRnti
(uint16_t rnti) = 0;
136
141
virtual
void
NotifyRandomAccessSuccessful
() = 0;
142
147
virtual
void
NotifyRandomAccessFailed
() = 0;
148
};
149
150
151
152
153
}
// namespace ns3
154
155
156
#endif // LTE_UE_CMAC_SAP_H
ns3::LteUeCmacSapProvider::RachConfig::numberOfRaPreambles
uint8_t numberOfRaPreambles
number of RA preambles
Definition:
lte-ue-cmac-sap.h:48
ns3::LteUeCmacSapProvider::RachConfig::raResponseWindowSize
uint8_t raResponseWindowSize
RA response window size.
Definition:
lte-ue-cmac-sap.h:50
ns3::LteUeCmacSapProvider::RachConfig
RachConfig structure.
Definition:
lte-ue-cmac-sap.h:46
ns3::LteUeCmacSapProvider::LogicalChannelConfig::bucketSizeDurationMs
uint16_t bucketSizeDurationMs
bucket size duration ms
Definition:
lte-ue-cmac-sap.h:83
ns3::LteUeCmacSapProvider::Reset
virtual void Reset()=0
reset the MAC
ns3::LteUeCmacSapProvider::StartContentionBasedRandomAccessProcedure
virtual void StartContentionBasedRandomAccessProcedure()=0
tell the MAC to start a contention-based random access procedure, e.g., to perform RRC connection est...
ns3::LteUeCmacSapProvider::RemoveLc
virtual void RemoveLc(uint8_t lcId)=0
remove an existing LC
ns3::LteUeCmacSapProvider::~LteUeCmacSapProvider
virtual ~LteUeCmacSapProvider()
Definition:
lte-ue-cmac-sap.cc:28
ns3::LteUeCmacSapUser::~LteUeCmacSapUser
virtual ~LteUeCmacSapUser()
Definition:
lte-ue-cmac-sap.cc:32
ns3::LteUeCmacSapUser::SetTemporaryCellRnti
virtual void SetTemporaryCellRnti(uint16_t rnti)=0
ns3::LteUeCmacSapProvider::RachConfig::preambleTransMax
uint8_t preambleTransMax
preamble transmit maximum
Definition:
lte-ue-cmac-sap.h:49
ns3::LteUeCmacSapProvider::LogicalChannelConfig::priority
uint8_t priority
priority
Definition:
lte-ue-cmac-sap.h:81
ns3::LteUeCmacSapProvider
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
Definition:
lte-ue-cmac-sap.h:40
ns3::LteUeCmacSapProvider::LogicalChannelConfig
LogicalChannelConfig structure.
Definition:
lte-ue-cmac-sap.h:79
ns3::LteUeCmacSapUser::NotifyRandomAccessSuccessful
virtual void NotifyRandomAccessSuccessful()=0
Notify the RRC that the MAC Random Access procedure completed successfully.
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteUeCmacSapUser
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
Definition:
lte-ue-cmac-sap.h:124
ns3::LteUeCmacSapProvider::SetRnti
virtual void SetRnti(uint16_t rnti)=0
ns3::LteUeCmacSapProvider::AddLc
virtual void AddLc(uint8_t lcId, LogicalChannelConfig lcConfig, LteMacSapUser *msu)=0
add a new Logical Channel (LC)
ns3::LteUeCmacSapProvider::StartNonContentionBasedRandomAccessProcedure
virtual void StartNonContentionBasedRandomAccessProcedure(uint16_t rnti, uint8_t rapId, uint8_t prachMask)=0
tell the MAC to start a non-contention-based random access procedure, e.g., as a consequence of hando...
ns3::LteUeCmacSapUser::NotifyRandomAccessFailed
virtual void NotifyRandomAccessFailed()=0
Notify the RRC that the MAC Random Access procedure failed.
ns3::LteUeCmacSapProvider::LogicalChannelConfig::prioritizedBitRateKbps
uint16_t prioritizedBitRateKbps
prioritize bit rate Kbps
Definition:
lte-ue-cmac-sap.h:82
ns3::LteMacSapUser
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Definition:
lte-mac-sap.h:95
ns3::LteUeCmacSapProvider::ConfigureRach
virtual void ConfigureRach(RachConfig rc)=0
Configure RACH function.
ns3::LteUeCmacSapProvider::LogicalChannelConfig::logicalChannelGroup
uint8_t logicalChannelGroup
logical channel group
Definition:
lte-ue-cmac-sap.h:84
Generated on Wed Nov 7 2018 10:02:01 for ns-3 by
1.8.14