A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::BlePhy Class Reference

Implementation of PhyLayer of BLE protocol. More...

#include "ble-phy.h"

+ Inheritance diagram for ns3::BlePhy:
+ Collaboration diagram for ns3::BlePhy:

Public Types

enum  BlePhyState {
  OFF, IDLE, LISTEN, BUSY_RX,
  TRANS, BUSY_TX
}
 

Public Member Functions

 BlePhy (void)
 
virtual ~BlePhy (void)
 
Time CalculateTxTime (Ptr< const Packet > packet)
 
void ChangeState ()
 
void ChangeState (BlePhyState new_state)
 
void EndRx (Ptr< SpectrumSignalParameters > params)
 Finish the reception of a Packet. More...
 
void EndTx (void)
 
virtual Ptr< SpectrumChannelGetChannel ()
 
uint32_t GetChannelNo (void)
 
virtual Ptr< NetDeviceGetDevice (void) const
 Get the associated NetDevice instance. More...
 
Ptr< SpectrumErrorModelGetErrorModel (void) const
 get the error model in use More...
 
virtual Ptr< MobilityModelGetMobility ()
 Get the associated MobilityModel instance. More...
 
Ptr< const SpectrumValueGetNoisePowerSpectralDensity (void)
 Get the noise power spectral density. More...
 
virtual Ptr< AntennaModelGetRxAntenna ()
 Get the AntennaModel used by the NetDevice for reception. More...
 
double GetRxSensitivity (void)
 
virtual Ptr< const SpectrumModelGetRxSpectrumModel () const
 
BlePhyState GetState (void) const
 
double GetTxPower (void)
 
void RxPacketFromLinkLayer (Ptr< Packet > pkt)
 
void SendPktToLinkLayer (Ptr< Packet > p, uint8_t channnelNo)
 
virtual void SetChannel (Ptr< SpectrumChannel > c)
 Set the channel attached to this device. More...
 
void SetChannelNo (uint32_t channel_no)
 
virtual void SetDevice (Ptr< NetDevice > d)
 Set the associated NetDevice instance. More...
 
void SetErrorModel (Ptr< SpectrumErrorModel > e)
 set the error model to use More...
 
void SetIdleState ()
 
virtual void SetMobility (Ptr< MobilityModel > m)
 Set the mobility model associated with this device. More...
 
void SetNextPendingState (BlePhyState state)
 
void SetNoisePowerSpectralDensity (Ptr< const SpectrumValue > noisePsd)
 Set the noise power spectral density. More...
 
virtual void SetRxAntenna (Ptr< AntennaModel > a)
 
void SetRxSensitivity (double rxSensitivity)
 
void SetTxPower (double txPower)
 
virtual void StartRx (Ptr< SpectrumSignalParameters > params)
 Notify the SpectrumPhy instance of an incoming signal. More...
 
void StartTx (void)
 
- Public Member Functions inherited from ns3::SpectrumPhy
 SpectrumPhy ()
 
virtual ~SpectrumPhy ()
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together. More...
 
void Dispose (void)
 Dispose of this Object. More...
 
AggregateIterator GetAggregateIterator (void) const
 Get an iterator to the Objects aggregated to this one. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Implement the GetInstanceTypeId method defined in ObjectBase. More...
 
template<typename T >
Ptr< T > GetObject (void) const
 Get a pointer to the requested aggregated Object. More...
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId. More...
 
void Initialize (void)
 Invoke DoInitialize on all Objects aggregated to this one. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising erros. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::SpectrumPhy
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 Noop. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Member Functions

void CheckInterference (void)
 

Private Attributes

Ptr< AntennaModelm_antenna
 
Ptr< SpectrumChannelm_channel
 
uint32_t m_channelNo
 
std::pair< Ptr
< BleSpectrumSignalParameters >
, bool > 
m_currentRxParam
 
std::pair< Ptr
< BleSpectrumSignalParameters >
, bool > 
m_currentTxParam
 
Ptr< SpectrumErrorModelm_errorModel
 The error model describing the bit and packet error rates. More...
 
Ptr< MobilityModelm_mobility
 
Ptr< NetDevicem_netDevice
 
BlePhyState m_nextPendingState
 
Ptr< const SpectrumValuem_noise
 The spectral density for for the noise. More...
 
TracedCallback< Ptr< const
Packet > > 
m_phyRxBeginTrace
 The trace source fired when a packet begins the reception process from the medium. More...
 
