|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #ifndef WIFI_TX_VECTOR_H
23 #define WIFI_TX_VECTOR_H
28 #include "ns3/he-ru.h"
98 uint16_t guardInterval,
102 uint16_t channelWidth,
106 uint8_t bssColor = 0,
107 uint16_t length = 0);
192 uint8_t
GetNTx (
void)
const;
198 void SetNTx (uint8_t nTx);
218 void SetNss (uint8_t nss);
225 void SetNss (uint8_t nss, uint16_t staId);
307 bool IsMu (
void)
const;
bool IsStbc(void) const
Check if STBC is used or not.
uint8_t GetBssColor(void) const
Get the BSS color.
void SetTxPowerLevel(uint8_t powerlevel)
Sets the selected transmission power level.
bool m_aggregation
Flag whether the PSDU contains A-MPDU.
HeRu::RuSpec GetRu(uint16_t staId) const
Get the RU specification for the STA-ID.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool IsValid(void) const
The standard disallows certain combinations of WifiMode, number of spatial streams,...
void SetGuardInterval(uint16_t guardInterval)
Sets the guard interval duration (in nanoseconds)
bool IsLdpc(void) const
Check if LDPC FEC coding is used or not.
uint8_t GetNssMax(void) const
uint16_t m_channelWidth
channel width in MHz
void SetNss(uint8_t nss)
Sets the number of Nss.
void SetAggregation(bool aggregation)
Sets if PSDU contains A-MPDU.
Declaration of the following enums:
void SetMode(WifiMode mode)
Sets the selected payload transmission mode.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
WifiMode m_mode
The DATARATE parameter in Table 15-4.
bool IsUlMu(void) const
Return true if this TX vector is used for an uplink multi-user transmission.
void SetLength(uint16_t length)
Set the LENGTH field of the L-SIG.
WifiModulationClass GetModulationClass(void) const
Get the modulation class specified by this TXVECTOR.
uint8_t m_txPowerLevel
The TXPWR_LEVEL parameter in Table 15-4.
HE MU specific user transmission parameters.
uint8_t m_nss
number of spatial streams
represent a single transmission mode
void SetNess(uint8_t ness)
Sets the Ness number.
uint8_t m_ness
number of spatial streams in beamforming
const HeMuUserInfoMap & GetHeMuUserInfoMap(void) const
Get a const reference to the map HE MU user-specific transmission information indexed by STA-ID.
bool IsAggregation(void) const
Checks whether the PSDU contains A-MPDU.
bool m_ldpc
LDPC FEC coding if true, BCC otherwise.
uint8_t GetNess(void) const
WifiPreamble GetPreambleType(void) const
HeMuUserInfo GetHeMuUserInfo(uint16_t staId) const
Get the HE MU user-specific transmission information for the given STA-ID.
void SetChannelWidth(uint16_t channelWidth)
Sets the selected channelWidth (in MHz)
uint16_t m_length
LENGTH field of the L-SIG.
uint16_t GetChannelWidth(void) const
std::map< uint16_t, HeMuUserInfo > HeMuUserInfoMap
map of HE MU specific user info paramters indexed by STA-ID
uint16_t m_guardInterval
guard interval duration in nanoseconds
bool IsMu(void) const
Return true if this TX vector is used for a multi-user transmission.
HeRu::RuSpec ru
RU specification.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
uint8_t nss
number of spatial streams
uint16_t GetGuardInterval(void) const
uint8_t GetNss(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the number of spatial streams.
HeMuUserInfoMap m_muUserInfos
HE MU specific per-user information indexed by station ID (STA-ID) corresponding to the 11 LSBs of th...
uint8_t m_nTx
number of TX antennas
void SetHeMuUserInfo(uint16_t staId, HeMuUserInfo userInfo)
Set the HE MU user-specific transmission information for the given STA-ID.
uint8_t GetTxPowerLevel(void) const
WifiPreamble m_preamble
preamble
void SetNTx(uint8_t nTx)
Sets the number of TX antennas.
void SetStbc(bool stbc)
Sets if STBC is being used.
uint16_t GetLength(void) const
Get the LENGTH field of the L-SIG.
uint8_t GetNTx(void) const
void SetRu(HeRu::RuSpec ru, uint16_t staId)
Set the RU specification for the STA-ID.
void SetBssColor(uint8_t color)
Set the BSS color.
bool m_stbc
STBC used or not.
std::pair< std::size_t, std::size_t > GetNumRusPerHeSigBContentChannel(void) const
Get the number of RUs per HE-SIG-B content channel.
std::ostream & operator<<(std::ostream &os, const Angles &a)
uint8_t m_bssColor
BSS color.
bool m_modeInitialized
Internal initialization flag.
void SetPreambleType(WifiPreamble preamble)
Sets the preamble type.
bool IsDlMu(void) const
Return true if this TX vector is used for a downlink multi-user transmission.
bool GetModeInitialized(void) const
WifiMode GetMode(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the selected payload transmission mode.
WifiModulationClass
This enumeration defines the modulation classes per (Table 10-6 "Modulation classes"; IEEE 802....
void SetLdpc(bool ldpc)
Sets if LDPC FEC coding is being used.