|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
24 #include "ns3/ht-configuration.h"
25 #include "ns3/he-configuration.h"
58 gi = htShortGuardInterval ? 400 : 800;
71 if (maxSupportedChannelWidth > 20
83 return maxSupportedChannelWidth;
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
@ WIFI_MOD_CLASS_ERP_OFDM
ERP-OFDM (18.4)
Ptr< HtConfiguration > GetHtConfiguration(void) const
bool IsMu(WifiPreamble preamble)
Return true if a preamble corresponds to a multi-user transmission.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
@ WIFI_MOD_CLASS_HT
HT (Clause 19)
@ WIFI_MOD_CLASS_HE
HE (Clause 27)
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
WifiModulationClass GetModulationClass() const
Declaration of the following enums:
@ WIFI_MOD_CLASS_OFDM
OFDM (Clause 17)
Ptr< HeConfiguration > GetHeConfiguration(void) const
Time GetPpduMaxTime(WifiPreamble preamble)
Get the maximum PPDU duration (see Section 10.14 of 802.11-2016) for the PHY layers defining the aPPD...
bool GetShortGuardIntervalSupported(void) const
@ WIFI_MOD_CLASS_HR_DSSS
HR/DSSS (Clause 16)
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
represent a single transmission mode
uint16_t ConvertGuardIntervalToNanoSeconds(WifiMode mode, const Ptr< WifiNetDevice > device)
Convert the guard interval to nanoseconds based on the WifiMode.
Simulation virtual time values and global simulation resolution.
uint16_t GetChannelWidthForTransmission(WifiMode mode, uint16_t maxSupportedChannelWidth)
Return the channel width that corresponds to the selected mode (instead of letting the PHY's default ...
int64_t GetNanoSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
WifiPreamble GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble)
Return the preamble to be used for the transmission.
bool IsUlMu(WifiPreamble preamble)
Return true if a preamble corresponds to a uplink multi-user transmission.
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
bool IsAllowedControlAnswerModulationClass(WifiModulationClass modClassReq, WifiModulationClass modClassAnswer)
Return whether the modulation class of the selected mode for the control answer frame is allowed.
@ WIFI_MOD_CLASS_VHT
VHT (Clause 22)
Time GetGuardInterval(void) const
@ WIFI_MOD_CLASS_DSSS
DSSS (Clause 15)
WifiModulationClass
This enumeration defines the modulation classes per (Table 10-6 "Modulation classes"; IEEE 802....
bool IsDlMu(WifiPreamble preamble)
Return true if a preamble corresponds to a downlink multi-user transmission.