A Discrete-Event Network Simulator
API
lr-wpan-phy-test.cc File Reference
#include <ns3/log.h>
#include <ns3/test.h>
#include <ns3/command-line.h>
#include <ns3/packet.h>
#include <ns3/lr-wpan-phy.h>
#include <ns3/lr-wpan-mac.h>
#include <ns3/simulator.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/constant-position-mobility-model.h>
+ Include dependency graph for lr-wpan-phy-test.cc:

Go to the source code of this file.

Functions

void GetSetTRXStateConfirm (LrWpanPhyEnumeration status)
 Function called when a the PHY state change is confirmed. More...
 
void ReceivePdDataIndication (uint32_t psduLength, Ptr< Packet > p, uint8_t lqi)
 Function called when a the PHY receives a packet. More...
 
void SendOnePacket (Ptr< LrWpanPhy > sender, Ptr< LrWpanPhy > receiver)
 Send one packet. More...
 

Detailed Description

Usage

$ ./ns3 run "lr-wpan-phy-test"

Definition in file lr-wpan-phy-test.cc.

Function Documentation

◆ GetSetTRXStateConfirm()

void GetSetTRXStateConfirm ( LrWpanPhyEnumeration  status)

Function called when a the PHY state change is confirmed.

Parameters
statusPHY state

Definition at line 37 of file lr-wpan-phy-test.cc.

References ns3::Simulator::Now(), and NS_LOG_UNCOND.

+ Here is the call graph for this function:

◆ ReceivePdDataIndication()

void ReceivePdDataIndication ( uint32_t  psduLength,
Ptr< Packet p,
uint8_t  lqi 
)

Function called when a the PHY receives a packet.

Parameters
psduLengthPSDU length
ppacket
lqilink quality indication

Definition at line 50 of file lr-wpan-phy-test.cc.

References ns3::Simulator::Now(), and NS_LOG_UNCOND.

+ Here is the call graph for this function:

◆ SendOnePacket()

void SendOnePacket ( Ptr< LrWpanPhy sender,
Ptr< LrWpanPhy receiver 
)

Send one packet.

Parameters
sendersender PHY
receiverreceiver PHY

Definition at line 65 of file lr-wpan-phy-test.cc.

References ns3::Packet::GetSize().

+ Here is the call graph for this function: