16#include "ns3/fatal-error.h"
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
WifiStandard
Identifies the IEEE 802.11 specifications that a Wifi device can be configured to use.
WifiPhyBand
Identifies the PHY band.
WifiChannelWidthType
Enumeration of the possible channel widths.
MpduType
The type of an MPDU.
@ WIFI_STANDARD_UNSPECIFIED
@ WIFI_PHY_BAND_UNSPECIFIED
Unspecified.
@ LAST_MPDU_IN_AGGREGATE
The MPDU is the last aggregate in an A-MPDU with multiple MPDUs.
@ NORMAL_MPDU
The MPDU is not part of an A-MPDU.
@ FIRST_MPDU_IN_AGGREGATE
The MPDU is the first aggregate in an A-MPDU with multiple MPDUs, but is not the last aggregate.
@ SINGLE_MPDU
The MPDU is a single MPDU.
@ MIDDLE_MPDU_IN_AGGREGATE
The MPDU is part of an A-MPDU with multiple MPDUs, but is neither the first nor the last aggregate.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::pair< int16_t, int16_t > SubcarrierRange
(lowest index, highest index) pair defining a subcarrier range
std::ostream & operator<<(std::ostream &os, const Angles &a)
RuType
The different Resource Unit (RU) types.
std::vector< SubcarrierRange > SubcarrierGroup
a vector of subcarrier ranges defining a subcarrier group
std::map< BwTonesPair, std::vector< SubcarrierGroup > > SubcarrierGroups
map (bandwidth, number of tones) pairs to the group of subcarrier ranges
std::pair< MHz_u, RuType > BwTonesPair
(bandwidth, number of tones) pair
double MHz_u
MHz weak type.
double dBm_u
dBm weak type
MpduType type
type of MPDU
uint32_t mpduRefNumber
MPDU ref number.
RxSignalInfo structure containing info on the received signal.
double snr
SNR in linear scale.
SignalNoiseDbm structure.
dBm_u signal
signal strength
a channel segment, as a struct with units for channel width
Segment(uint8_t n, MHz_u w, WifiPhyBand b, uint8_t i)
Constructor.
uint8_t p20Index
primary20 index
auto operator<=>(const Segment &rhs) const =default
Three-way comparison operator.
uint8_t number
channel number
Segment(const SegmentWithoutUnits &s)
Converting constructor (to be deprecated when using strong types)
WifiPhyBand band
PHY band.
a channel segment, as a struct without units for channel width (to be deprecated when using strong ty...
uint8_t number
channel number
uint8_t p20Index
primary20 index
double width
channel width in MHz
WifiPhyBand band
PHY band.
SegmentWithoutUnits(uint8_t n, double w, WifiPhyBand b, uint8_t i)
Constructor.
static WifiChannelConfig FromString(const std::string &settings, WifiStandard standard=WIFI_STANDARD_UNSPECIFIED)
Get the wifi channel config from a WifiPhy::ChannelSettings string.
std::tuple< uint64_t, uint64_t, WifiPhyBand, uint64_t > TupleWithoutUnits
a channel segment, as a tuple without units for channel width (to be deprecated when using strong typ...
std::vector< Segment > segments
channel config
const Segment & front() const
WifiChannelConfig()=default
auto operator<=>(const WifiChannelConfig &rhs) const =default
Three-way comparison operator.
WifiChannelConfig(const SegmentWithoutUnits &s)
Construct a channel config from a segment without units for channel width.
WifiChannelConfig(const Segment &segment)
Construct a channel config from a channel segment.
Declaration of the SI units (as weak types aliases) used across wifi module.