This class defines all functions to create spectrum value for spectrum model for BLE. More...
#include "ble-spectrum-value-helper.h"
Public Member Functions | |
BleSpectrumValueHelper (void) | |
BleSpectrumValueHelper (double) | |
virtual | ~BleSpectrumValueHelper (void) |
Ptr< SpectrumValue > | CreateNoisePowerSpectralDensity (uint32_t channel) |
create a noise in channel The noise power spectral density will be calculated from noise factor More... | |
Ptr< SpectrumValue > | CreateNoisePowerSpectralDensity (void) |
Ptr< SpectrumValue > | CreateTxPowerSpectralDensity (double txPower, uint32_t channel) |
create spectrum value To create a spectrum value object with given txPower in given channel. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< BleSpectrumValueHelper > | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Static Public Member Functions | |
static double | TotalAvgPower (Ptr< const SpectrumValue > psd, uint32_t channel) |
total average power of the signal is the integral of the PSD using the limits of the given channel More... | |
Static Public Member Functions inherited from ns3::SimpleRefCount< BleSpectrumValueHelper > | |
static void | Cleanup (void) |
Noop. More... | |
Private Attributes | |
double | m_noiseFactor |
A scaling factor for the noise power. More... | |
This class defines all functions to create spectrum value for spectrum model for BLE.
Definition at line 39 of file ble-spectrum-value-helper.h.
ns3::BleSpectrumValueHelper::BleSpectrumValueHelper | ( | void | ) |
Definition at line 80 of file ble-spectrum-value-helper.cc.
References m_noiseFactor, and NS_LOG_FUNCTION.
ns3::BleSpectrumValueHelper::BleSpectrumValueHelper | ( | double | noiseFactor | ) |
Definition at line 86 of file ble-spectrum-value-helper.cc.
|
virtual |
Definition at line 90 of file ble-spectrum-value-helper.cc.
References NS_LOG_FUNCTION.
Ptr< SpectrumValue > ns3::BleSpectrumValueHelper::CreateNoisePowerSpectralDensity | ( | uint32_t | channel | ) |
create a noise in channel The noise power spectral density will be calculated from noise factor
channel | (Default all Channels i.e. white noise spectrum values) |
Definition at line 114 of file ble-spectrum-value-helper.cc.
References third::channel, ns3::g_BleSpectrumModel, m_noiseFactor, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::BlePhy::BlePhy().
Ptr< SpectrumValue > ns3::BleSpectrumValueHelper::CreateNoisePowerSpectralDensity | ( | void | ) |
Definition at line 131 of file ble-spectrum-value-helper.cc.
References ns3::g_BleSpectrumModel, m_noiseFactor, and NS_LOG_FUNCTION.
Ptr< SpectrumValue > ns3::BleSpectrumValueHelper::CreateTxPowerSpectralDensity | ( | double | txPower, |
uint32_t | channel | ||
) |
create spectrum value To create a spectrum value object with given txPower in given channel.
txPower | the power transmission in dBm |
channel | the channel number of BLE channels |
Definition at line 96 of file ble-spectrum-value-helper.cc.
References third::channel, ns3::g_BleSpectrumModel, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::BlePhy::CheckInterference(), and ns3::BlePhy::StartTx().
|
static |
total average power of the signal is the integral of the PSD using the limits of the given channel
psd | spectral density |
channel | the channel number as per BLE specifications |
Definition at line 147 of file ble-spectrum-value-helper.cc.
References third::channel, ns3::g_BleSpectrumModel, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::BlePhy::CheckInterference(), and ns3::BlePhy::StartRx().
|
private |
A scaling factor for the noise power.
Definition at line 77 of file ble-spectrum-value-helper.h.
Referenced by BleSpectrumValueHelper(), and CreateNoisePowerSpectralDensity().