A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-ue-cmac-sap.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Nicola Baldo <nbaldo@cttc.es>
18
*/
19
20
#ifndef LTE_UE_CMAC_SAP_H
21
#define LTE_UE_CMAC_SAP_H
22
23
#include <ns3/packet.h>
24
25
namespace
ns3
26
{
27
28
class
LteMacSapUser;
29
36
class
LteUeCmacSapProvider
37
{
38
public
:
39
virtual
~LteUeCmacSapProvider
();
40
42
struct
RachConfig
43
{
44
uint8_t
numberOfRaPreambles
;
45
uint8_t
preambleTransMax
;
46
uint8_t
raResponseWindowSize
;
47
uint8_t
connEstFailCount
;
48
};
49
55
virtual
void
ConfigureRach
(
RachConfig
rc
) = 0;
56
62
virtual
void
StartContentionBasedRandomAccessProcedure
() = 0;
63
72
virtual
void
StartNonContentionBasedRandomAccessProcedure
(uint16_t rnti,
73
uint8_t rapId,
74
uint8_t prachMask) = 0;
75
77
struct
LogicalChannelConfig
78
{
79
uint8_t
priority
;
80
uint16_t
prioritizedBitRateKbps
;
81
uint16_t
bucketSizeDurationMs
;
82
uint8_t
logicalChannelGroup
;
83
};
84
92
virtual
void
AddLc
(uint8_t lcId,
LogicalChannelConfig
lcConfig,
LteMacSapUser
* msu) = 0;
93
99
virtual
void
RemoveLc
(uint8_t lcId) = 0;
100
105
virtual
void
Reset
() = 0;
106
111
virtual
void
SetRnti
(uint16_t rnti) = 0;
112
117
virtual
void
NotifyConnectionSuccessful
() = 0;
118
123
virtual
void
SetImsi
(uint64_t imsi) = 0;
124
};
125
132
class
LteUeCmacSapUser
133
{
134
public
:
135
virtual
~LteUeCmacSapUser
();
136
142
virtual
void
SetTemporaryCellRnti
(uint16_t rnti) = 0;
143
148
virtual
void
NotifyRandomAccessSuccessful
() = 0;
149
154
virtual
void
NotifyRandomAccessFailed
() = 0;
155
};
156
157
}
// namespace ns3
158
159
#endif
// LTE_UE_CMAC_SAP_H
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:96
ns3::LteUeCmacSapProvider
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
Definition:
lte-ue-cmac-sap.h:37
ns3::LteUeCmacSapProvider::NotifyConnectionSuccessful
virtual void NotifyConnectionSuccessful()=0
Notify MAC about the successful RRC connection establishment.
ns3::LteUeCmacSapProvider::SetRnti
virtual void SetRnti(uint16_t rnti)=0
ns3::LteUeCmacSapProvider::~LteUeCmacSapProvider
virtual ~LteUeCmacSapProvider()
Definition:
lte-ue-cmac-sap.cc:25
ns3::LteUeCmacSapProvider::RemoveLc
virtual void RemoveLc(uint8_t lcId)=0
remove an existing LC
ns3::LteUeCmacSapProvider::AddLc
virtual void AddLc(uint8_t lcId, LogicalChannelConfig lcConfig, LteMacSapUser *msu)=0
add a new Logical Channel (LC)
ns3::LteUeCmacSapProvider::SetImsi
virtual void SetImsi(uint64_t imsi)=0
A method call by UE RRC to communicate the IMSI to the UE MAC.
ns3::LteUeCmacSapProvider::ConfigureRach
virtual void ConfigureRach(RachConfig rc)=0
Configure RACH function.
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::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::LteUeCmacSapProvider::Reset
virtual void Reset()=0
reset the MAC
ns3::LteUeCmacSapUser
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
Definition:
lte-ue-cmac-sap.h:133
ns3::LteUeCmacSapUser::NotifyRandomAccessFailed
virtual void NotifyRandomAccessFailed()=0
Notify the RRC that the MAC Random Access procedure failed.
ns3::LteUeCmacSapUser::NotifyRandomAccessSuccessful
virtual void NotifyRandomAccessSuccessful()=0
Notify the RRC that the MAC Random Access procedure completed successfully.
ns3::LteUeCmacSapUser::~LteUeCmacSapUser
virtual ~LteUeCmacSapUser()
Definition:
lte-ue-cmac-sap.cc:29
ns3::LteUeCmacSapUser::SetTemporaryCellRnti
virtual void SetTemporaryCellRnti(uint16_t rnti)=0
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.rc
rc
Definition:
two-ray-to-three-gpp-ch-calibration.py:570
ns3::LteUeCmacSapProvider::LogicalChannelConfig
LogicalChannelConfig structure.
Definition:
lte-ue-cmac-sap.h:78
ns3::LteUeCmacSapProvider::LogicalChannelConfig::prioritizedBitRateKbps
uint16_t prioritizedBitRateKbps
prioritize bit rate Kbps
Definition:
lte-ue-cmac-sap.h:80
ns3::LteUeCmacSapProvider::LogicalChannelConfig::bucketSizeDurationMs
uint16_t bucketSizeDurationMs
bucket size duration ms
Definition:
lte-ue-cmac-sap.h:81
ns3::LteUeCmacSapProvider::LogicalChannelConfig::priority
uint8_t priority
priority
Definition:
lte-ue-cmac-sap.h:79
ns3::LteUeCmacSapProvider::LogicalChannelConfig::logicalChannelGroup
uint8_t logicalChannelGroup
logical channel group
Definition:
lte-ue-cmac-sap.h:82
ns3::LteUeCmacSapProvider::RachConfig
RachConfig structure.
Definition:
lte-ue-cmac-sap.h:43
ns3::LteUeCmacSapProvider::RachConfig::raResponseWindowSize
uint8_t raResponseWindowSize
RA response window size.
Definition:
lte-ue-cmac-sap.h:46
ns3::LteUeCmacSapProvider::RachConfig::connEstFailCount
uint8_t connEstFailCount
the counter value for T300 timer expiration
Definition:
lte-ue-cmac-sap.h:47
ns3::LteUeCmacSapProvider::RachConfig::preambleTransMax
uint8_t preambleTransMax
preamble transmit maximum
Definition:
lte-ue-cmac-sap.h:45
ns3::LteUeCmacSapProvider::RachConfig::numberOfRaPreambles
uint8_t numberOfRaPreambles
number of RA preambles
Definition:
lte-ue-cmac-sap.h:44
src
lte
model
lte-ue-cmac-sap.h
Generated on Sun Mar 3 2024 17:11:03 for ns-3 by
1.9.1