A Discrete-Event Network Simulator
API
lr-wpan-error-distance-plot.cc File Reference
#include <ns3/test.h>
#include <ns3/log.h>
#include <ns3/callback.h>
#include <ns3/packet.h>
#include <ns3/simulator.h>
#include <ns3/lr-wpan-error-model.h>
#include <ns3/propagation-loss-model.h>
#include <ns3/lr-wpan-net-device.h>
#include <ns3/spectrum-value.h>
#include <ns3/lr-wpan-spectrum-value-helper.h>
#include <ns3/lr-wpan-mac.h>
#include <ns3/node.h>
#include <ns3/net-device.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/multi-model-spectrum-channel.h>
#include <ns3/mac16-address.h>
#include <ns3/constant-position-mobility-model.h>
#include <ns3/uinteger.h>
#include <ns3/nstime.h>
#include <ns3/abort.h>
#include <ns3/command-line.h>
#include <ns3/gnuplot.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
+ Include dependency graph for lr-wpan-error-distance-plot.cc:

Go to the source code of this file.

Functions

static void LrWpanErrorDistanceCallback (McpsDataIndicationParams params, Ptr< Packet > p)
 Function called when a Data indication is invoked. More...
 

Variables

static uint32_t g_received = 0
 number of packets received More...
 

Detailed Description

Usage

$ ./ns3 run "lr-wpan-error-distance-plot [Program Options]"

Program Options

–txPower
transmit power (dBm) [0]
–packetSize
packet (MSDU) size (bytes) [20]
–channelNumber
channel number [11]

Definition in file lr-wpan-error-distance-plot.cc.

Function Documentation

◆ LrWpanErrorDistanceCallback()

static void LrWpanErrorDistanceCallback ( McpsDataIndicationParams  params,
Ptr< Packet p 
)
static

Function called when a Data indication is invoked.

Parameters
paramsMCPS data indication parameters
ppacket

Definition at line 67 of file lr-wpan-error-distance-plot.cc.

References g_received.

Variable Documentation

◆ g_received

uint32_t g_received = 0
static

number of packets received

Definition at line 57 of file lr-wpan-error-distance-plot.cc.

Referenced by LrWpanErrorDistanceCallback().