#include <ns3/log.h>
#include <ns3/core-module.h>
#include <ns3/lr-wpan-module.h>
#include <ns3/propagation-loss-model.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/simulator.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/constant-position-mobility-model.h>
#include <ns3/packet.h>
#include <iostream>
Go to the source code of this file.
Functions | |
static void | DataConfirm (McpsDataConfirmParams params) |
Function called when a Data confirm is invoked. More... | |
static void | DataIndication (McpsDataIndicationParams params, Ptr< Packet > p) |
Function called when a Data indication is invoked. More... | |
static void | StateChangeNotification (std::string context, Time now, LrWpanPhyEnumeration oldState, LrWpanPhyEnumeration newState) |
Function called when a the PHY state changes. More... | |
$ ./ns3 run "lr-wpan-data [Program Options]"
–verbose
–extended
Definition in file lr-wpan-data.cc.
|
static |
Function called when a Data confirm is invoked.
params | MCPS data confirm parameters |
Definition at line 56 of file lr-wpan-data.cc.
References ns3::McpsDataConfirmParams::m_status, and NS_LOG_UNCOND.
|
static |
Function called when a Data indication is invoked.
params | MCPS data indication parameters |
p | packet |
Definition at line 47 of file lr-wpan-data.cc.
References ns3::Packet::GetSize(), and NS_LOG_UNCOND.
|
static |
Function called when a the PHY state changes.
context | context |
now | time at which the function is called |
oldState | old PHY state |
newState | new PHY state |
Definition at line 68 of file lr-wpan-data.cc.
References ns3::Time::As(), ns3::LrWpanHelper::LrWpanPhyEnumerationPrinter(), NS_LOG_UNCOND, and ns3::Time::S.