26 #include <ns3/lte-phy.h> 
   27 #include <ns3/ff-mac-common.h> 
   29 #include <ns3/lte-control-messages.h> 
   30 #include <ns3/lte-amc.h> 
   31 #include <ns3/lte-ue-phy-sap.h> 
   32 #include <ns3/lte-ue-cphy-sap.h> 
   34 #include <ns3/lte-amc.h> 
   36 #include <ns3/lte-ue-power-control.h> 
  277     (uint16_t cellId, uint16_t rnti, 
State oldState, 
State newState);
 
  289     (uint16_t cellId, uint16_t rnti,
 
  290      double rsrp, 
double sinr, uint8_t componentCarrierId);
 
  303     (uint16_t rnti, uint16_t cellId, 
double rsrp, 
double rsrq,
 
  304      bool isServingCell, uint8_t componentCarrierId);
 
double GetNoiseFigure() const 
 
Ptr< LteSpectrumPhy > GetUlSpectrumPhy() const 
 
uint16_t m_srsConfigured
SRS configured. 
 
Simulation virtual time values and global simulation resolution. 
 
UeMemberLteUePhySapProvider class. 
 
Smart pointer class similar to boost::intrusive_ptr. 
 
double pssPsdSum
PSS PSD sum. 
 
virtual void GenerateMixedCqiReport(const SpectrumValue &sinr)
Create the mixed CQI report. 
 
LteUePhySapUser * m_uePhySapUser
UE Phy SAP user. 
 
void SetTxMode5Gain(double gain)
Set transmit mode 5 gain function. 
 
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs) ...
 
std::list< PssElement > m_pssList
PSS list. 
 
void SetTxMode2Gain(double gain)
Set transmit mode 2 gain function. 
 
bool m_ulConfigured
UL configured? 
 
uint8_t GetMacChDelay(void) const 
 
std::vector< int > GetSubChannelsForTransmission(void)
Get a list of sub channels to use in RX. 
 
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Ctrl frame 
 
TracedCallback< uint16_t, uint16_t, double, double, bool, uint8_t > m_reportUeMeasurements
The ReportUeMeasurements trace source. 
 
Time m_a30CqiLast
last aperiodic CQI 
 
void SetSubChannelsForTransmission(std::vector< int > mask)
Set a list of sub channels to use in TX. 
 
double m_paLinear
PA linear. 
 
LteUePhySapProvider * m_uePhySapProvider
UE Phy SAP provider. 
 
uint8_t rsrqNum
Number of RSRQ samples. 
 
void SetTxMode6Gain(double gain)
Set transmit mode 6 gain function. 
 
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes. 
 
std::vector< double > m_txModeGain
the transmit mode gain 
 
Summary results of measuring a specific cell. Used for layer-1 filtering. 
 
SpectrumValue m_dataInterferencePower
data interference power 
 
void QueueSubChannelsForTransmission(std::vector< int > rbMap)
queue subchannels for transmission function 
 
Service Access Point (SAP) offered by the PHY to the MAC. 
 
void SetTxModeGain(uint8_t txMode, double gain)
Set transmit mode gain function. 
 
State
The states of the UE PHY entity. 
 
Ptr< LteUePowerControl > m_powerControl
Pointer to UE Uplink Power Control entity. 
 
virtual void DoSendMacPdu(Ptr< Packet > p)
Queue the MAC PDU to be sent (according to m_macChTtiDelay) 
 
std::vector< int > GetSubChannelsForReception(void)
Get a list of sub channels to use in RX. 
 
uint8_t m_transmissionMode
the transmission mode 
 
EventId m_sendSrsEvent
send SRS event 
 
void SetHarqPhyModule(Ptr< LteHarqPhy > harq)
Set the HARQ PHY module. 
 
bool m_pssReceived
PSS received? 
 
void DoSetSrsConfigurationIndex(uint16_t srcCi)
Set SRS configuration index function. 
 
void DoSetTransmissionMode(uint8_t txMode)
Set transmission mode function. 
 
void DoConfigureUplink(uint32_t ulEarfcn, uint8_t ulBandwidth)
Configure UL uplink function. 
 
Template for the implementation of the LteUeCphySapProvider as a member of an owner class of type C t...
 
void(* StateTracedCallback)(uint16_t cellId, uint16_t rnti, State oldState, State newState)
TracedCallback signature for state transition events. 
 
double m_pssReceptionThreshold
The RsrqUeMeasThreshold attribute. 
 
void DoSynchronizeWithEnb(uint16_t cellId)
Synchronize with ENB function. 
 
Time m_ueMeasurementsFilterLast
 
uint8_t rsrpNum
Number of RSRP samples. 
 
LteUeCphySapUser * m_ueCphySapUser
UE CPhy SAP user. 
 
uint16_t m_rsrpSinrSamplePeriod
The RsrpSinrSamplePeriod attribute. 
 
Service Access Point (SAP) offered by the UE PHY to the UE RRC for control purposes. 
 
void SetLteUePhySapUser(LteUePhySapUser *s)
Set the PHY SAP User. 
 
void DoConfigureReferenceSignalPower(int8_t referenceSignalPower)
Configure reference signal power function. 
 
void SetTxMode3Gain(double gain)
Set transmit mode 3 gain function. 
 
Ptr< DlCqiLteControlMessage > CreateDlCqiFeedbackMessage(const SpectrumValue &sinr)
Create the DL CQI feedback from SINR values perceived at the physical layer with the signal received ...
 
void SetTxMode4Gain(double gain)
Set transmit mode 4 gain function. 
 
void SwitchToState(State s)
Switch the UE PHY to the given state. 
 
TracedCallback< uint16_t, uint16_t, State, State > m_stateTransitionTrace
The StateTransition trace source. 
 
TracedCallback< uint16_t, uint16_t, double, double, uint8_t > m_reportCurrentCellRsrpSinrTrace
The ReportCurrentCellRsrpSinr trace source. 
 
void SendSrs()
Send the SRS signal in the last symbols of the frame. 
 
bool m_rsInterferencePowerUpdated
RS interference power updated? 
 
void SetTxMode7Gain(double gain)
Set transmit mode 7 gain function. 
 
Ptr< LteUePowerControl > GetUplinkPowerControl() const 
 
void DoSetPa(double pa)
Set PA function. 
 
See section 4.3.23 dlInfoListElement. 
 
void DoReset()
Reset function. 
 
double rsrpSum
Sum of RSRP sample values in linear unit. 
 
virtual void DoSendRachPreamble(uint32_t prachId, uint32_t raRnti)
Send RACH preamble function. 
 
virtual void ReportDataInterference(const SpectrumValue &interf)
Create the mixed CQI report. 
 
virtual void ReceiveLteDlHarqFeedback(DlInfoListElement_s mes)
PhySpectrum generated a new DL HARQ feedback. 
 
bool m_enableUplinkPowerControl
The EnableUplinkPowerControl attribute. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
Ptr< LteHarqPhy > m_harqPhyModule
HARQ phy module. 
 
uint16_t m_rsrpSinrSampleCounter
The RsrpSinrSampleCounter attribute. 
 
SpectrumValue m_rsReceivedPower
RS receive power. 
 
double GetTxPower() const 
 
double rsrqSum
Sum of RSRQ sample values in linear unit. 
 
uint16_t m_srsSubframeOffset
SRS subframe offset. 
 
Time m_srsStartTime
SRS start time. 
 
void(* RsrpRsrqTracedCallback)(uint16_t rnti, uint16_t cellId, double rsrp, double rsrq, bool isServingCell, uint8_t componentCarrierId)
TracedCallback signature for cell RSRP and RSRQ. 
 
void SubframeIndication(uint32_t frameNo, uint32_t subframeNo)
trigger from eNB the start from a new frame 
 
virtual void DoInitialize(void)
Initialize() implementation. 
 
void DoSetDlBandwidth(uint8_t dlBandwidth)
Set DL bandwidth function. 
 
Time m_a30CqiPeriodicity
SubBand Aperiodic CQI. 
 
