26 #include <ns3/lte-control-messages.h>
27 #include <ns3/lte-enb-phy-sap.h>
28 #include <ns3/lte-enb-cphy-sap.h>
29 #include <ns3/lte-phy.h>
30 #include <ns3/lte-harq-phy.h>
263 void DoSetEarfcn (uint16_t dlEarfcn, uint16_t ulEarfcn);
Template for the implementation of the LteEnbCphySapProvider as a member of an owner class of type C ...
keep track of time values and allow control of global simulation resolution
smart pointer class similar to boost::intrusive_ptr
uint16_t m_interferenceSampleCounter
uint16_t m_srsSamplePeriod
void SetDownlinkSubChannels(std::vector< int > mask)
set the resource blocks (a.k.a.
void CalcChannelQualityForUe(std::vector< double > sinr, Ptr< LteSpectrumPhy > ue)
Calculate the channel quality for a given UE.
The Uplink Data Control Indicator messages defines the RB allocation for the users in the uplink...
bool DeleteUePhy(uint16_t rnti)
std::list< UlDciLteControlMessage > DequeueUlDci(void)
virtual void ReceiveLteControlMessageList(std::list< Ptr< LteControlMessage > >)
PhySpectrum received a new list of LteControlMessage.
void DoSendLteControlMessage(Ptr< LteControlMessage > msg)
virtual void ReportRsReceivedPower(const SpectrumValue &power)
generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for ...
void DoSetSystemInformationBlockType1(LteRrcSap::SystemInformationBlockType1 sib1)
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()
Create the PSD for TX.
std::vector< std::list< UlDciLteControlMessage > > m_ulDciQueue
TracedCallback< uint16_t, uint16_t, double > m_reportUeSinr
Trace reporting the linear average of SRS SINRs uint16_t cellId, uint16_t rnti, double sinrLinear...
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
Service Access Point (SAP) offered by the eNB-PHY to the eNB-MAC.
See section 4.3.12 ulInfoListElement.
std::vector< int > m_dlDataRbMap
std::map< uint16_t, uint16_t > m_srsCounter
Service Access Point (SAP) offered by the eNB-PHY to the eNB-MAC.
void DoSetEarfcn(uint16_t dlEarfcn, uint16_t ulEarfcn)
LteEnbPhySapUser * m_enbPhySapUser
std::vector< int > m_listOfDownlinkSubchannel
double GetNoiseFigure() const
void CreateSrsReport(uint16_t rnti, double srs)
void SetMacChDelay(uint8_t delay)
static TypeId GetTypeId(void)
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Ctrl frame
LteEnbCphySapProvider * m_enbCphySapProvider
void DoSetMasterInformationBlock(LteRrcSap::MasterInformationBlock mib)
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs) ...
Ptr< LteHarqPhy > m_harqPhyModule
Ptr< LteSpectrumPhy > GetDlSpectrumPhy() const
std::map< uint16_t, uint16_t > m_srsSampleCounterMap
virtual void ReceiveLteUlHarqFeedback(UlInfoListElement_s mes)
PhySpectrum generated a new UL HARQ feedback.
void SetHarqPhyModule(Ptr< LteHarqPhy > harq)
uint16_t m_interferenceSamplePeriod
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Receive the control message.
void StartSubFrame(void)
Start a LTE sub frame.
bool AddUePhy(uint16_t rnti)
virtual void ReportInterference(const SpectrumValue &interf)
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
void DoSetBandwidth(uint8_t ulBandwidth, uint8_t dlBandwidth)
void SendControlChannels(std::list< Ptr< LteControlMessage > > ctrlMsgList)
Send the PDCCH and PCFICH in the first 3 symbols.
double GetTxPower() const
LteEnbPhySapProvider * GetLteEnbPhySapProvider()
Get the PHY SAP provider.
LteRrcSap::MasterInformationBlock m_mib
void DoRemoveUe(uint16_t rnti)
LteEnbPhySapProvider * m_enbPhySapProvider
uint16_t m_currentSrsOffset
void SetTxPower(double pow)
void DoAddUe(uint16_t rnti)
LteEnbCphySapProvider * GetLteEnbCphySapProvider()
Get the CPHY SAP provider.
FfMacSchedSapProvider::SchedUlCqiInfoReqParameters CreatePuschCqiReport(const SpectrumValue &sinr)
Create the UL CQI feedback from SINR values perceived at the physical layer with the PUSCH signal rec...
LteEnbCphySapUser * m_enbCphySapUser
uint8_t DoGetMacChTtiDelay()
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
void DoSetSrsConfigurationIndex(uint16_t rnti, uint16_t srcCi)
void SetNoiseFigure(double pow)
void SetLteEnbPhySapUser(LteEnbPhySapUser *s)
Set the PHY SAP User.
void StartFrame(void)
Start a LTE frame.
std::vector< int > GetDownlinkSubChannels(void)
std::vector< uint16_t > m_srsUeOffset
void DoSetTransmissionMode(uint16_t rnti, uint8_t txMode)
FfMacSchedSapProvider::SchedUlCqiInfoReqParameters CreateSrsCqiReport(const SpectrumValue &sinr)
Create the UL CQI feedback from SINR values perceived at the physical layer with the SRS signal recei...
void QueueUlDci(UlDciLteControlMessage m)
LteRrcSap::SystemInformationBlockType1 m_sib1
LteEnbPhy models the physical layer for the eNodeB.
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes.
TracedCallback< uint16_t, Ptr< SpectrumValue > > m_reportInterferenceTrace
Trace reporting the interference per PHY RB (TS 36.214 section 5.2.2, measured on DATA) uint16_t cell...
void SendDataChannels(Ptr< PacketBurst > pb)
Send the PDSCH.
Set of values corresponding to a given SpectrumModel.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
void PhyPduReceived(Ptr< Packet > p)
PhySpectrum received a new PHY-PDU.
std::set< uint16_t > m_ueAttached
Ptr< LteSpectrumPhy > GetUlSpectrumPhy() const
a unique identifier for an interface.
uint8_t GetMacChDelay(void) const
void SetLteEnbCphySapUser(LteEnbCphySapUser *s)
Set the CPHY SAP User.
The LtePhy models the physical layer of LTE.
TracedCallback< PhyTransmissionStatParameters > m_dlPhyTransmission
Trace information regarding PHY stats from UL Tx perspective PhyTrasmissionStatParameters see lte-com...
uint16_t m_srsPeriodicity
void EndFrame(void)
End a LTE frame.
void DoSendMacPdu(Ptr< Packet > p)
Queue the MAC PDU to be sent (according to m_macChTtiDelay)
void EndSubFrame(void)
End a LTE sub frame.