TracedCallback< Ptr< const
Packet > > 
m_phyRxDropTrace
 The trace source fired when the phy layer drops a packet it has received. More...
 
TracedCallback< Ptr< const
Packet >, double > 
m_phyRxEndTrace
 The trace source fired when a packet ends the reception process from the medium. More...
 
TracedCallback< Ptr< const
Packet > > 
m_phyTxBeginTrace
 The trace source fired when a packet begins the transmission process on the medium. More...
 
TracedCallback< Ptr< const
Packet > > 
m_phyTxDropTrace
 The trace source fired when the phy layer drops a packet as it tries to transmit it. More...
 
TracedCallback< Ptr< const
Packet > > 
m_phyTxEndTrace
 The trace source fired when a packet ends the transmission process on the medium. More...
 
Ptr< UniformRandomVariablem_random
 Uniform random variable stream. More...
 
Time m_recentSignalRx
 Timestamp of the most recently received signal. More...
 
double m_rxSensitivity
 
Ptr< BleInterferenceHelperm_signal
 The accumulated signals currently received by the transceiver, including the signal of a possibly received packet, as well as all signals considered noise. More...
 
TracedValue< BlePhyStatem_state
 
double m_txPower
 
Ptr< SpectrumValuem_txPsd
 The transmit power spectral density. More...
 
TracedCallback< Ptr< Packet >
, uint8_t > 
m_txToLLTrace
 The trace source fired when a packet transmitted to LinkLayer. More...
 

Static Private Attributes

static const double g_dataRate = 1.00e6
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object. More...
 
virtual void DoDispose (void)
 Destructor implementation. More...
 
virtual void DoInitialize (void)
 Initialize() implementation. More...
 
virtual void NotifyNewAggregate (void)
 Notify all Objects aggregated to this one of a new Object being aggregated. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes. More...
 
virtual void NotifyConstructionCompleted (void)
 Notifier called once the ObjectBase is fully constructed. More...
 

Detailed Description

Implementation of PhyLayer of BLE protocol.

Config Paths

ns3::BlePhy is accessible through the following paths with Config::Set and Config::Connect:

  • "/NodeList/[i]/DeviceList/[i]/$ns3::BleNetDevice/Phy"

No Attributes are defined for this type.

TraceSources

Size of this type is 312 bytes (on a 64-bit architecture).

Definition at line 57 of file ble-phy.h.

Member Enumeration Documentation

Enumerator
OFF 
IDLE 
LISTEN 
BUSY_RX 
TRANS 
BUSY_TX 

Definition at line 59 of file ble-phy.h.

Constructor & Destructor Documentation

ns3::BlePhy::~BlePhy ( void  )
virtual

Definition at line 112 of file ble-phy.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

Time ns3::BlePhy::CalculateTxTime ( Ptr< const Packet packet)

Definition at line 548 of file ble-phy.cc.

References g_dataRate, ns3::Packet::GetSize(), NS_LOG_FUNCTION, and ns3::Seconds().

Referenced by RxPacketFromLinkLayer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::BlePhy::ChangeState ( )

Definition at line 266 of file ble-phy.cc.

References m_nextPendingState, m_state, and NS_LOG_FUNCTION.

Referenced by ns3::BleLinkLayer::BleLLChangeState(), EndRx(), EndTx(), GenerateTraffic(), SendOnePacket(), SetIdleState(), StartRx(), and StartTx().

+ Here is the caller graph for this function:

void ns3::BlePhy::ChangeState ( BlePhy::BlePhyState  new_state)

Definition at line 280 of file ble-phy.cc.

References m_state, and NS_LOG_FUNCTION.

void ns3::BlePhy::CheckInterference ( void  )
private
void ns3::BlePhy::EndRx ( Ptr< SpectrumSignalParameters params)

Finish the reception of a Packet.

This is called at the end of a packet reception, applying possibly pending PHY state changes and fireing the appropriate trace sources and indication callbacks to the LinkLayer. A packet destroyed by noise/interference is dropped here, but not during reception. This method is also called for every packet which only contributes to interference.

Parameters
paramssignal parameters of the packet

Definition at line 409 of file ble-phy.cc.

References ChangeState(), CheckInterference(), ns3::Packet::GetUid(), IDLE, m_channelNo, m_currentRxParam, m_netDevice, m_phyRxDropTrace, m_signal, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Simulator::Schedule(), and SendPktToLinkLayer().

Referenced by StartRx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::BlePhy::EndTx ( void  )

Definition at line 518 of file ble-phy.cc.

