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>
65 virtual ~LteEnbPhy ();
68 static TypeId GetTypeId (
void);
260 void DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth);
261 void DoSetEarfcn (uint16_t dlEarfcn, uint16_t ulEarfcn);
262 void DoAddUe (uint16_t rnti);
263 void DoRemoveUe (uint16_t rnti);
264 void DoSetTransmissionMode (uint16_t rnti, uint8_t txMode);
265 void DoSetSrsConfigurationIndex (uint16_t rnti, uint16_t srcCi);
271 uint8_t DoGetMacChTtiDelay ();
273 bool AddUePhy (uint16_t rnti);
275 bool DeleteUePhy (uint16_t rnti);
277 void CreateSrsReport(uint16_t rnti,
double srs);
280 std::set <uint16_t> m_ueAttached;
282 std::vector <int> m_listOfDownlinkSubchannel;
284 std::vector <int> m_dlDataRbMap;
286 std::vector< std::list<UlDciLteControlMessage> > m_ulDciQueue;
295 uint32_t m_nrSubFrames;
297 uint16_t m_srsPeriodicity;
299 std::map <uint16_t,uint16_t> m_srsCounter;
300 std::vector <uint16_t> m_srsUeOffset;
301 uint16_t m_currentSrsOffset;
312 uint16_t m_srsSamplePeriod;
313 std::map <uint16_t,uint16_t> m_srsSampleCounterMap;
321 uint16_t m_interferenceSamplePeriod;
322 uint16_t m_interferenceSampleCounter;
smart pointer class similar to boost::intrusive_ptr
void SetDownlinkSubChannels(std::vector< int > mask)
set the resource blocks (a.k.a. sub channels) to be used in the downlink for transmission ...
void CalcChannelQualityForUe(std::vector< double > sinr, Ptr< LteSpectrumPhy > ue)
Calculate the channel quality for a given UE.
std::list< UlDciLteControlMessage > DequeueUlDci(void)
virtual void ReceiveLteControlMessageList(std::list< Ptr< LteControlMessage > >)
PhySpectrum received a new list of LteControlMessage.
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()
Create the PSD for TX.
TracedCallback< uint16_t, uint16_t, double > m_reportUeSinr
See section 4.3.12 ulInfoListElement.
double GetNoiseFigure() const
void SetMacChDelay(uint8_t delay)
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
virtual void DoInitialize(void)
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)
Ptr< LteSpectrumPhy > GetDlSpectrumPhy() const
virtual void ReceiveLteUlHarqFeedback(UlInfoListElement_s mes)
PhySpectrum generated a new UL HARQ feedback.
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Receive the control message.
void StartSubFrame(void)
Start a LTE sub frame.
virtual void ReportInterference(const SpectrumValue &interf)
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.
void SetTxPower(double pow)
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...
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)
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)
TracedCallback< uint16_t, Ptr< SpectrumValue > > m_reportInterferenceTrace
void SendDataChannels(Ptr< PacketBurst > pb)
Send the PDSCH.
virtual void ReportRsReceivedPower(const SpectrumValue &interf)
Set of values corresponding to a given SpectrumModel.
virtual void DoDispose(void)
void PhyPduReceived(Ptr< Packet > p)
PhySpectrum received a new PHY-PDU.
Ptr< LteSpectrumPhy > GetUlSpectrumPhy() const
a unique identifier for an interface.
uint8_t GetMacChDelay(void) const
void SetLteEnbCphySapUser(LteEnbCphySapUser *s)
Set the CPHY SAP User.
TracedCallback< PhyTransmissionStatParameters > m_dlPhyTransmission
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.