5#include "nr-control-messages.h"
12NS_LOG_COMPONENT_DEFINE(
"nrControlMessage");
16 NS_LOG_FUNCTION(
this);
21 NS_LOG_FUNCTION(
this);
45 NS_ABORT_IF(m_bwpId < 0);
46 return static_cast<uint16_t
>(m_bwpId);
51 NS_LOG_FUNCTION(
this);
57 NS_LOG_FUNCTION(
this);
73 : m_dciInfoElement(dci)
75 NS_LOG_FUNCTION(
this);
81 NS_LOG_FUNCTION(
this);
84std::shared_ptr<DciInfoElementTdma>
87 return m_dciInfoElement;
115 : m_dciInfoElement(dci)
117 NS_LOG_FUNCTION(
this);
123 NS_LOG_FUNCTION(
this);
126std::shared_ptr<DciInfoElementTdma>
129 return m_dciInfoElement;
146 NS_LOG_FUNCTION(
this);
152 NS_LOG_FUNCTION(
this);
277 m_rarList.push_back(rar);
280std::list<NrRarMessage::Rar>::const_iterator
283 return m_rarList.begin();
286std::list<NrRarMessage::Rar>::const_iterator
289 return m_rarList.end();
NrBsrMessage()
NrBsrMessage constructor.
MacCeElement GetBsr()
Get BSR information.
void SetBsr(MacCeElement bsr)
add a BSR feedback record into the message.
~NrBsrMessage() override
~NrBsrMessage
virtual ~NrControlMessage()
~NrControlMessage
void SetSourceBwp(uint16_t bwpId)
Set the BWP in which this message has been generated.
messageType GetMessageType() const
Get the MessageType.
uint16_t GetSourceBwp() const
NrControlMessage()
NrControlMessage.
void SetMessageType(messageType type)
Set the MessageType.
messageType
The Message Type.
@ UL_DCI
The resources allocation map from the BS to the attached UEs (UL)
@ DL_HARQ
DL HARQ feedback.
@ RACH_PREAMBLE
Random Access Preamble.
@ MIB
Master Information Block.
@ SR
Scheduling Request: asking for space.
@ BSR
Buffer Status Report.
@ RAR
Random Access Response.
@ SIB1
System Information Block Type 1.
@ DL_DCI
The resources allocation map from the BS to the attached UEs (DL)
DlCqiInfo GetDlCqi()
Get the DlCqi in this message.
void SetDlCqi(DlCqiInfo cqi)
Set the DlCqi to transmit.
~NrDlCqiMessage() override
~NrDlCqiMessage
NrDlCqiMessage()
NrDlCqiMessage constructor.
std::shared_ptr< DciInfoElementTdma > GetDciInfoElement()
Get the DCI.
void SetK1Delay(uint32_t delay)
Set the delay (in slots) between DL Data reception and subframe to which it applies for Harq feedback...
~NrDlDciMessage() override
~NrDlDciMessage
uint32_t GetKDelay() const
Get the delay (in slots) between DCI reception and subframe to which it applies for reception/transmi...
NrDlDciMessage(const std::shared_ptr< DciInfoElementTdma > &dci)
NrDlDciMessage constructor.
uint32_t GetK1Delay() const
Get the delay (in slots) between DL Data reception and subframe to which it applies for Harq feedback...
void SetKDelay(uint32_t delay)
Set the delay (in slots) between DL DCI reception and subframe to which it applies for reception/tran...
void SetDlHarqFeedback(DlHarqInfo m)
add a DL HARQ feedback record into the message.
~NrDlHarqFeedbackMessage() override
~NrDlHarqFeedbackMessage
NrDlHarqFeedbackMessage()
NrDlHarqFeedbackMessage constructor.
DlHarqInfo GetDlHarqFeedback()
Get DL HARQ information.
NrMibMessage()
Create a new instance of MIB control message.
NrRrcSap::MasterInformationBlock GetMib() const
Retrieve the MIB content from this control message.
void SetMib(NrRrcSap::MasterInformationBlock mib)
Replace the MIB content of this control message.
NrRachPreambleMessage()
NrRachPreambleMessage constructor.
~NrRachPreambleMessage() override
~NrRachPreambleMessage
void SetRapId(uint32_t rapid)
uint32_t GetRapId() const
std::list< Rar >::const_iterator RarListBegin() const
void SetRaRnti(uint16_t raRnti)
std::list< Rar >::const_iterator RarListEnd() const
NrRarMessage()
NrRarMessage constructor.
~NrRarMessage() override
~NrRarMessage
uint16_t GetRaRnti() const
NrSRMessage()
NrSRMessage constructor.
~NrSRMessage() override
~NrSRMessage
uint16_t GetRNTI() const
Get the RNTI of this message.
void SetRNTI(uint16_t rnti)
Set the RNTI to which this message is intended.
NrSib1Message()
Create a new instance of SIB1 control message.
void SetSib1(NrRrcSap::SystemInformationBlockType1 sib1)
Replace the SIB1 content of this control message.
NrRrcSap::SystemInformationBlockType1 GetSib1() const
Retrieve the SIB1 content from this control message.
NrSrsMessage()
NrDlHarqFeedbackMessage constructor.
NrUlDciMessage(const std::shared_ptr< DciInfoElementTdma > &dci)
NrUlDciMessage constructor.
uint32_t GetKDelay() const
Get the delay (in slots) between UCI reception and subframe to which it applies for reception/transmi...
void SetKDelay(uint32_t delay)
Set the delay (in slots) between UCI reception and subframe to which it applies for reception/transmi...
~NrUlDciMessage() override
~NrUlDciMessage
std::shared_ptr< DciInfoElementTdma > GetDciInfoElement()
Get the DCI.
LteNrTddSlotType
Available TDD slot types. Ordering is important.
@ F
DL CTRL + DL DATA + UL DATA + UL CTRL.
@ S
DL CTRL + DL DATA + UL CTRL.
A struct that contains info for the DL HARQ.
See section 4.3.14 macCEListElement.