|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
25 #include "ns3/ht-phy.h"
57 VhtPhy (
bool buildModeList =
true);
69 uint8_t nExtensionLtf = 0)
const override;
72 Time ppduDuration)
override;
202 static uint64_t
GetPhyRate (uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss);
237 static uint64_t
GetDataRate (uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss);
256 static bool IsModeAllowed (uint8_t mcsValue, uint16_t channelWidth, uint8_t nss);
344 typedef std::map< std::tuple<uint16_t ,
std::map< WifiPreamble, std::vector< WifiPpduField > > PpduFormats
A map of PPDU field elements per preamble type.
PhyFieldRxStatus EndReceiveSigA(Ptr< Event > event)
End receiving the SIG-A, perform VHT-specific actions, and provide the status of the reception.
PhyFieldRxStatus EndReceiveSigB(Ptr< Event > event)
End receiving the SIG-B, perform VHT-specific actions, and provide the status of the reception.
bool IsAllConfigSupported(WifiPpduField field, Ptr< const WifiPpdu > ppdu) const override
Checks if the signaled configuration (including bandwidth) is supported by the PHY.
static bool IsModeAllowed(uint8_t mcsValue, uint16_t channelWidth, uint8_t nss)
Check whether the combination of <MCS, channel width, NSS> is allowed.
std::map< std::tuple< uint16_t, uint8_t, uint8_t >, uint8_t > NesExceptionMap
Typedef for storing exceptions in the number of BCC encoders for VHT MCSs.
VhtPhy(bool buildModeList=true)
Constructor for VHT PHY.
static uint64_t CalculateNonHtReferenceRate(WifiCodeRate codeRate, uint16_t constellationSize)
Return the rate (in bps) of the non-HT Reference Rate which corresponds to the supplied code rate and...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiMode GetHtSigMode(void) const override
static WifiMode GetVhtMcs7(void)
Return MCS 7 from VHT MCS values.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
uint32_t GetMaxPsduSize(void) const override
Get the maximum PSDU size in bytes.
static WifiMode GetVhtMcs8(void)
Return MCS 8 from VHT MCS values.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
Time GetDuration(WifiPpduField field, const WifiTxVector &txVector) const override
Get the duration of the PPDU field (or group of fields) used by this entity for the given transmissio...
static uint64_t GetPhyRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the PHY rate corresponding to the supplied VHT MCS index, channel width, guard interval,...
static WifiMode CreateVhtMcs(uint8_t index)
Return the VHT MCS corresponding to the provided index.
Smart pointer class similar to boost::intrusive_ptr.
static uint64_t GetDataRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the data rate corresponding to the supplied VHT MCS index, channel width, guard interval,...
static void InitializeModes(void)
Initialize all VHT modes.
static WifiMode GetVhtMcs3(void)
Return MCS 3 from VHT MCS values.
uint16_t WifiCodeRate
These constants define the various convolutional coding rates used for the OFDM transmission modes in...
uint8_t GetNumberBccEncoders(const WifiTxVector &txVector) const override
Time GetHtSigDuration(void) const override
PhyFieldRxStatus DoEndReceiveField(WifiPpduField field, Ptr< Event > event) override
End receiving a given field, perform amendment-specific actions, and provide the status of the recept...
represent a single transmission mode
static WifiMode GetVhtMcs9(void)
Return MCS 9 from VHT MCS values.
Status of the reception of the PPDU field.
Time GetTrainingDuration(const WifiTxVector &txVector, uint8_t nDataLtf, uint8_t nExtensionLtf=0) const override
static WifiMode GetVhtMcs5(void)
Return MCS 5 from VHT MCS values.
static const NesExceptionMap m_exceptionsMap
exception map for number of BCC encoders (extracted from VHT-MCS tables)
virtual WifiMode GetSigAMode(void) const
static WifiMode GetVhtMcs0(void)
Return MCS 0 from VHT MCS values.
void BuildModeList(void) override
Build mode list.
static uint64_t GetDataRateFromTxVector(const WifiTxVector &txVector, uint16_t staId)
Return the data rate corresponding to the supplied TXVECTOR.
static uint64_t GetNonHtReferenceRate(uint8_t mcsValue)
Calculate the rate in bps of the non-HT Reference Rate corresponding to the supplied VHT MCS index.
Simulation virtual time values and global simulation resolution.
static uint16_t GetUsableSubcarriers(uint16_t channelWidth)
WifiPpduField
The type of PPDU field (grouped for convenience)
static WifiMode GetVhtMcs2(void)
Return MCS 2 from VHT MCS values.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
virtual ~VhtPhy()
Destructor for VHT PHY.
virtual PhyFieldRxStatus ProcessSigA(Ptr< Event > event, PhyFieldRxStatus status)
Process SIG-A, perform amendment-specific actions, and provide an updated status of the reception.
static WifiMode GetVhtMcs(uint8_t index)
Return the VHT MCS corresponding to the provided index.
static WifiMode GetVhtMcs6(void)
Return MCS 6 from VHT MCS values.
virtual PhyFieldRxStatus ProcessSigB(Ptr< Event > event, PhyFieldRxStatus status)
Process SIG-B, perform amendment-specific actions, and provide an updated status of the reception.
PHY entity for VHT (11ac)
static uint16_t GetConstellationSize(uint8_t mcsValue)
Return the constellation size corresponding to the supplied VHT MCS index.
Time GetLSigDuration(WifiPreamble preamble) const override
static WifiMode GetVhtMcs4(void)
Return MCS 4 from VHT MCS values.
static uint64_t GetPhyRateFromTxVector(const WifiTxVector &txVector, uint16_t staId)
Return the PHY rate corresponding to the supplied TXVECTOR.
virtual Time GetSigBDuration(const WifiTxVector &txVector) const
static WifiMode GetVhtMcs1(void)
Return MCS 1 from VHT MCS values.
virtual WifiMode GetSigBMode(const WifiTxVector &txVector) const
static const PpduFormats m_vhtPpduFormats
VHT PPDU formats.
virtual Time GetSigADuration(WifiPreamble preamble) const
const PpduFormats & GetPpduFormats(void) const override
Return the PPDU formats of the PHY.
static WifiCodeRate GetCodeRate(uint8_t mcsValue)
Return the coding rate corresponding to the supplied VHT MCS index.
Ptr< WifiPpdu > BuildPpdu(const WifiConstPsduMap &psdus, const WifiTxVector &txVector, Time ppduDuration) override
Build amendment-specific PPDU.
WifiMode GetSigMode(WifiPpduField field, const WifiTxVector &txVector) const override
Get the WifiMode for the SIG field specified by the PPDU field.