References BUSY_TX, ChangeState(), IDLE, m_currentTxParam, m_phyTxDropTrace, m_phyTxEndTrace, m_state, ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_INFO, and ns3::Simulator::Schedule().

Referenced by StartTx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ptr< SpectrumChannel > ns3::BlePhy::GetChannel ( void  )
virtual

Definition at line 216 of file ble-phy.cc.

References m_channel, and NS_LOG_FUNCTION.

uint32_t ns3::BlePhy::GetChannelNo ( void  )

Definition at line 143 of file ble-phy.cc.

References m_channelNo, and NS_LOG_FUNCTION.

Ptr< NetDevice > ns3::BlePhy::GetDevice ( void  ) const
virtual

Get the associated NetDevice instance.

Returns
a Ptr to the associated NetDevice instance

Implements ns3::SpectrumPhy.

Definition at line 187 of file ble-phy.cc.

References m_netDevice, and NS_LOG_FUNCTION.

Ptr< SpectrumErrorModel > ns3::BlePhy::GetErrorModel ( void  ) const

get the error model in use

Returns
pointer to SpectrumErrorModel in use

Definition at line 173 of file ble-phy.cc.

References m_errorModel, and NS_LOG_FUNCTION.

Ptr< MobilityModel > ns3::BlePhy::GetMobility ( )
virtual

Get the associated MobilityModel instance.

Returns
a Ptr to the associated MobilityModel instance

Implements ns3::SpectrumPhy.

Definition at line 201 of file ble-phy.cc.

References m_mobility, and NS_LOG_FUNCTION.

Ptr< const SpectrumValue > ns3::BlePhy::GetNoisePowerSpectralDensity ( void  )

Get the noise power spectral density.

Returns
the Noise Power Spectral Density

Definition at line 566 of file ble-phy.cc.

References m_noise, and NS_LOG_FUNCTION.

Ptr< AntennaModel > ns3::BlePhy::GetRxAntenna ( )
virtual

Get the AntennaModel used by the NetDevice for reception.

Returns
a Ptr to the AntennaModel used by the NetDevice for reception

Implements ns3::SpectrumPhy.

Definition at line 241 of file ble-phy.cc.

References m_antenna, and NS_LOG_FUNCTION.

double ns3::BlePhy::GetRxSensitivity ( void  )

Definition at line 158 of file ble-phy.cc.

References m_rxSensitivity, and NS_LOG_FUNCTION.

Ptr< const SpectrumModel > ns3::BlePhy::GetRxSpectrumModel ( ) const
virtual
Returns
returns the SpectrumModel that this SpectrumPhy expects to be used for all SpectrumValues that are passed to StartRx. If 0 is returned, it means that any model will be accepted.

Implements ns3::SpectrumPhy.

Definition at line 223 of file ble-phy.cc.

References ns3::SpectrumValue::GetSpectrumModel(), m_txPsd, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

BlePhy::BlePhyState ns3::BlePhy::GetState ( void  ) const

Definition at line 248 of file ble-phy.cc.

References m_state, and NS_LOG_FUNCTION.

double ns3::BlePhy::GetTxPower ( void  )

Definition at line 127 of file ble-phy.cc.

References m_txPower, and NS_LOG_FUNCTION.

TypeId ns3::BlePhy::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 41 of file ble-phy.cc.

References m_phyRxBeginTrace, m_phyRxDropTrace, m_phyRxEndTrace, m_phyTxBeginTrace, m_phyTxDropTrace, m_phyTxEndTrace, m_state, m_txToLLTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

void ns3::BlePhy::RxPacketFromLinkLayer ( Ptr< Packet pkt)

Definition at line 468 of file ble-phy.cc.

References CalculateTxTime(), ns3::Packet::GetUid(), m_antenna, m_currentTxParam, ns3::Simulator::Now(), NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by GenerateTraffic(), and SendOnePacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::BlePhy::SendPktToLinkLayer ( Ptr< Packet p,
uint8_t  channnelNo 
)

Definition at line 461 of file ble-phy.cc.

References m_txToLLTrace, and NS_LOG_FUNCTION.

Referenced by EndRx().

+ Here is the caller graph for this function:

void ns3::BlePhy::SetChannel ( Ptr< SpectrumChannel c)
virtual

Set the channel attached to this device.

Parameters
cthe channel

Implements ns3::SpectrumPhy.

Definition at line 208 of file ble-phy.cc.

References m_channel, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetChannelNo ( uint32_t  channel_no)

