A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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 ()
 
MHz_u GetChannelWidth () const
 Return the channel width.
 
uint8_t GetNStreams () const
 Return the number of streams.
 
bool GetShortGuardInterval () const
 Return the short GI field of VHT-SIG-A2.
 
bool GetShortGuardIntervalDisambiguation () const
 Return the short GI NSYM disambiguation field of VHT-SIG-A2.
 
uint8_t GetSuMcs () const
 Return the SU VHT MCS field of VHT-SIG-A2.
 
void SetChannelWidth (MHz_u channelWidth)
 Fill the channel width field of VHT-SIG-A1.
 
void SetMuFlag (bool mu)
 Set the Multi-User (MU) flag.
 
void SetNStreams (uint8_t nStreams)
 Fill the number of streams field of VHT-SIG-A1.
 
void SetShortGuardInterval (bool sgi)
 Fill the short guard interval field of VHT-SIG-A2.
 
void SetShortGuardIntervalDisambiguation (bool disambiguation)
 Fill the short GI NSYM disambiguation field of VHT-SIG-A2.
 
void SetSuMcs (uint8_t mcs)
 Fill the SU VHT MCS field of VHT-SIG-A2.
 

Private Attributes

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

Detailed Description

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

See section 21.3.8 in IEEE 802.11-2016.

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

Constructor & Destructor Documentation

◆ VhtSigHeader()

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

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

Member Function Documentation

◆ GetChannelWidth()

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

Return the channel width.

Returns
the channel width

Definition at line 172 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 200 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 212 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 224 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 237 of file vht-ppdu.cc.

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

+ Here is the caller graph for this function:

◆ SetChannelWidth()

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

Fill the channel width field of VHT-SIG-A1.

Parameters
channelWidththe channel width

Definition at line 151 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 145 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 193 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 206 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 218 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 230 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 117 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 126 of file vht-ppdu.h.

◆ m_nsts

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

NSTS.

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

◆ m_sgi

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

Short GI.

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

◆ m_sgi_disambiguation

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

Short GI NSYM Disambiguation.

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

◆ m_suMcs

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

SU VHT MCS.

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


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