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