#include <lte-spectrum-phy.h>
Public Types | |
enum | State { IDLE, TX, RX } |
Public Member Functions | |
void | SetChannel (Ptr< SpectrumChannel > c) |
void | SetMobility (Ptr< Object > m) |
void | SetDevice (Ptr< Object > d) |
Ptr< Object > | GetMobility () |
Ptr< Object > | GetDevice () |
Ptr< const SpectrumModel > | GetRxSpectrumModel () const |
Ptr< SpectrumChannel > | GetChannel (void) |
Get the channel where the physical layer is attached. | |
SpectrumType | GetSpectrumType () |
void | SetTxPowerSpectralDensity (Ptr< SpectrumValue > txPsd) |
void | SetNoisePowerSpectralDensity (Ptr< const SpectrumValue > noisePsd) |
set the noise power spectral density | |
Ptr< const SpectrumValue > | GetNoisePowerSpectralDensity (void) |
get the noise power spectral density | |
bool | StartTx (Ptr< PacketBurst > pb) |
void | StartRx (Ptr< PacketBurst > pb, Ptr< const SpectrumValue > rxPsd, SpectrumType st, Time duration) |
Notify the SpectrumPhy instance of an incoming waveform. | |
void | SetPhyMacTxEndCallback (PhyMacTxEndCallback c) |
void | SetPhyMacRxStartCallback (PhyMacRxStartCallback c) |
void | SetPhyMacRxEndErrorCallback (PhyMacRxEndErrorCallback c) |
void | SetPhyMacRxEndOkCallback (PhyMacRxEndOkCallback c) |
virtual void | CalcSinrValues (Ptr< const SpectrumValue > rxPsd, Ptr< const SpectrumValue > noise)=0 |
Calculate the SINR estimated during the reception of the packet. | |
void | SetState (State newState) |
Set the state of the phy layer. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::LteSpectrumPhy. |
The LteSpectrumPhy models the physical layer of LTE
PHY states
virtual void ns3::LteSpectrumPhy::CalcSinrValues | ( | Ptr< const SpectrumValue > | rxPsd, | |
Ptr< const SpectrumValue > | noise | |||
) | [pure virtual] |
Calculate the SINR estimated during the reception of the packet.
rxPsd | the Power Spectral Density of the incoming waveform. | |
noise | the Power Spectral Density of the noise. |
Implemented in ns3::EnbLteSpectrumPhy, and ns3::UeLteSpectrumPhy.
Ptr<SpectrumChannel> ns3::LteSpectrumPhy::GetChannel | ( | void | ) |
Get the channel where the physical layer is attached.
get the associated NetDevice instance
Implements ns3::SpectrumPhy.
get the associated MobilityModel instance
Implements ns3::SpectrumPhy.
Ptr<const SpectrumValue> ns3::LteSpectrumPhy::GetNoisePowerSpectralDensity | ( | void | ) |
get the noise power spectral density
Ptr<const SpectrumModel> ns3::LteSpectrumPhy::GetRxSpectrumModel | ( | ) | const [virtual] |
Implements ns3::SpectrumPhy.
SpectrumType ns3::LteSpectrumPhy::GetSpectrumType | ( | ) |
Get the SpectrumType used by this PHY
static TypeId ns3::LteSpectrumPhy::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::LteSpectrumPhy.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
TraceSources defined for this type:
Reimplemented from ns3::SpectrumPhy.
Reimplemented in ns3::EnbLteSpectrumPhy, and ns3::UeLteSpectrumPhy.
void ns3::LteSpectrumPhy::SetChannel | ( | Ptr< SpectrumChannel > | c | ) | [virtual] |
set the associated NetDevice instance
d | the NetDevice instance |
Implements ns3::SpectrumPhy.
Set the mobility model associated with this device.
m | the mobility model |
Implements ns3::SpectrumPhy.
void ns3::LteSpectrumPhy::SetNoisePowerSpectralDensity | ( | Ptr< const SpectrumValue > | noisePsd | ) |
set the noise power spectral density
noisePsd | the Noise Power Spectral Density in power units (Watt, Pascal...) per Hz. |
void ns3::LteSpectrumPhy::SetPhyMacRxEndErrorCallback | ( | PhyMacRxEndErrorCallback | c | ) |
set the callback for the end of a RX in error, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
void ns3::LteSpectrumPhy::SetPhyMacRxEndOkCallback | ( | PhyMacRxEndOkCallback | c | ) |
set the callback for the successful end of a RX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
void ns3::LteSpectrumPhy::SetPhyMacRxStartCallback | ( | PhyMacRxStartCallback | c | ) |
set the callback for the start of RX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
void ns3::LteSpectrumPhy::SetPhyMacTxEndCallback | ( | PhyMacTxEndCallback | c | ) |
set the callback for the end of a TX, as part of the interconnections betweenthe PHY and the MAC
c | the callback |
void ns3::LteSpectrumPhy::SetState | ( | State | newState | ) |
Set the state of the phy layer.
newState | the state |
void ns3::LteSpectrumPhy::SetTxPowerSpectralDensity | ( | Ptr< SpectrumValue > | txPsd | ) |
set the Power Spectral Density of outgoing signals in W/Hz.
txPsd |
void ns3::LteSpectrumPhy::StartRx | ( | Ptr< PacketBurst > | pb, | |
Ptr< const SpectrumValue > | rxPsd, | |||
SpectrumType | st, | |||
Time | duration | |||
) | [virtual] |
Notify the SpectrumPhy instance of an incoming waveform.
pb | the burst of packet associated with the incoming waveform | |
rxPsd | the Power Spectral Density of the incoming waveform. The units of the SPD are the same specified for SpectrumChannel::StartTx(). | |
st | the spectrum type | |
duration | the duration of the incoming waveform |
Implements ns3::SpectrumPhy.
bool ns3::LteSpectrumPhy::StartTx | ( | Ptr< PacketBurst > | pb | ) |
Start a transmission
pb | the burst of packets to be transmitted |