A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-phy-cca-test.cc File Reference
#include "ns3/constant-obss-pd-algorithm.h"
#include "ns3/he-phy.h"
#include "ns3/he-ppdu.h"
#include "ns3/ht-ppdu.h"
#include "ns3/interference-helper.h"
#include "ns3/log.h"
#include "ns3/multi-model-spectrum-channel.h"
#include "ns3/nist-error-rate-model.h"
#include "ns3/non-communicating-net-device.h"
#include "ns3/ofdm-ppdu.h"
#include "ns3/pointer.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/spectrum-wifi-helper.h"
#include "ns3/spectrum-wifi-phy.h"
#include "ns3/test.h"
#include "ns3/threshold-preamble-detection-model.h"
#include "ns3/vht-configuration.h"
#include "ns3/vht-ppdu.h"
#include "ns3/waveform-generator.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/wifi-net-device.h"
#include "ns3/wifi-phy-listener.h"
#include "ns3/wifi-psdu.h"
#include "ns3/wifi-spectrum-value-helper.h"
#include "ns3/wifi-utils.h"
#include <memory>
#include <vector>
+ Include dependency graph for wifi-phy-cca-test.cc:

Go to the source code of this file.

Classes

struct  WifiPhyCcaIndicationTest::CcaCheckPoint
 structure that holds information to perform CCA check More...
 
class  CcaTestPhyListener
 PHY listener for CCA tests. More...
 
struct  WifiPhyCcaIndicationTest::StateCheckPoint
 structure that holds information to perform PHY state check More...
 
struct  WifiPhyCcaIndicationTest::TxPpduInfo
 structure that holds information to generate PPDUs More...
 
struct  WifiPhyCcaIndicationTest::TxSignalInfo
 structure that holds information to generate signals More...
 
class  WifiPhyCcaIndicationTest
 Wifi Phy Threshold Test base class. More...
 
class  WifiPhyCcaTestSuite
 Wi-Fi PHY CCA Test Suite. More...
 
class  WifiPhyCcaThresholdsTest
 PHY CCA thresholds test. More...
 

Variables

const Time aCcaTime = MicroSeconds(4) + smallDelta
 
constexpr uint32_t P160_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 40
 
constexpr uint32_t P20_CENTER_FREQUENCY = 5180
 
constexpr uint32_t P40_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 10
 
constexpr uint32_t P80_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 20
 
const std::map< uint16_t, TimePpduDurations
 
constexpr uint32_t S20_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 20
 
constexpr uint32_t S40_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 40
 
constexpr uint32_t S80_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 80
 
const Time smallDelta = NanoSeconds(1)
 
static WifiPhyCcaTestSuite WifiPhyCcaTestSuite
 the test suite
 

Variable Documentation

◆ aCcaTime

const Time aCcaTime = MicroSeconds(4) + smallDelta

Definition at line 62 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P160_CENTER_FREQUENCY

constexpr uint32_t P160_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 40
constexpr

Definition at line 59 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P20_CENTER_FREQUENCY

constexpr uint32_t P20_CENTER_FREQUENCY = 5180
constexpr

Definition at line 53 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P40_CENTER_FREQUENCY

constexpr uint32_t P40_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 10
constexpr

Definition at line 55 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P80_CENTER_FREQUENCY

constexpr uint32_t P80_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 20
constexpr

Definition at line 57 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ PpduDurations

const std::map<uint16_t, Time> PpduDurations
Initial value:
= {
{20, NanoSeconds(1009600)},
{40, NanoSeconds(533600)},
{80, NanoSeconds(275200)},
}
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1355

Definition at line 63 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S20_CENTER_FREQUENCY

constexpr uint32_t S20_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 20
constexpr

Definition at line 54 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S40_CENTER_FREQUENCY

constexpr uint32_t S40_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 40
constexpr

Definition at line 56 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S80_CENTER_FREQUENCY

constexpr uint32_t S80_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 80
constexpr

Definition at line 58 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ smallDelta

const Time smallDelta = NanoSeconds(1)

Definition at line 60 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ WifiPhyCcaTestSuite

the test suite

Definition at line 2951 of file wifi-phy-cca-test.cc.