Definition at line 134 of file ble-phy.cc.

References m_channelNo, NS_ASSERT_MSG, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetDevice ( Ptr< NetDevice d)
virtual

Set the associated NetDevice instance.

Parameters
dthe NetDevice instance

Implements ns3::SpectrumPhy.

Definition at line 180 of file ble-phy.cc.

References m_netDevice, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetErrorModel ( Ptr< SpectrumErrorModel e)

set the error model to use

Parameters
epointer to SpectrumErrorModel to use

Definition at line 165 of file ble-phy.cc.

References m_errorModel, NS_ASSERT, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetIdleState ( )

Definition at line 273 of file ble-phy.cc.

References ChangeState(), IDLE, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

void ns3::BlePhy::SetMobility ( Ptr< MobilityModel m)
virtual

Set the mobility model associated with this device.

Parameters
mthe mobility model

Implements ns3::SpectrumPhy.

Definition at line 194 of file ble-phy.cc.

References m_mobility, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetNextPendingState ( BlePhy::BlePhyState  state)

Definition at line 255 of file ble-phy.cc.

References m_nextPendingState, and NS_LOG_FUNCTION.

Referenced by ns3::BleLinkLayer::BleLLChangeState().

+ Here is the caller graph for this function:

void ns3::BlePhy::SetNoisePowerSpectralDensity ( Ptr< const SpectrumValue noisePsd)

Set the noise power spectral density.

Parameters
noisePsdthe Noise Power Spectral Density in power units (Watt, Pascal...) per Hz.

Definition at line 557 of file ble-phy.cc.

References m_noise, NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_INFO.

void ns3::BlePhy::SetRxAntenna ( Ptr< AntennaModel a)
virtual

Definition at line 234 of file ble-phy.cc.

References m_antenna, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetRxSensitivity ( double  rxSensitivity)

Definition at line 150 of file ble-phy.cc.

References m_rxSensitivity, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

void ns3::BlePhy::SetTxPower ( double  txPower)

Definition at line 118 of file ble-phy.cc.

References m_txPower, NS_ASSERT_MSG, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

void ns3::BlePhy::StartRx ( Ptr< SpectrumSignalParameters params)
virtual

Notify the SpectrumPhy instance of an incoming signal.

Parameters
paramsthe parameters of the signals being received

Implements ns3::SpectrumPhy.

Definition at line 287 of file ble-phy.cc.

References BUSY_RX, ChangeState(), EndRx(), LISTEN, m_channelNo, m_currentRxParam, m_phyRxBeginTrace, m_phyRxDropTrace, m_recentSignalRx, m_rxSensitivity, m_signal, m_state, ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Simulator::Schedule(), and ns3::BleSpectrumValueHelper::TotalAvgPower().

+ Here is the call graph for this function:

void ns3::BlePhy::StartTx ( void  )

Member Data Documentation

const double ns3::BlePhy::g_dataRate = 1.00e6
staticprivate

Definition at line 268 of file ble-phy.h.

Referenced by CalculateTxTime(), and CheckInterference().

Ptr<AntennaModel> ns3::BlePhy::m_antenna
private

Definition at line 322 of file ble-phy.h.

Referenced by GetRxAntenna(), RxPacketFromLinkLayer(), and SetRxAntenna().

Ptr<SpectrumChannel> ns3::BlePhy::m_channel
private

Definition at line 321 of file ble-phy.h.

Referenced by GetChannel(), SetChannel(), and StartTx().

uint32_t ns3::BlePhy::m_channelNo
private

Definition at line 278 of file ble-phy.h.

Referenced by BlePhy(), CheckInterference(), EndRx(), GetChannelNo(), SetChannelNo(), StartRx(), and StartTx().

std::pair<Ptr<BleSpectrumSignalParameters>, bool> ns3::BlePhy::m_currentRxParam
private

Definition at line 317 of file ble-phy.h.

Referenced by BlePhy(), CheckInterference(), EndRx(), and StartRx().

std::pair<Ptr<BleSpectrumSignalParameters>, bool> ns3::BlePhy::m_currentTxParam
private

Definition at line 312 of file ble-phy.h.

Referenced by BlePhy(), EndTx(), RxPacketFromLinkLayer(), and StartTx().

Ptr<SpectrumErrorModel> ns3::BlePhy::m_errorModel
private

The error model describing the bit and packet error rates.

Definition at line 305 of file ble-phy.h.

Referenced by CheckInterference(), GetErrorModel(), and SetErrorModel().

Ptr<MobilityModel> ns3::BlePhy::m_mobility
private

Definition at line 320 of file ble-phy.h.

Referenced by GetMobility(), and SetMobility().

Ptr<NetDevice> ns3::BlePhy::m_netDevice
private

Definition at line 323 of file ble-phy.h.

Referenced by EndRx(), GetDevice(), and SetDevice().

BlePhyState ns3::BlePhy::m_nextPendingState
private

Definition at line 263 of file ble-phy.h.

Referenced by ChangeState(), and SetNextPendingState().

Ptr<const SpectrumValue> ns3::BlePhy::m_noise
private

The spectral density for for the noise.

Definition at line 300 of file ble-phy.h.

Referenced by BlePhy(), CheckInterference(), GetNoisePowerSpectralDensity(), and SetNoisePowerSpectralDensity().

TracedCallback<Ptr<const Packet> > ns3::BlePhy::m_phyRxBeginTrace
private

The trace source fired when a packet begins the reception process from the medium.

See Also
class CallBackTraceSource

Definition at line 362 of file ble-phy.h.

Referenced by GetTypeId(), and StartRx().

TracedCallback<Ptr<const Packet> > ns3::BlePhy::m_phyRxDropTrace
private

The trace source fired when the phy layer drops a packet it has received.

See Also
class CallBackTraceSource

Definition at line 377 of file ble-phy.h.

Referenced by EndRx(), GetTypeId(), and StartRx().

TracedCallback<Ptr<const Packet>, double > ns3::BlePhy::m_phyRxEndTrace
private

The trace source fired when a packet ends the reception process from the medium.

Second quantity is received SINR.

See Also
class CallBackTraceSource

Definition at line 370 of file ble-phy.h.

Referenced by GetTypeId().

TracedCallback<Ptr<const Packet> > ns3::BlePhy::m_phyTxBeginTrace
private

The trace source fired when a packet begins the transmission process on the medium.

See Also
class CallBackTraceSource

Definition at line 338 of file ble-phy.h.

Referenced by GetTypeId(), and StartTx().

TracedCallback<Ptr<const Packet> > ns3::BlePhy::m_phyTxDropTrace
private

The trace source fired when the phy layer drops a packet as it tries to transmit it.

See Also
class CallBackTraceSource

Definition at line 354 of file ble-phy.h.

Referenced by EndTx(), GetTypeId(), and StartTx().

TracedCallback<Ptr<const Packet> > ns3::BlePhy::m_phyTxEndTrace
private

The trace source fired when a packet ends the transmission process on the medium.

See Also
class CallBackTraceSource

Definition at line 346 of file ble-phy.h.

Referenced by EndTx(), and GetTypeId().

Ptr<UniformRandomVariable> ns3::BlePhy::m_random
private

Uniform random variable stream.

Definition at line 382 of file ble-phy.h.

Referenced by BlePhy().

Time ns3::BlePhy::m_recentSignalRx
private

Timestamp of the most recently received signal.

Hence, the slot when maximum interference occurred at receiving antenna.

Definition at line 388 of file ble-phy.h.

Referenced by CheckInterference(), and StartRx().

double ns3::BlePhy::m_rxSensitivity
private

Definition at line 273 of file ble-phy.h.

Referenced by BlePhy(), GetRxSensitivity(), SetRxSensitivity(), and StartRx().

Ptr<BleInterferenceHelper> ns3::BlePhy::m_signal
private

The accumulated signals currently received by the transceiver, including the signal of a possibly received packet, as well as all signals considered noise.

Definition at line 295 of file ble-phy.h.

Referenced by BlePhy(), CheckInterference(), EndRx(), and StartRx().

TracedValue<BlePhyState> ns3::BlePhy::m_state
private
double ns3::BlePhy::m_txPower
private

Definition at line 283 of file ble-phy.h.

Referenced by BlePhy(), GetTxPower(), SetTxPower(), and StartTx().

Ptr<SpectrumValue> ns3::BlePhy::m_txPsd
private

The transmit power spectral density.

Definition at line 288 of file ble-phy.h.

Referenced by GetRxSpectrumModel(), and StartTx().

TracedCallback<Ptr<Packet>,uint8_t> ns3::BlePhy::m_txToLLTrace
private

The trace source fired when a packet transmitted to LinkLayer.

See Also
class CallBackTraceSource

Definition at line 331 of file ble-phy.h.

Referenced by GetTypeId(), and SendPktToLinkLayer().


The documentation for this class was generated from the following files: