|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #ifndef WIFI_PHY_OPERATING_CHANNEL_H
23 #define WIFI_PHY_OPERATING_CHANNEL_H
58 bool IsSet (
void)
const;
72 void Set (uint8_t number, uint16_t frequency, uint16_t width,
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual ~WifiPhyOperatingChannel()
uint8_t m_primary20Index
index of the primary20 channel (0 indicates the 20 MHz subchannel with the lowest center frequency)
bool IsSet(void) const
Return true if a valid channel has been set, false otherwise.
WifiPhyStandard
Identifies the PHY specification that a Wifi device is configured to use.
uint16_t GetWidth(void) const
Return the width of the whole operating channel (in MHz).
Class that keeps track of all information about the current PHY operating channel.
WifiPhyOperatingChannel()
Create an uninitialized PHY operating channel.
std::tuple< uint8_t, uint16_t, uint16_t, FrequencyChannelType, WifiPhyBand > FrequencyChannelInfo
A tuple (number, frequency, width, type, band) identifying a frequency channel.
void SetPrimary20Index(uint8_t index)
Set the index of the primary 20 MHz channel (0 indicates the 20 MHz subchannel with the lowest center...
ConstIterator m_channelIt
const iterator pointing to the configured frequency channel
std::set< FrequencyChannelInfo >::const_iterator ConstIterator
Typedef for a const iterator pointing to a channel in the set of available channels.
uint8_t GetPrimaryChannelIndex(uint16_t primaryChannelWidth) const
If the operating channel width is a multiple of 20 MHz, return the index of the primary channel of th...
void Set(uint8_t number, uint16_t frequency, uint16_t width, WifiPhyStandard standard, WifiPhyBand band)
Set the channel according to the specified parameters if a unique frequency channel matches the speci...
WifiPhyBand
Identifies the PHY band.
uint16_t GetFrequency(void) const
Return the center frequency of the operating channel (in MHz).
void SetDefault(uint16_t width, WifiPhyStandard standard, WifiPhyBand band)
Set the default channel of the given width and for the given PHY standard and band.
ConstIterator FindFirst(uint8_t number, uint16_t frequency, uint16_t width, WifiPhyStandard standard, WifiPhyBand band, ConstIterator start) const
Find the first channel matching the specified parameters.
uint16_t GetPrimaryChannelCenterFrequency(uint16_t primaryChannelWidth) const
Get the center frequency of the primary channel of the given width.
uint8_t GetNumber(void) const
Return the channel number identifying the whole operating channel.