A Discrete-Event Network Simulator
API
ns3::VhtPpdu::VhtSigHeader Class Reference

VHT PHY header (VHT-SIG-A1/A2/B). More...

#include "vht-ppdu.h"

+ Collaboration diagram for ns3::VhtPpdu::VhtSigHeader:

Public Member Functions

 VhtSigHeader ()
 
uint16_t GetChannelWidth () const
 Return the channel width (in MHz). More...
 
uint8_t GetNStreams () const
 Return the number of streams. More...
 
bool GetShortGuardInterval () const
 Return the short GI field of VHT-SIG-A2. More...
 
bool GetShortGuardIntervalDisambiguation () const
 Return the short GI NSYM disambiguation field of VHT-SIG-A2. More...
 
uint8_t GetSuMcs () const
 Return the SU VHT MCS field of VHT-SIG-A2. More...
 
void SetChannelWidth (uint16_t channelWidth)
 Fill the channel width field of VHT-SIG-A1 (in MHz). More...
 
void SetMuFlag (bool mu)
 Set the Multi-User (MU) flag. More...
 
void SetNStreams (uint8_t nStreams)
 Fill the number of streams field of VHT-SIG-A1. More...
 
void SetShortGuardInterval (bool sgi)
 Fill the short guard interval field of VHT-SIG-A2. More...
 
void SetShortGuardIntervalDisambiguation (bool disambiguation)
 Fill the short GI NSYM disambiguation field of VHT-SIG-A2. More...
 
void SetSuMcs (uint8_t mcs)
 Fill the SU VHT MCS field of VHT-SIG-A2. More...
 

Private Attributes

uint8_t m_bw
 BW. More...
 
bool m_mu
 This is used to decide whether MU SIG-B should be added or not. More...
 
uint8_t m_nsts
 NSTS. More...
 
uint8_t m_sgi
 Short GI. More...
 
uint8_t m_sgi_disambiguation
 Short GI NSYM Disambiguation. More...
 
uint8_t m_suMcs
 SU VHT MCS. More...
 

Detailed Description

VHT PHY header (VHT-SIG-A1/A2/B).

See section 21.3.8 in IEEE 802.11-2016.

Definition at line 52 of file vht-ppdu.h.

Constructor & Destructor Documentation

◆ VhtSigHeader()

ns3::VhtPpdu::VhtSigHeader::VhtSigHeader ( )

Definition at line 144 of file vht-ppdu.cc.

Member Function Documentation

◆ GetChannelWidth()

uint16_t ns3::VhtPpdu::VhtSigHeader::GetChannelWidth ( ) const

Return the channel width (in MHz).

Returns
the channel width (in MHz)

Definition at line 182 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetNStreams()

uint8_t ns3::VhtPpdu::VhtSigHeader::GetNStreams ( ) const

Return the number of streams.

Returns
the number of streams

Definition at line 210 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetShortGuardInterval()

bool ns3::VhtPpdu::VhtSigHeader::GetShortGuardInterval ( ) const

Return the short GI field of VHT-SIG-A2.

Returns
the short GI field of VHT-SIG-A2

Definition at line 222 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::GetTxDuration(), and ns3::VhtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ GetShortGuardIntervalDisambiguation()

bool ns3::VhtPpdu::VhtSigHeader::GetShortGuardIntervalDisambiguation ( ) const

Return the short GI NSYM disambiguation field of VHT-SIG-A2.

Returns
the short GI NSYM disambiguation field of VHT-SIG-A2

Definition at line 234 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::GetTxDuration().

+ Here is the caller graph for this function:

◆ GetSuMcs()

uint8_t ns3::VhtPpdu::VhtSigHeader::GetSuMcs ( ) const

Return the SU VHT MCS field of VHT-SIG-A2.

Returns
the SU VHT MCS field of VHT-SIG-A2

Definition at line 247 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetTxVectorFromPhyHeaders().

+ Here is the caller graph for this function:

◆ SetChannelWidth()

void ns3::VhtPpdu::VhtSigHeader::SetChannelWidth ( uint16_t  channelWidth)

Fill the channel width field of VHT-SIG-A1 (in MHz).

Parameters
channelWidththe channel width (in MHz)

Definition at line 161 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

◆ SetMuFlag()

void ns3::VhtPpdu::VhtSigHeader::SetMuFlag ( bool  mu)

Set the Multi-User (MU) flag.

Parameters
muthe MU flag

Definition at line 155 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

◆ SetNStreams()

void ns3::VhtPpdu::VhtSigHeader::SetNStreams ( uint8_t  nStreams)

Fill the number of streams field of VHT-SIG-A1.

Parameters
nStreamsthe number of streams

Definition at line 203 of file vht-ppdu.cc.

References NS_ASSERT.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

◆ SetShortGuardInterval()

void ns3::VhtPpdu::VhtSigHeader::SetShortGuardInterval ( bool  sgi)

Fill the short guard interval field of VHT-SIG-A2.

Parameters
sgiwhether short guard interval is used or not

Definition at line 216 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

◆ SetShortGuardIntervalDisambiguation()

void ns3::VhtPpdu::VhtSigHeader::SetShortGuardIntervalDisambiguation ( bool  disambiguation)

Fill the short GI NSYM disambiguation field of VHT-SIG-A2.

Parameters
disambiguationwhether short GI NSYM disambiguation is set or not

Definition at line 228 of file vht-ppdu.cc.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

◆ SetSuMcs()

void ns3::VhtPpdu::VhtSigHeader::SetSuMcs ( uint8_t  mcs)

Fill the SU VHT MCS field of VHT-SIG-A2.

Parameters
mcsthe SU VHT MCS field of VHT-SIG-A2

Definition at line 240 of file vht-ppdu.cc.

References NS_ASSERT.

Referenced by ns3::VhtPpdu::SetVhtSigHeader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bw

uint8_t ns3::VhtPpdu::VhtSigHeader::m_bw
private

BW.

Definition at line 128 of file vht-ppdu.h.

◆ m_mu

bool ns3::VhtPpdu::VhtSigHeader::m_mu
private

This is used to decide whether MU SIG-B should be added or not.

Definition at line 137 of file vht-ppdu.h.

◆ m_nsts

uint8_t ns3::VhtPpdu::VhtSigHeader::m_nsts
private

NSTS.

Definition at line 129 of file vht-ppdu.h.

◆ m_sgi

uint8_t ns3::VhtPpdu::VhtSigHeader::m_sgi
private

Short GI.

Definition at line 132 of file vht-ppdu.h.

◆ m_sgi_disambiguation

uint8_t ns3::VhtPpdu::VhtSigHeader::m_sgi_disambiguation
private

Short GI NSYM Disambiguation.

Definition at line 133 of file vht-ppdu.h.

◆ m_suMcs

uint8_t ns3::VhtPpdu::VhtSigHeader::m_suMcs
private

SU VHT MCS.

Definition at line 134 of file vht-ppdu.h.


The documentation for this class was generated from the following files: