A Discrete-Event Network Simulator
API
wifi-phy-state.h File Reference
#include "ns3/fatal-error.h"
+ Include dependency graph for wifi-phy-state.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  WifiPhyState {
  IDLE , CCA_BUSY , TX , RX ,
  SWITCHING , SLEEP , OFF
}
 The state of the PHY layer. More...
 

Functions

std::ostream & operator<< (std::ostream &os, WifiPhyState state)
 Stream insertion operator. More...
 

Enumeration Type Documentation

◆ WifiPhyState

The state of the PHY layer.

State enumeration

Enumerator
IDLE 

The PHY layer is IDLE.

CCA_BUSY 

The PHY layer has sense the medium busy through the CCA mechanism.

TX 

The PHY layer is sending a packet.

RX 

The PHY layer is receiving a packet.

SWITCHING 

The PHY layer is switching to other channel.

SLEEP 

The PHY layer is sleeping.

OFF 

The PHY layer is switched off.

Definition at line 31 of file wifi-phy-state.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
WifiPhyState  state 
)
inline

Stream insertion operator.

Parameters
osthe stream
statethe state
Returns
a reference to the stream

Definition at line 70 of file wifi-phy-state.h.

References CCA_BUSY, IDLE, NS_FATAL_ERROR, OFF, RX, SLEEP, SWITCHING, and TX.