22 #include "ns3/wifi-psdu.h" 33 :
OfdmPpdu (psdu, txVector, band, uid, true)
virtual ~ErpOfdmPpdu()
Destructor for ErpOfdmPpdu.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
void SetChannelWidth(uint16_t channelWidth)
Sets the selected channelWidth (in MHz)
Ptr< const WifiPsdu > GetPsdu(void) const
Get the payload of the PPDU.
LSigHeader m_lSig
the L-SIG PHY header
WifiTxVector GetTxVector(void) const
Get the TXVECTOR used to send the PPDU.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
uint64_t m_uid
the unique ID of this PPDU
WifiTxVector DoGetTxVector(void) const override
Get the TXVECTOR used to send the PPDU.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
WifiPhyBand m_band
the WifiPhyBand used to transmit that PPDU
WifiPreamble m_preamble
the PHY preamble
Ptr< WifiPpdu > Copy(void) const override
Copy this instance.
ErpOfdmPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, WifiPhyBand band, uint64_t uid)
Create an ERP-OFDM PPDU.
OFDM PPDU (11a)OfdmPpdu stores a preamble, PHY headers and a PSDU of a PPDU with non-HT header...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetPreambleType(WifiPreamble preamble)
Sets the preamble type.
void SetMode(WifiMode mode)
Sets the selected payload transmission mode.
WifiPhyBand
Identifies the PHY band.
Declaration of ns3::ErpOfdmPhy class.
Declaration of ns3::ErpOfdmPpdu class.
static WifiMode GetErpOfdmRate(uint64_t rate)
Return a WifiMode for ERP-OFDM corresponding to the provided rate.
uint16_t m_channelWidth
the channel width used to transmit that PPDU in MHz