void SetTxMode1Gain(double gain)
Set transmit mode 1 gain function. 
 
std::vector< int > m_subChannelsForTransmission
A list of sub channels to use in TX. 
 
void DoStartCellSearch(uint32_t dlEarfcn)
Start the cell search function. 
 
uint32_t m_raRnti
RA rnti. 
 
bool m_dlConfigured
DL configured? 
 
virtual void ReceiveLteControlMessageList(std::list< Ptr< LteControlMessage > > msgList)
Receive LTE control message list function. 
 
std::vector< std::vector< int > > m_subChannelsForTransmissionQueue
subchannels for transmission queue 
 
LteUeCphySapProvider * m_ueCphySapProvider
UE CPhy SAP provider. 
 
std::map< uint16_t, UeMeasurementsElement > m_ueMeasurementsMap
Store measurement results during the last layer-1 filtering period. 
 
An identifier for simulation events. 
 
std::vector< int > m_subChannelsForReception
A list of sub channels to use in RX. 
 
Service Access Point (SAP) offered by the UE-PHY to the UE-MAC. 
 
void SetTxPower(double pow)
 
virtual void ReceivePss(uint16_t cellId, Ptr< SpectrumValue > p)
Receive PSS function. 
 
uint16_t m_srsPeriodicity
SRS periodicity. 
 
LteUePhySapProvider * GetLteUePhySapProvider()
Get the PHY SAP provider. 
 
uint32_t m_raPreambleId
RA preamble ID. 
 
void SetLteUeCphySapUser(LteUeCphySapUser *s)
Set the CPHY SAP User. 
 
SpectrumValue m_rsInterferencePower
RS interference power. 
 
void PhyPduReceived(Ptr< Packet > p)
PhySpectrum received a new PHY-PDU. 
 
virtual void DoSendLteControlMessage(Ptr< LteControlMessage > msg)
Send LTE conrol message function. 
 
bool m_rsReceivedPowerUpdated
RS receive power updated? 
 
void GenerateCqiRsrpRsrq(const SpectrumValue &sinr)
internal method that takes care of generating CQI reports, calculating the RSRP and RSRQ metrics...
 
The LteSpectrumPhy models the physical layer of LTE. 
 
Ptr< LteSpectrumPhy > GetDlSpectrumPhy() const 
 
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 ...
 
Time m_p10CqiLast
last periodic CQI 
 
LteUeCphySapProvider * GetLteUeCphySapProvider()
Get the CPHY SAP provider. 
 
State m_state
The current UE PHY state. 
 
Set of values corresponding to a given SpectrumModel. 
 
a unique identifier for an interface. 
 
bool m_dataInterferencePowerUpdated
data interference power updated? 
 
void SetNoiseFigure(double nf)
 
TracedCallback< PhyTransmissionStatParameters > m_ulPhyTransmission
The UlPhyTransmission trace source. 
 
static TypeId GetTypeId(void)
Get the type ID. 
 
Time m_p10CqiPeriodicity
Wideband Periodic CQI. 2, 5, 10, 16, 20, 32, 40, 64, 80 or 160 ms. 
 
The LtePhy models the physical layer of LTE. 
 
void ReportUeMeasurements()
Layer-1 filtering of RSRP and RSRQ measurements and reporting to the RRC entity. 
 
virtual void ReportInterference(const SpectrumValue &interf)
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
 
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()
Create the PSD for the TX. 
 
Ptr< SpectrumValue > m_noisePsd
Noise power spectral density for the configured bandwidth. 
 
void DoSetRnti(uint16_t rnti)
Set RNTI function. 
 
void(* RsrpSinrTracedCallback)(uint16_t cellId, uint16_t rnti, double rsrp, double sinr, uint8_t componentCarrierId)
TracedCallback signature for cell RSRP and SINR report. 
 
void SetSubChannelsForReception(std::vector< int > mask)
Get a list of sub channels to use in RX. 
 
virtual void DoDispose(void)
Destructor implementation. 
 
Time m_ueMeasurementsFilterPeriod
The UeMeasurementsFilterPeriod attribute.