A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-control-messages.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Giuseppe Piro <g.piro@poliba.it>
7 * Marco Miozzo <marco.miozzo@cttc.es>
8 */
9
11
12#include "ns3/address-utils.h"
13#include "ns3/log.h"
14#include "ns3/uinteger.h"
15
16namespace ns3
17{
18
19NS_LOG_COMPONENT_DEFINE("LteControlMessage");
20
24
28
29void
34
40
41// ----------------------------------------------------------------------------------------------------------
42
47
51
52void
57
63
64// ----------------------------------------------------------------------------------------------------------
65
70
74
75void
80
86
87// ----------------------------------------------------------------------------------------------------------
88
93
97
98void
103
109
110// ----------------------------------------------------------------------------------------------------------
111
116
120
121void
126
129{
130 return m_bsr;
131}
132
133// ----------------------------------------------------------------------------------------------------------
134
139
140void
145
151
152// ----------------------------------------------------------------------------------------------------------
153
158
159void
161{
162 m_raRnti = raRnti;
163}
164
165uint16_t
167{
168 return m_raRnti;
169}
170
171void
173{
174 m_rarList.push_back(rar);
175}
176
177std::list<RarLteControlMessage::Rar>::const_iterator
179{
180 return m_rarList.begin();
181}
182
183std::list<RarLteControlMessage::Rar>::const_iterator
185{
186 return m_rarList.end();
187}
188
189// ----------------------------------------------------------------------------------------------------------
190
195
196void
201
204{
205 return m_mib;
206}
207
208// ----------------------------------------------------------------------------------------------------------
209
214
215void
220
223{
224 return m_sib1;
225}
226
227// ---------------------------------------------------------------------------
228
233
237
238void
243
249
250} // namespace ns3
MacCeListElement_s m_bsr
BSR.
MacCeListElement_s GetBsr()
Get BSR information.
void SetBsr(MacCeListElement_s bsr)
add a BSR feedback record into the message.
CqiListElement_s m_dlCqi
DL CQI.
void SetDlCqi(CqiListElement_s dlcqi)
add a DL-CQI feedback record into the message.
CqiListElement_s GetDlCqi()
Get DL cqi information.
const DlDciListElement_s & GetDci()
Get dic information.
void SetDci(DlDciListElement_s dci)
add a DCI into the message
void SetDlHarqFeedback(DlInfoListElement_s m)
add a DL HARQ feedback record into the message.
DlInfoListElement_s GetDlHarqFeedback()
Get DL HARQ information.
DlInfoListElement_s m_dlInfoListElement
DL info list element.
MessageType GetMessageType()
Get the type of the message.
MessageType m_type
message type
MessageType
The type of the message NOTE: The messages sent by UE are filtered by the LteEnbPhy::ReceiveLteContro...
void SetMessageType(MessageType type)
Set the type of the message.
MibLteControlMessage()
Create a new instance of MIB control message.
void SetMib(LteRrcSap::MasterInformationBlock mib)
Replace the MIB content of this control message.
LteRrcSap::MasterInformationBlock m_mib
MIB.
LteRrcSap::MasterInformationBlock GetMib() const
Retrieve the MIB content from this control message.
void SetRapId(uint32_t rapid)
Set the Random Access Preamble Identifier (RAPID), see 3GPP TS 36.321 6.2.2.
std::list< Rar >::const_iterator RarListEnd() const
std::list< Rar >::const_iterator RarListBegin() const
std::list< Rar > m_rarList
RAR list.
void SetRaRnti(uint16_t raRnti)
void AddRar(Rar rar)
add a RAR to the MAC PDU, see 3GPP TS 36.321 6.2.3
void SetSib1(LteRrcSap::SystemInformationBlockType1 sib1)
Replace the SIB1 content of this control message.
LteRrcSap::SystemInformationBlockType1 m_sib1
SIB1.
LteRrcSap::SystemInformationBlockType1 GetSib1() const
Retrieve the SIB1 content from this control message.
Sib1LteControlMessage()
Create a new instance of SIB1 control message.
void SetDci(UlDciListElement_s dci)
add a DCI into the message
const UlDciListElement_s & GetDci()
Get dic information.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
Every class exported by the ns3 library is enclosed in the ns3 namespace.
See section 4.3.24 cqiListElement.
See section 4.3.1 dlDciListElement.
See section 4.3.23 dlInfoListElement.
MasterInformationBlock structure.
SystemInformationBlockType1 structure.
See section 4.3.14 macCEListElement.
a MAC RAR and the corresponding RAPID subheader
See section 4.3.2 ulDciListElement.